Package org.opencms.ade.configuration
Class CmsContentFolderDescriptor
java.lang.Object
org.opencms.ade.configuration.CmsContentFolderDescriptor
A bean which represents the location configured for content elements of a specific type in a sitemap configuration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of the folder for elements stored with container pages. -
Constructor Summary
ConstructorDescriptionCmsContentFolderDescriptor
(String basePath, String name) Creates an instance based on a relative folder name.Creates an instance based on an existing folder. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsContentFolderDescriptor
Creates folder descriptor which represents the 'page relative' setting.Gets the base path.Gets the folder.Gets the relative folder name if available, else null.getFolderPath
(CmsObject cms, String pageFolderPath) Computes the folder root path.boolean
isFolder()
Returns true if the current instance was created with a folder structure id parameter.boolean
isName()
Returns true if this instance was created with a folder name parameter.boolean
Returns true if this page descriptor represents the 'page relative' setting.
-
Field Details
-
ELEMENTS_FOLDER_NAME
Name of the folder for elements stored with container pages.- See Also:
-
-
Constructor Details
-
CmsContentFolderDescriptor
Creates an instance based on an existing folder.- Parameters:
folder
- the folder
-
CmsContentFolderDescriptor
Creates an instance based on a relative folder name.- Parameters:
basePath
- the base path which the folder name is relative toname
- the relative folder name
-
-
Method Details
-
createPageRelativeFolderDescriptor
Creates folder descriptor which represents the 'page relative' setting.- Returns:
- the folder descriptor for the 'page relative' setting
-
getBasePath
Gets the base path.- Returns:
- the base path
-
getFolder
Gets the folder.- Returns:
- the folder
-
getFolderName
Gets the relative folder name if available, else null.- Returns:
- the relative folder name null
-
getFolderPath
Computes the folder root path.- Parameters:
cms
- the CMS context to usepageFolderPath
- the root path of the folder containing the current container page- Returns:
- the folder root path
-
isFolder
Returns true if the current instance was created with a folder structure id parameter.- Returns:
- true if this instance was created with a folder structure id parameter
-
isName
Returns true if this instance was created with a folder name parameter.- Returns:
- true if this instance was created with a folder name parameter
-
isPageRelative
Returns true if this page descriptor represents the 'page relative' setting.- Returns:
- true if this is page relative
-