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
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 inherited from class org.opencms.gwt.shared.CmsListInfoBean
CSS_CLASS_MULTI_LINE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the structure id of the copy resource.Gets the additional parameter for creating new resources.getDate()
Returns the date to display.Returns the description.int
getId()
Gets the id.Gets the navigation position (used for ordering).Gets the VFS path.boolean
Returns the default flag.boolean
Returns true if the model resource is editable.boolean
Returns true if this is a resource info bean for a function page.void
setCreateParameter
(String createParameter) Sets the create parameter used for new pages.void
Sets the modification date string.void
setDefault
(boolean isDefault) Sets the default flag.void
setIsFunction
(boolean isFunction) Sets the "function page" flag.void
Sets the navigation position.void
setVfsPath
(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 Details
-
NAVIGATION_LEVEL_PARAMETER
The navigation level create parameter.- See Also:
-
-
Constructor Details
-
CmsNewResourceInfo
public CmsNewResourceInfo(int id, String typeName, String title, String description, CmsUUID copyResourceId, boolean editable, 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 Details
-
getCopyResourceId
Returns the structure id of the copy resource.- Returns:
- the structure id of the copy resource
-
getCreateParameter
Gets the additional parameter for creating new resources.- Returns:
- the additional parameter for creating new resources
-
getDate
Returns the date to display.- Returns:
- the date to display
-
getDescription
Returns the description.- Returns:
- the description
-
getId
Gets the id.- Returns:
- the id
-
getVfsPath
Gets the VFS path.- Returns:
- the VFS path
-
isDefault
Returns the default flag.- Returns:
- the default flag
-
isEditable
Returns true if the model resource is editable.- Returns:
- true if the model resource is editable
-
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
Sets the create parameter used for new pages.- Parameters:
createParameter
- the create parameter used for new pages
-
setDate
Sets the modification date string.- Parameters:
date
- the modification date string
-
setDefault
Sets the default flag.- Parameters:
isDefault
- the default flag to set
-
setIsFunction
Sets the "function page" flag.- Parameters:
isFunction
- the new value for the function page flag
-
setVfsPath
Sets the VFS path.- Parameters:
vfsPath
- the VFS path
-