Package org.opencms.ade.galleries.shared
Class CmsGalleryFolderBean
- java.lang.Object
-
- org.opencms.gwt.shared.CmsIconBean
-
- org.opencms.gwt.shared.CmsListInfoBean
-
- org.opencms.ade.galleries.shared.CmsGalleryFolderBean
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
,I_CmsHasPath
,I_CmsHasTitle
,I_CmsHasType
- Direct Known Subclasses:
CmsGalleryTreeEntry
public class CmsGalleryFolderBean extends CmsListInfoBean implements I_CmsHasPath
Represents a gallery folder.- Since:
- 8.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.gwt.shared.CmsListInfoBean
CmsListInfoBean.LockIcon, CmsListInfoBean.StateIcon
-
-
Field Summary
-
Fields inherited from class org.opencms.gwt.shared.CmsListInfoBean
CSS_CLASS_MULTI_LINE
-
-
Constructor Summary
Constructors Constructor Description CmsGalleryFolderBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<java.lang.String>
getContentTypes()
Returns the content types which can be used within this gallery type.java.lang.String
getPath()
Returns the description.java.lang.String
getSubTitle()
Returns the sub-title.java.lang.String
getUploadAction()
boolean
isEditable()
Returns the editable flag.boolean
matchesFilter(java.lang.String filter)
Returns if the gallery matches the given filter.void
setContentTypes(java.util.ArrayList<java.lang.String> contentTypes)
Sets the content types which can be used within this gallery type.void
setEditable(boolean editable)
Sets if the user has write permissions to the gallery folder.void
setPath(java.lang.String path)
Sets the description.void
setUploadAction(java.lang.String jsFunctionName)
Sets the upload action.-
Methods inherited from class org.opencms.gwt.shared.CmsListInfoBean
addAdditionalInfo, addAdditionalInfo, getAdditionalInfo, getIsFolder, getLockIcon, getLockIconTitle, getResourceState, getResourceType, getStateIcon, getTitle, getType, hasAdditionalInfo, isMarkChangedState, setAdditionalInfo, setIsFolder, setLockIcon, setLockIconTitle, setMarkChangedState, setResourceState, setResourceType, setStateIcon, setSubTitle, setTitle
-
Methods inherited from class org.opencms.gwt.shared.CmsIconBean
getBigIconClasses, getSmallIconClasses, setBigIconClasses, setSmallIconClasses
-
-
-
-
Constructor Detail
-
CmsGalleryFolderBean
public CmsGalleryFolderBean()
-
-
Method Detail
-
getContentTypes
public java.util.ArrayList<java.lang.String> getContentTypes()
Returns the content types which can be used within this gallery type.- Returns:
- the contentTypes
-
getPath
public java.lang.String getPath()
Returns the description.- Specified by:
getPath
in interfaceI_CmsHasPath
- Returns:
- the description
-
getSubTitle
public java.lang.String getSubTitle()
Description copied from class:CmsListInfoBean
Returns the sub-title.- Overrides:
getSubTitle
in classCmsListInfoBean
- Returns:
- the sub-title
- See Also:
CmsListInfoBean.getSubTitle()
-
getUploadAction
public java.lang.String getUploadAction()
-
isEditable
public boolean isEditable()
Returns the editable flag. Indicate if the user has write permissions to the gallery folder.- Returns:
- the editable flag
-
matchesFilter
public boolean matchesFilter(java.lang.String filter)
Returns if the gallery matches the given filter.- Parameters:
filter
- the filter to match- Returns:
true
if the gallery matches the given filter.
-
setContentTypes
public void setContentTypes(java.util.ArrayList<java.lang.String> contentTypes)
Sets the content types which can be used within this gallery type.- Parameters:
contentTypes
- the contentTypes to set
-
setEditable
public void setEditable(boolean editable)
Sets if the user has write permissions to the gallery folder.- Parameters:
editable
-true
if the user has write permissions to the gallery folder
-
setPath
public void setPath(java.lang.String path)
Sets the description.- Parameters:
path
- the description to set
-
setUploadAction
public void setUploadAction(java.lang.String jsFunctionName)
Sets the upload action.- Parameters:
jsFunctionName
- the name of the JavaScript function to call when the upload button is pressed.
-
-