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
public class CmsPublishResource extends CmsListInfoBean
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
Constructors Modifier Constructor Description protected
CmsPublishResource()
For serialization.CmsPublishResource(CmsUUID id, java.lang.String name, java.lang.String title, java.lang.String resourceType, CmsResourceState state, CmsPermissionInfo permissionInfo, long dateLastModified, java.lang.String userLastModified, java.lang.String dateLastModifiedStr, boolean removable, CmsPublishResourceInfo info, java.util.List<CmsPublishResource> related)
Creates a new publish group bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDateLastModified()
Gets the last modification date.java.lang.String
getDateLastModifiedString()
Gets the modification date formatted as a string.CmsUUID
getId()
Returns the id.CmsPublishResourceInfo
getInfo()
Returns the additional info.java.lang.String
getName()
Returns the name.CmsPermissionInfo
getPermissionInfo()
Returns the permission info.java.util.List<CmsPublishResource>
getRelated()
Returns the related resources.long
getSortDate()
Gets the date to be used for sorting.java.lang.String
getUserLastModified()
Gets the name of the user who last modified the resource.boolean
isRemovable()
Returns the removable flag.void
setInfo(CmsPublishResourceInfo info)
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 Detail
-
CmsPublishResource
public CmsPublishResource(CmsUUID id, java.lang.String name, java.lang.String title, java.lang.String resourceType, CmsResourceState state, CmsPermissionInfo permissionInfo, long dateLastModified, java.lang.String userLastModified, java.lang.String dateLastModifiedStr, boolean removable, CmsPublishResourceInfo info, java.util.List<CmsPublishResource> related)
Creates a new publish group bean.- Parameters:
id
- the resource idname
- the resource nametitle
- the resource titleresourceType
- the resource type namestate
- the resource statepermissionInfo
- the permission infodateLastModified
- the last modification dateuserLastModified
- name of the user who last modified the resourcedateLastModifiedStr
- the last modification date as a formatted stringremovable
- to indicate if the resource can be removed from the user's publish listinfo
- the additional information, if anyrelated
- the related resources
-
CmsPublishResource
protected CmsPublishResource()
For serialization.
-
-
Method Detail
-
getDateLastModified
public long getDateLastModified()
Gets the last modification date.- Returns:
- the last modification date
-
getDateLastModifiedString
public java.lang.String getDateLastModifiedString()
Gets the modification date formatted as a string.- Returns:
- the formatted modification date
-
getInfo
public CmsPublishResourceInfo getInfo()
Returns the additional info.- Returns:
- the additional info
-
getName
public java.lang.String getName()
Returns the name.- Returns:
- the name
-
getPermissionInfo
public CmsPermissionInfo getPermissionInfo()
Returns the permission info.- Returns:
- the permission info
-
getRelated
public java.util.List<CmsPublishResource> getRelated()
Returns the related resources.- Returns:
- the related resources
-
getSortDate
public long getSortDate()
Gets the date to be used for sorting.- Returns:
- the date which should be used for sorting
-
getUserLastModified
public java.lang.String getUserLastModified()
Gets the name of the user who last modified the resource.- Returns:
- the name of the user who last modified the resource
-
isRemovable
public boolean isRemovable()
Returns the removable flag.- Returns:
- the removable flag
-
setInfo
public void setInfo(CmsPublishResourceInfo info)
Sets the publish resource info.- Parameters:
info
- the publish resource info
-
setRemovable
public void setRemovable(boolean removable)
Enables/disables removability.- Parameters:
removable
- true if the item should be removable
-
-