Package org.opencms.ade.galleries.shared
Class CmsResourceInfoBean
java.lang.Object
org.opencms.gwt.shared.CmsIconBean
org.opencms.ade.galleries.shared.CmsResourceInfoBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
- Direct Known Subclasses:
CmsImageInfoBean
This bean contains the preview content for the selected item.
- Since:
- 8.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the resource.Returns the last modification date.Returns the no edit reason.Returns the preview content.Returns the properties.getPropertyLabel
(String propName) Gets the label to display for the given property.Returns the resource path.Returns the resource type name.getSize()
Returns the file size.Gets the structure id of the resource.getTitle()
Returns the title of the resource.void
setDescription
(String description) Sets the description of the resource.void
setLastModified
(Date lastModified) Sets the last modification date.void
setNoEditReason
(String noEditReason) Sets the no edit reason.void
setPreviewContent
(String previewContent) Sets the preview content.void
setProperties
(Map<String, String> propeties) Sets the propeties.void
setPropertyNiceNames
(Map<String, String> niceNames) Sets the nice names for the properties.void
setResourcePath
(String resourcePath) Sets the resource path.void
setResourceType
(String resourceType) Sets the resource type name.void
Sets the file size.void
setStructureId
(CmsUUID structureId) Sets the resource structure id.void
Sets the title of the resource.Methods inherited from class org.opencms.gwt.shared.CmsIconBean
getBigIconClasses, getSmallIconClasses, setBigIconClasses, setSmallIconClasses
-
Constructor Details
-
CmsResourceInfoBean
public CmsResourceInfoBean()The constructor.
-
-
Method Details
-
getDescription
Returns the description of the resource.- Returns:
- the description
-
getLastModified
Returns the last modification date.- Returns:
- the last modification date
-
getNoEditReason
Returns the no edit reason. If empty editing is allowed.- Returns:
- the no edit reason
-
getPreviewContent
Returns the preview content.- Returns:
- the preview content
-
getProperties
Returns the properties.- Returns:
- the properties
-
getPropertyLabel
Gets the label to display for the given property.- Parameters:
propName
- the property name- Returns:
- the label to display
-
getResourcePath
Returns the resource path.- Returns:
- the resource path
-
getResourceType
Returns the resource type name.- Returns:
- the resource type name
-
getSize
Returns the file size.- Returns:
- the file size
-
getStructureId
Gets the structure id of the resource.- Returns:
- the structure id of the resource
-
getTitle
Returns the title of the resource.- Returns:
- the title
-
setDescription
Sets the description of the resource.- Parameters:
description
- the description to set
-
setLastModified
Sets the last modification date.- Parameters:
lastModified
- the last modification date to set
-
setNoEditReason
Sets the no edit reason.- Parameters:
noEditReason
- the no edit reason to set
-
setPreviewContent
Sets the preview content.- Parameters:
previewContent
- the preview content to set
-
setProperties
Sets the propeties.- Parameters:
propeties
- the propeties to set
-
setPropertyNiceNames
Sets the nice names for the properties.- Parameters:
niceNames
- the nice names (keys are property names, values the corresponding nice names)
-
setResourcePath
Sets the resource path.- Parameters:
resourcePath
- the resource path to set
-
setResourceType
Sets the resource type name.- Parameters:
resourceType
- the resource type name to set
-
setSize
Sets the file size.- Parameters:
size
- the file size to set
-
setStructureId
Sets the resource structure id.- Parameters:
structureId
- the resource structure id
-
setTitle
Sets the title of the resource.- Parameters:
title
- the title to set
-