public class CmsContentFolderDescriptor extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENTS_FOLDER_NAME
Name of the folder for elements stored with container pages.
|
| Constructor and Description |
|---|
CmsContentFolderDescriptor(CmsResource folder)
Creates an instance based on an existing folder.
|
CmsContentFolderDescriptor(java.lang.String basePath,
java.lang.String name)
Creates an instance based on a relative folder name.
|
| Modifier and Type | Method and Description |
|---|---|
static CmsContentFolderDescriptor |
createPageRelativeFolderDescriptor()
Creates folder descriptor which represents the 'page relative' setting.
|
java.lang.String |
getBasePath()
Gets the base path.
|
CmsResource |
getFolder()
Gets the folder.
|
java.lang.String |
getFolderName()
Gets the relative folder name if available, else null.
|
java.lang.String |
getFolderPath(CmsObject cms,
java.lang.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 |
isPageRelative()
Returns true if this page descriptor represents the 'page relative' setting.
|
public static final java.lang.String ELEMENTS_FOLDER_NAME
public CmsContentFolderDescriptor(CmsResource folder)
folder - the folderpublic CmsContentFolderDescriptor(java.lang.String basePath, java.lang.String name)
basePath - the base path which the folder name is relative toname - the relative folder namepublic static CmsContentFolderDescriptor createPageRelativeFolderDescriptor()
public java.lang.String getBasePath()
public CmsResource getFolder()
public java.lang.String getFolderName()
public java.lang.String getFolderPath(CmsObject cms, java.lang.String pageFolderPath)
cms - the CMS context to usepageFolderPath - the root path of the folder containing the current container pagepublic boolean isFolder()
public boolean isName()
public boolean isPageRelative()