Package org.opencms.ade.sitemap.shared
Class CmsNewResourceInfo
- java.lang.Object
-
- org.opencms.gwt.shared.CmsIconBean
-
- org.opencms.gwt.shared.CmsListInfoBean
-
- org.opencms.ade.sitemap.shared.CmsNewResourceInfo
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
,I_CmsHasTitle
,I_CmsHasType
public class CmsNewResourceInfo extends CmsListInfoBean
A bean representing a resource type for use in the detail page creation menu.- 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 Modifier and Type Field Description static java.lang.String
NAVIGATION_LEVEL_PARAMETER
The navigation level create parameter.-
Fields inherited from class org.opencms.gwt.shared.CmsListInfoBean
CSS_CLASS_MULTI_LINE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsNewResourceInfo()
Empty default constructor for serialization.CmsNewResourceInfo(int id, java.lang.String typeName, java.lang.String title, java.lang.String description, CmsUUID copyResourceId, boolean editable, java.lang.String subTitle)
Instantiates a new resource type information bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsUUID
getCopyResourceId()
Returns the structure id of the copy resource.java.lang.String
getCreateParameter()
Gets the additional parameter for creating new resources.java.lang.String
getDate()
Returns the date to display.java.lang.String
getDescription()
Returns the description.int
getId()
Gets the id.java.lang.Float
getNavPos()
Gets the navigation position (used for ordering).java.lang.String
getVfsPath()
Gets the VFS path.boolean
isDefault()
Returns the default flag.boolean
isEditable()
Returns true if the model resource is editable.boolean
isFunction()
Returns true if this is a resource info bean for a function page.void
setCreateParameter(java.lang.String createParameter)
Sets the create parameter used for new pages.void
setDate(java.lang.String date)
Sets the modification date string.void
setDefault(boolean isDefault)
Sets the default flag.void
setIsFunction(boolean isFunction)
Sets the "function page" flag.void
setNavPos(java.lang.Float navPos)
Sets the navigation position.void
setVfsPath(java.lang.String vfsPath)
Sets the VFS path.-
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
-
-
-
-
Field Detail
-
NAVIGATION_LEVEL_PARAMETER
public static final java.lang.String NAVIGATION_LEVEL_PARAMETER
The navigation level create parameter.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsNewResourceInfo
public CmsNewResourceInfo(int id, java.lang.String typeName, java.lang.String title, java.lang.String description, CmsUUID copyResourceId, boolean editable, java.lang.String subTitle)
Instantiates a new resource type information bean.- Parameters:
id
- the idtypeName
- the type nametitle
- the titledescription
- the descriptioncopyResourceId
- the structure id of the copy resourceeditable
- true if the model resource is editablesubTitle
- the subtitle to display
-
CmsNewResourceInfo
protected CmsNewResourceInfo()
Empty default constructor for serialization.
-
-
Method Detail
-
getCopyResourceId
public CmsUUID getCopyResourceId()
Returns the structure id of the copy resource.- Returns:
- the structure id of the copy resource
-
getCreateParameter
public java.lang.String getCreateParameter()
Gets the additional parameter for creating new resources.- Returns:
- the additional parameter for creating new resources
-
getDate
public java.lang.String getDate()
Returns the date to display.- Returns:
- the date to display
-
getDescription
public java.lang.String getDescription()
Returns the description.- Returns:
- the description
-
getId
public int getId()
Gets the id.- Returns:
- the id
-
getNavPos
public java.lang.Float getNavPos()
Gets the navigation position (used for ordering).- Returns:
- the navigation position
-
getVfsPath
public java.lang.String getVfsPath()
Gets the VFS path.- Returns:
- the VFS path
-
isDefault
public boolean isDefault()
Returns the default flag.- Returns:
- the default flag
-
isEditable
public boolean isEditable()
Returns true if the model resource is editable.- Returns:
- true if the model resource is editable
-
isFunction
public boolean isFunction()
Returns true if this is a resource info bean for a function page.- Returns:
- true if this is a resource info bean for a function page
-
setCreateParameter
public void setCreateParameter(java.lang.String createParameter)
Sets the create parameter used for new pages.- Parameters:
createParameter
- the create parameter used for new pages
-
setDate
public void setDate(java.lang.String date)
Sets the modification date string.- Parameters:
date
- the modification date string
-
setDefault
public void setDefault(boolean isDefault)
Sets the default flag.- Parameters:
isDefault
- the default flag to set
-
setIsFunction
public void setIsFunction(boolean isFunction)
Sets the "function page" flag.- Parameters:
isFunction
- the new value for the function page flag
-
setNavPos
public void setNavPos(java.lang.Float navPos)
Sets the navigation position.- Parameters:
navPos
- the navigation position
-
setVfsPath
public void setVfsPath(java.lang.String vfsPath)
Sets the VFS path.- Parameters:
vfsPath
- the VFS path
-
-