Package org.opencms.ade.configuration
Class CmsContentFolderOption
java.lang.Object
org.opencms.ade.configuration.CmsContentFolderOption
Simple immutable class for storing a custom content folder configuration.
There are two possibilities: Either a custom content folder should be used (then the corresponding instance of this class stores the folder id), or the default content folder should be used (in which case the folder id is null).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the content folder id.boolean
Returns true if this represents the option to use the standard content folder.
-
Constructor Details
-
CmsContentFolderOption
Creates a new instance.- Parameters:
contentFolderId
- the content folder id
-
-
Method Details
-
getFolderId
Gets the content folder id.The result may be null.
- Returns:
- the content folder id
-
isDefault
Returns true if this represents the option to use the standard content folder.This is currently implemented as the folder id being null.
- Returns:
- true if the default content folder should be used
-