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
public class CmsResourceTypeBean extends CmsListInfoBean
Bean representing resource type information.- Since:
- 8.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmsResourceTypeBean.Origin
Enum for data source from which resource type bean was constructed.static class
CmsResourceTypeBean.TypeVisibility
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
Constructors Constructor Description CmsResourceTypeBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCreatePath()
Gets the creation path.java.lang.String
getDescription()
Returns the description.java.util.ArrayList<java.lang.String>
getGalleryTypeNames()
Returns the list with the gallery types names associated with this resource type.java.lang.String
getNamePattern()
Returns the naming pattern for new resources.CmsResourceTypeBean.Origin
getOrigin()
Returns the origin.java.lang.String
getPreviewProviderName()
Returns the preview provider name.int
getTypeId()
Returns the resource type id.CmsResourceTypeBean.TypeVisibility
getVisibility()
Gets the visibility.boolean
isCreatableType()
Returns if the current user may create a new resource of this type.boolean
isDeactivated()
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(java.lang.String createPath)
Sets the creation path.void
setDeactivated(boolean deactivated)
Sets the type deactivated.void
setGalleryTypeNames(java.util.ArrayList<java.lang.String> galleryNames)
Sets the list with the gallery types names associated with this resource type.void
setNamePattern(java.lang.String pattern)
Sets the naming pattern for new resources.void
setOrigin(CmsResourceTypeBean.Origin origin)
Sets the origin.void
setPreviewProviderName(java.lang.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 Detail
-
CmsResourceTypeBean
public CmsResourceTypeBean()
-
-
Method Detail
-
getCreatePath
public java.lang.String getCreatePath()
Gets the creation path.- Returns:
- the creation path
-
getDescription
public java.lang.String getDescription()
Returns the description.- Returns:
- the description
-
getGalleryTypeNames
public java.util.ArrayList<java.lang.String> getGalleryTypeNames()
Returns the list with the gallery types names associated with this resource type.- Returns:
- the gallery type names
-
getNamePattern
public java.lang.String getNamePattern()
Returns the naming pattern for new resources.- Returns:
- the naming pattern
-
getOrigin
public CmsResourceTypeBean.Origin getOrigin()
Returns the origin.- Returns:
- the origin
-
getPreviewProviderName
public java.lang.String getPreviewProviderName()
Returns the preview provider name.- Returns:
- the preview provider name
-
getTypeId
public int getTypeId()
Returns the resource type id.- Returns:
- the resource type id
-
getVisibility
public CmsResourceTypeBean.TypeVisibility getVisibility()
Gets the visibility.- Returns:
- the visibility
-
isCreatableType
public boolean 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
public boolean isDeactivated()
Returns if the type is deactivated.- Returns:
- if the type is deactivated
-
setCreatableType
public void setCreatableType(boolean creatableType)
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
public void setCreatePath(java.lang.String createPath)
Sets the creation path.- Parameters:
createPath
- the creation path
-
setDeactivated
public void setDeactivated(boolean deactivated)
Sets the type deactivated.- Parameters:
deactivated
- if the type is deactivated
-
setGalleryTypeNames
public void setGalleryTypeNames(java.util.ArrayList<java.lang.String> galleryNames)
Sets the list with the gallery types names associated with this resource type.- Parameters:
galleryNames
- the list with gallery type names to set
-
setNamePattern
public void setNamePattern(java.lang.String pattern)
Sets the naming pattern for new resources.- Parameters:
pattern
- the naming pattern for new resources
-
setOrigin
public void setOrigin(CmsResourceTypeBean.Origin origin)
Sets the origin.- Parameters:
origin
- the origin to set
-
setPreviewProviderName
public void setPreviewProviderName(java.lang.String previewProviderName)
Sets the preview provider name.- Parameters:
previewProviderName
- the preview provider name to set
-
setTypeId
public void setTypeId(int typeId)
Sets the resource type id.- Parameters:
typeId
- the resource type id to set
-
setVisibility
public void setVisibility(CmsResourceTypeBean.TypeVisibility visibility)
Sets the visibility.- Parameters:
visibility
- the new visibility
-
-