Package org.opencms.ade.publish.shared
Class CmsPublishResource
java.lang.Object
org.opencms.gwt.shared.CmsIconBean
org.opencms.gwt.shared.CmsListInfoBean
org.opencms.ade.publish.shared.CmsPublishResource
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
,I_CmsHasTitle
,I_CmsHasType
A publish resource.
- Since:
- 7.6
-
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
ModifierConstructorDescriptionprotected
For serialization.CmsPublishResource
(CmsUUID id, String name, String title, String resourceType, CmsResourceState state, CmsPermissionInfo permissionInfo, long dateLastModified, String userLastModified, String dateLastModifiedStr, boolean removable, CmsPublishResourceInfo info, List<CmsPublishResource> related) Creates a new publish group bean. -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the last modification date.Gets the modification date formatted as a string.getId()
Returns the id.getInfo()
Returns the additional info.getName()
Returns the name.Returns the permission info.Returns the related resources.long
Gets the date to be used for sorting.Gets the name of the user who last modified the resource.boolean
Returns the removable flag.void
Sets the publish resource info.void
setRemovable
(boolean removable) Enables/disables removability.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
-
CmsPublishResource
protected CmsPublishResource()For serialization.
-
Method Details
-
getDateLastModified
Gets the last modification date.- Returns:
- the last modification date
-
getDateLastModifiedString
Gets the modification date formatted as a string.- Returns:
- the formatted modification date
-
getId
Returns the id.- Returns:
- the id
-
getInfo
Returns the additional info.- Returns:
- the additional info
-
getName
Returns the name.- Returns:
- the name
-
getPermissionInfo
Returns the permission info.- Returns:
- the permission info
-
getRelated
Returns the related resources.- Returns:
- the related resources
-
getSortDate
Gets the date to be used for sorting.- Returns:
- the date which should be used for sorting
-
getUserLastModified
Gets the name of the user who last modified the resource.- Returns:
- the name of the user who last modified the resource
-
isRemovable
Returns the removable flag.- Returns:
- the removable flag
-
setRemovable
Enables/disables removability.- Parameters:
removable
- true if the item should be removable
-