Package org.opencms.ade.galleries.shared
Class CmsResourceTypeBean
java.lang.Object
org.opencms.gwt.shared.CmsIconBean
org.opencms.gwt.shared.CmsListInfoBean
org.opencms.ade.galleries.shared.CmsResourceTypeBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
,I_CmsHasTitle
,I_CmsHasType
Bean representing resource type information.
- Since:
- 8.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum for data source from which resource type bean was constructed.static enum
Enum representing the visibility of a resource type in the bean.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
-
Method Summary
Modifier and TypeMethodDescriptionGets the creation path.Returns the description.Returns the list with the gallery types names associated with this resource type.Returns the naming pattern for new resources.Returns the origin.Returns the preview provider name.int
Returns the resource type id.Gets the visibility.boolean
Returns if the current user may create a new resource of this type.boolean
Returns if the type is deactivated.void
setCreatableType
(boolean creatableType) Sets flag to indicate if the current user may create a new resource of this type.void
setCreatePath
(String createPath) Sets the creation path.void
setDeactivated
(boolean deactivated) Sets the type deactivated.void
setGalleryTypeNames
(ArrayList<String> galleryNames) Sets the list with the gallery types names associated with this resource type.void
setNamePattern
(String pattern) Sets the naming pattern for new resources.void
setOrigin
(CmsResourceTypeBean.Origin origin) Sets the origin.void
setPreviewProviderName
(String previewProviderName) Sets the preview provider name.void
setTypeId
(int typeId) Sets the resource type id.void
setVisibility
(CmsResourceTypeBean.TypeVisibility visibility) Sets the visibility.Methods inherited from class org.opencms.gwt.shared.CmsListInfoBean
addAdditionalInfo, addAdditionalInfo, getAdditionalInfo, getIsFolder, getLockIcon, getLockIconTitle, getResourceState, getResourceType, getStateIcon, getSubTitle, 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 Details
-
CmsResourceTypeBean
public CmsResourceTypeBean()
-
-
Method Details
-
getCreatePath
Gets the creation path.- Returns:
- the creation path
-
getDescription
Returns the description.- Returns:
- the description
-
getGalleryTypeNames
Returns the list with the gallery types names associated with this resource type.- Returns:
- the gallery type names
-
getNamePattern
Returns the naming pattern for new resources.- Returns:
- the naming pattern
-
getOrigin
Returns the origin.- Returns:
- the origin
-
getPreviewProviderName
Returns the preview provider name.- Returns:
- the preview provider name
-
getTypeId
Returns the resource type id.- Returns:
- the resource type id
-
getVisibility
Gets the visibility.- Returns:
- the visibility
-
isCreatableType
Returns if the current user may create a new resource of this type.- Returns:
true
if the current user may create a new resource of this type
-
isDeactivated
Returns if the type is deactivated.- Returns:
- if the type is deactivated
-
setCreatableType
Sets flag to indicate if the current user may create a new resource of this type.- Parameters:
creatableType
-true
if the current user may create a new resource of this type
-
setCreatePath
Sets the creation path.- Parameters:
createPath
- the creation path
-
setDeactivated
Sets the type deactivated.- Parameters:
deactivated
- if the type is deactivated
-
setGalleryTypeNames
Sets the list with the gallery types names associated with this resource type.- Parameters:
galleryNames
- the list with gallery type names to set
-
setNamePattern
Sets the naming pattern for new resources.- Parameters:
pattern
- the naming pattern for new resources
-
setPreviewProviderName
Sets the preview provider name.- Parameters:
previewProviderName
- the preview provider name to set
-
setTypeId
Sets the resource type id.- Parameters:
typeId
- the resource type id to set
-