Package org.opencms.ade.sitemap.shared
Class CmsClientSitemapEntry
java.lang.Object
org.opencms.ade.sitemap.shared.CmsClientSitemapEntry
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsClientSitemapEntry
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
Sitemap entry data.
- Since:
- 8.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
An enum for the edit status of the entry.static enum
An enum for the entry type. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
NavInfo property value to mark hidden navigation entries. -
Constructor Summary
ConstructorDescriptionConstructor.Creates a copy without children of the given entry. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubEntry
(CmsClientSitemapEntry entry, I_CmsSitemapController controller) Adds the given entry to the children.Returns the aliases.boolean
Returns true if this item's children have been loaded initially.Returns the expiration date.Returns the release date.Gets the default file id.Returns the properties for the default file.Returns the default file resource type name.Returns the detail resource type name.Returns the entry type.Returns the cached export name for this entry.getId()
Returns the id.getLock()
Returns the lock of the entry resource.getName()
Returns the name.Returns the nav mode icon style classes.Returns the no edit reason.Returns the properties for the entry itself.int
Returns the position.getPropertyValue
(String propertyName) Returns the property value or null if not set.Returns the redirect target.Returns the resource state.int
Returns the resource type id.Returns the resource type name.Returns the sitemap path.Returns the children.getTitle()
Returns the title.Returns the vfs mode icon style classes.Returns the vfs path.boolean
Returns if this entry has blocking locked children.boolean
Returns if the entry folder is locked by another user.void
initialize
(I_CmsSitemapController controller) Initializes this sitemap entry.void
initializeAll
(I_CmsSitemapController controller) Initializes this sitemap entry and its descendants.void
insertSubEntry
(CmsClientSitemapEntry entry, int position, I_CmsSitemapController controller) Inserts the given entry at the given position.boolean
Returns the default file is released and not expired flag.boolean
Returns if the current lock state allows editing.boolean
Returns if the entry is the folder default page.boolean
Returns if this entry is of type folder.boolean
Returns if this is a hidden navigation entry.boolean
Returns if the entry is visible in navigation.boolean
Returns if this entry is of type leaf.boolean
Returns if this entry is of type folder.boolean
isNew()
Returns the "new" flag of the sitemap entry.boolean
Returns if the resource is released and not expired.boolean
isRoot()
Returns true if this entry is the root entry of the sitemap.boolean
Returns if this entry is of type sub-sitemap.void
Removes empty properties.removeSubEntry
(int position) Removes the child at the given position.removeSubEntry
(CmsUUID entryId) Removes the child at the given position.void
setAliases
(List<String> aliases) Sets the aliases.void
setBlockingLockedChildren
(boolean hasBlockingLockedChildren) Sets if the entry resource has blocking locked children that can not be locked by the current user.void
setChildrenLoadedInitially
(boolean childrenLoaded) Sets the 'children loaded initially' flag.void
setDateExpired
(String dateExpired) Sets the expiration date.void
setDateReleased
(String dateReleased) Sets the release date.void
setDefaultFileId
(CmsUUID defaultFileId) Sets the default file id.void
setDefaultFileProperties
(Map<String, CmsClientProperty> properties) Sets the properties for the default file.void
setDefaultFileReleased
(boolean defaultFileReleased) Sets the default file is released and not expired flag.void
setDefaultFileType
(String defaultFileType) Sets the default file resource type name.void
setDetailpageTypeName
(String detailpageTypeName) Sets the detail resource type name.void
setEntryType
(CmsClientSitemapEntry.EntryType entryType) Sets the entry type.void
setExportName
(String exportName) Sets the export name for this entry.void
setFolderDefaultPage
(boolean isFolderDefaultPage) Sets if the entry is the folder default page.void
setHasForeignFolderLock
(boolean hasForeignFolderLock) Sets if the entry folder is locked by another user.void
Sets the id.void
setInNavigation
(boolean inNavigation) Sets the entry visibility in navigation.void
setLock
(CmsClientLock lock) Sets the lock of the entry resource.void
Sets the name.void
setNavModeIcon
(String iconClasses) Sets the nav mode icon style classes.void
setNew
(boolean isNew) Sets the "new" flag of the client sitemap entry.void
setOwnProperties
(Map<String, CmsClientProperty> properties) Sets the properties for the entry itself.void
setPermissionInfo
(CmsPermissionInfo permissionInfo) Sets the permission info.void
setPosition
(int position) Sets the position.void
setRedirectTarget
(String redirectTarget) Sets the redirect target.void
setResleasedAndNotExpired
(boolean isResleasedAndNotExpired) Sets the resource is released and not expired flag.void
setResourceState
(CmsResourceState resourceState) Sets the resource state.void
setResourceTypeId
(int resourceTypeId) Sets the resource type id.void
setResourceTypeName
(String typeName) Sets the resource type name.void
setSitePath
(String sitepath) Sets the site path.void
setSubEntries
(List<CmsClientSitemapEntry> children, I_CmsSitemapController controller) Sets the children.void
setVfsModeIcon
(String iconClasses) Sets the vfs mode icon style classes.void
setVfsPath
(String path) Sets the VFS path.toString()
To string.void
update
(CmsClientSitemapEntry source) Updates all entry properties apart from it's position-info and sub-entries.void
updateSitePath
(String sitepath, I_CmsSitemapController controller) Updates the entry's site path and the name accordingly.
-
Field Details
-
HIDDEN_NAVIGATION_ENTRY
NavInfo property value to mark hidden navigation entries.- See Also:
-
-
Constructor Details
-
CmsClientSitemapEntry
public CmsClientSitemapEntry()Constructor.
-
-
Method Details
-
getAliases
Returns the aliases.- Returns:
- the aliases
-
getChildrenLoadedInitially
Returns true if this item's children have been loaded initially.- Returns:
- true if this item's children have been loaded initially
-
getDateExpired
Returns the expiration date.- Returns:
- the expiration date
-
getDateReleased
Returns the release date.- Returns:
- the release date
-
getDefaultFileId
Gets the default file id.- Returns:
- the default file id, or null if there is no detail page
-
getDefaultFileProperties
Returns the properties for the default file.- Returns:
- the properties for the default file
-
getDefaultFileType
Returns the default file resource type name.- Returns:
- the default file resource type name
-
getDetailpageTypeName
Returns the detail resource type name.- Returns:
- the detail resource type name
-
getEntryType
Returns the entry type.- Returns:
- the entry type
-
getExportName
Returns the cached export name for this entry.- Returns:
- the cached export name for this entry
-
getId
Returns the id.- Returns:
- the id
-
getLock
Returns the lock of the entry resource.- Returns:
- the lock of the entry resource
-
getName
Returns the name.- Returns:
- the name
-
getNoEditReason
Returns the no edit reason.- Returns:
- the no edit reason
-
getOwnProperties
Returns the properties for the entry itself.- Returns:
- the properties for the entry itself
-
getPosition
Returns the position.- Returns:
- the position
-
getPropertyValue
Returns the property value or null if not set.- Parameters:
propertyName
- the property name- Returns:
- the property value
-
getRedirectTarget
Returns the redirect target.- Returns:
- the redirect target
-
getResourceState
Returns the resource state.- Returns:
- the resource state
-
getResourceTypeId
Returns the resource type id.- Returns:
- the resource type id
-
getResourceTypeName
Returns the resource type name.- Returns:
- the resource type name
-
getSitePath
Returns the sitemap path.- Returns:
- the sitemap path
-
getSubEntries
Returns the children.- Returns:
- the children
-
getTitle
Returns the title.- Returns:
- the title
-
getVfsModeIcon
Returns the vfs mode icon style classes.- Returns:
- the vfs mode icon style classes
-
getVfsPath
Returns the vfs path.- Returns:
- the vfs path
-
hasBlockingLockedChildren
Returns if this entry has blocking locked children.- Returns:
true
if this entry has blocking locked children
-
hasForeignFolderLock
Returns if the entry folder is locked by another user.- Returns:
true
if the entry folder is locked by another user
-
isDefaultFileReleased
Returns the default file is released and not expired flag.- Returns:
- the default file is released and not expired flag
-
isEditable
Returns if the current lock state allows editing.- Returns:
true
if the resource is editable
-
isFolderDefaultPage
Returns if the entry is the folder default page.- Returns:
- if the entry is the folder default page
-
isFolderType
Returns if this entry is of type folder.- Returns:
true
if this entry is of type folder
-
isLeafType
Returns if this entry is of type leaf.- Returns:
true
if this entry is of type leaf
-
isNew
Returns the "new" flag of the sitemap entry.- Returns:
- the "new" flag
-
isResleasedAndNotExpired
Returns if the resource is released and not expired.- Returns:
true
if the resource is released and not expired
-
isRoot
Returns true if this entry is the root entry of the sitemap.- Returns:
- true if this entry is the root entry of the sitemap
-
isSubSitemapType
Returns if this entry is of type sub-sitemap.- Returns:
true
if this entry is of type sub-sitemap
-
normalizeProperties
Removes empty properties. -
removeSubEntry
Removes the child at the given position.- Parameters:
entryId
- the id of the child to remove- Returns:
- the removed child
-
removeSubEntry
Removes the child at the given position.- Parameters:
position
- the index of the child to remove- Returns:
- the removed child
-
setAliases
Sets the aliases.- Parameters:
aliases
- the aliases to set
-
setBlockingLockedChildren
Sets if the entry resource has blocking locked children that can not be locked by the current user.- Parameters:
hasBlockingLockedChildren
-true
if the entry resource has blocking locked children
-
setChildrenLoadedInitially
Sets the 'children loaded initially' flag.- Parameters:
childrenLoaded
-true
if children are loaded initially
-
setDateExpired
Sets the expiration date.- Parameters:
dateExpired
- the expiration date to set
-
setDateReleased
Sets the release date.- Parameters:
dateReleased
- the release date to set
-
setDefaultFileId
Sets the default file id.- Parameters:
defaultFileId
- the new default file id
-
setDefaultFileProperties
Sets the properties for the default file.- Parameters:
properties
- the properties for the default file
-
setDefaultFileReleased
Sets the default file is released and not expired flag.- Parameters:
defaultFileReleased
- the default file is released and not expired flag to set
-
setDefaultFileType
Sets the default file resource type name.- Parameters:
defaultFileType
- the default file resource type name to set
-
setDetailpageTypeName
Sets the detail resource type name.- Parameters:
detailpageTypeName
- the detail resource type name
-
setExportName
Sets the export name for this entry.- Parameters:
exportName
- the export name for this entry
-
setFolderDefaultPage
Sets if the entry is the folder default page.- Parameters:
isFolderDefaultPage
- the isFolderDefaultPage to set
-
setHasForeignFolderLock
Sets if the entry folder is locked by another user.- Parameters:
hasForeignFolderLock
- settrue
if the entry folder is locked by another user
-
setId
Sets the id.- Parameters:
id
- the id to set
-
setName
Sets the name.- Parameters:
name
- the name to set
-
setNew
Sets the "new" flag of the client sitemap entry.- Parameters:
isNew
- the new new
-
setOwnProperties
Sets the properties for the entry itself.- Parameters:
properties
- the properties for the entry itself
-
setPosition
Sets the position.- Parameters:
position
- the position to set
-
setRedirectTarget
Sets the redirect target.- Parameters:
redirectTarget
- the redirect target to set
-
setResleasedAndNotExpired
Sets the resource is released and not expired flag.- Parameters:
isResleasedAndNotExpired
- the resource is released and not expired flag
-
setResourceState
Sets the resource state.- Parameters:
resourceState
- the resource state to set
-
setResourceTypeId
Sets the resource type id.- Parameters:
resourceTypeId
- the resource type id
-
setResourceTypeName
Sets the resource type name.- Parameters:
typeName
- the resource type name
-
setSitePath
Sets the site path.- Parameters:
sitepath
- the site path to set
-
setVfsModeIcon
Sets the vfs mode icon style classes.- Parameters:
iconClasses
- the vfs mode icon style classes to set
-
setVfsPath
Sets the VFS path.- Parameters:
path
- the path to set
-
toString
To string.