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
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enum for the edit status of the entry.static enumAn enum for the entry type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringNavInfo property value to mark hidden navigation entries. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Creates a copy without children of the given entry. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubEntry(CmsClientSitemapEntry entry, I_CmsSitemapController controller) Adds the given entry to the children.Returns the aliases.booleanReturns 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.intReturns the position.getPropertyValue(String propertyName) Returns the property value or null if not set.Returns the redirect target.Returns the resource state.intReturns 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.booleanReturns if this entry has blocking locked children.booleanReturns if the entry folder is locked by another user.voidinitialize(I_CmsSitemapController controller) Initializes this sitemap entry.voidinitializeAll(I_CmsSitemapController controller) Initializes this sitemap entry and its descendants.voidinsertSubEntry(CmsClientSitemapEntry entry, int position, I_CmsSitemapController controller) Inserts the given entry at the given position.booleanReturns the default file is released and not expired flag.booleanReturns if the current lock state allows editing.booleanReturns if the entry is the folder default page.booleanReturns if this entry is of type folder.booleanReturns if this is a hidden navigation entry.booleanReturns if the entry is visible in navigation.booleanReturns if this entry is of type leaf.booleanReturns if this entry is of type folder.booleanisNew()Returns the "new" flag of the sitemap entry.booleanReturns if the resource is released and not expired.booleanisRoot()Returns true if this entry is the root entry of the sitemap.booleanReturns if this entry is of type sub-sitemap.voidRemoves empty properties.removeSubEntry(int position) Removes the child at the given position.removeSubEntry(CmsUUID entryId) Removes the child at the given position.voidsetAliases(List<String> aliases) Sets the aliases.voidsetBlockingLockedChildren(boolean hasBlockingLockedChildren) Sets if the entry resource has blocking locked children that can not be locked by the current user.voidsetChildrenLoadedInitially(boolean childrenLoaded) Sets the 'children loaded initially' flag.voidsetDateExpired(String dateExpired) Sets the expiration date.voidsetDateReleased(String dateReleased) Sets the release date.voidsetDefaultFileId(CmsUUID defaultFileId) Sets the default file id.voidsetDefaultFileProperties(Map<String, CmsClientProperty> properties) Sets the properties for the default file.voidsetDefaultFileReleased(boolean defaultFileReleased) Sets the default file is released and not expired flag.voidsetDefaultFileType(String defaultFileType) Sets the default file resource type name.voidsetDetailpageTypeName(String detailpageTypeName) Sets the detail resource type name.voidsetEntryType(CmsClientSitemapEntry.EntryType entryType) Sets the entry type.voidsetExportName(String exportName) Sets the export name for this entry.voidsetFolderDefaultPage(boolean isFolderDefaultPage) Sets if the entry is the folder default page.voidsetHasForeignFolderLock(boolean hasForeignFolderLock) Sets if the entry folder is locked by another user.voidSets the id.voidsetInNavigation(boolean inNavigation) Sets the entry visibility in navigation.voidsetLock(CmsClientLock lock) Sets the lock of the entry resource.voidSets the name.voidsetNavModeIcon(String iconClasses) Sets the nav mode icon style classes.voidsetNew(boolean isNew) Sets the "new" flag of the client sitemap entry.voidsetOwnProperties(Map<String, CmsClientProperty> properties) Sets the properties for the entry itself.voidsetPermissionInfo(CmsPermissionInfo permissionInfo) Sets the permission info.voidsetPosition(int position) Sets the position.voidsetRedirectTarget(String redirectTarget) Sets the redirect target.voidsetResleasedAndNotExpired(boolean isResleasedAndNotExpired) Sets the resource is released and not expired flag.voidsetResourceState(CmsResourceState resourceState) Sets the resource state.voidsetResourceTypeId(int resourceTypeId) Sets the resource type id.voidsetResourceTypeName(String typeName) Sets the resource type name.voidsetSitePath(String sitepath) Sets the site path.voidsetSubEntries(List<CmsClientSitemapEntry> children, I_CmsSitemapController controller) Sets the children.voidsetVfsModeIcon(String iconClasses) Sets the vfs mode icon style classes.voidsetVfsPath(String path) Sets the VFS path.toString()To string.voidupdate(CmsClientSitemapEntry source) Updates all entry properties apart from it's position-info and sub-entries.voidupdateSitePath(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:
trueif this entry has blocking locked children
-
hasForeignFolderLock
Returns if the entry folder is locked by another user.- Returns:
trueif 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:
trueif 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:
trueif this entry is of type folder
-
isLeafType
Returns if this entry is of type leaf.- Returns:
trueif 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:
trueif 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:
trueif 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-trueif the entry resource has blocking locked children
-
setChildrenLoadedInitially
Sets the 'children loaded initially' flag.- Parameters:
childrenLoaded-trueif 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- settrueif 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.