Package org.opencms.ade.galleries.shared
Class CmsResultItemBean
java.lang.Object
org.opencms.gwt.shared.CmsIconBean
org.opencms.gwt.shared.CmsListInfoBean
org.opencms.ade.galleries.shared.CmsResultItemBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
,I_CmsHasPath
,I_CmsHasTitle
,I_CmsHasType
A specific bean holding all info to be displayed in
org.opencms.ade.galleries.client.ui.CmsResultListItem
s.- Since:
- 8.0.0
- See Also:
-
org.opencms.ade.galleries.client.ui.CmsResultListItem
-
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 structured id.Returns the formatted last modification date.Returns the description.Returns the dimension.Returns the noEditReson.getPath()
Returns the resourcePath.Gets the raw title, without status information attached.Returns the sub-title.Gets the name of the user who last modified the resource.Gets the link for displaying the resource.boolean
Returns true if the result resource is a copy model.boolean
Checks if the result is deactivated.boolean
Returns if the represented resource is editable by the current user.boolean
isPreset()
True if this is result item corresponds to a preset value in the editor.boolean
Returns if the result item resource is currently released and not expired.void
setClientId
(String clientId) Sets the structure id.void
setDateLastModified
(String formattedDate) Sets the formatted last modification date.void
setDeactivated
(boolean deactivated) Sets the 'deactivated' state.void
setDescription
(String description) Sets the description.void
setDimension
(String dimension) Sets the dimension.void
setIsCopyModel
(boolean isCopyModel) Sets the "copy model" status of this result bean.void
setNoEditReson
(String noEditReson) Sets the reason this resource may not be edited.void
Sets the resource path.void
setPreset
(boolean preset) Sets the "is preset" flag.void
setRawTitle
(String rawTitle) Sets the raw title.void
setReleasedAndNotExpired
(boolean releasedAndNotExpired) Sets if the result item resource is currently released and not expired.void
Sets the resource type name.void
setUserLastModified
(String userLastModified) Sets the name of the user who last modified the resource.void
setViewLink
(String viewLink) Sets the link for displaying the resource.Methods inherited from class org.opencms.gwt.shared.CmsListInfoBean
addAdditionalInfo, addAdditionalInfo, getAdditionalInfo, getIsFolder, getLockIcon, getLockIconTitle, getResourceState, getResourceType, getStateIcon, 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
-
CmsResultItemBean
public CmsResultItemBean()Default constructor.
-
-
Method Details
-
getClientId
Returns the structured id.- Returns:
- the structured id
-
getDateLastModified
Returns the formatted last modification date.- Returns:
- the formatted last modification date
-
getDescription
Returns the description.- Returns:
- the description
-
getDimension
Returns the dimension.- Returns:
- the dimension
-
getNoEditReson
Returns the noEditReson.- Returns:
- the noEditReson
-
getPath
Returns the resourcePath.- Specified by:
getPath
in interfaceI_CmsHasPath
- Returns:
- the resourcePath
-
getRawTitle
Gets the raw title, without status information attached.- Returns:
- the raw title
-
getSubTitle
Description copied from class:CmsListInfoBean
Returns the sub-title.- Overrides:
getSubTitle
in classCmsListInfoBean
- Returns:
- the sub-title
- See Also:
-
getUserLastModified
Gets the name of the user who last modified the resource.- Returns:
- the name of the user who last modified the resource
-
getViewLink
Gets the link for displaying the resource.- Returns:
- the link for displaying the resource
-
isCopyModel
Returns true if the result resource is a copy model.- Returns:
- true if the resource is a copy model
-
isDeactivated
Checks if the result is deactivated.- Returns:
- true if the result is deactivated
-
isEditable
Returns if the represented resource is editable by the current user.- Returns:
true
if editable
-
isPreset
True if this is result item corresponds to a preset value in the editor.- Returns:
- true if this corresponds to a preset value
-
isReleasedAndNotExpired
Returns if the result item resource is currently released and not expired.- Returns:
true
if the result item resource is currently released and not expired
-
setClientId
Sets the structure id.- Parameters:
clientId
- the structure id to set
-
setDateLastModified
Sets the formatted last modification date.- Parameters:
formattedDate
- the formatted last modification date
-
setDeactivated
Sets the 'deactivated' state.- Parameters:
deactivated
- the 'deactivated' state
-
setDescription
Sets the description.Also used as sub-title.
- Parameters:
description
- the description to set
-
setDimension
Sets the dimension.- Parameters:
dimension
- the dimension to set
-
setIsCopyModel
Sets the "copy model" status of this result bean.- Parameters:
isCopyModel
- true if this result should be marked as a copy model
-
setNoEditReson
Sets the reason this resource may not be edited.- Parameters:
noEditReson
- the reason this resource may not be edited to set
-
setPath
Sets the resource path.- Parameters:
path
- the resource path to set
-
setPreset
Sets the "is preset" flag.- Parameters:
preset
- the "is preset" flag
-
setRawTitle
Sets the raw title.- Parameters:
rawTitle
- the raw title
-
setReleasedAndNotExpired
Sets if the result item resource is currently released and not expired.- Parameters:
releasedAndNotExpired
- if the result item resource is currently released and not expired
-
setType
Sets the resource type name.- Parameters:
type
- the resource type name to set
-
setUserLastModified
Sets the name of the user who last modified the resource.- Parameters:
userLastModified
- a user name
-
setViewLink
Sets the link for displaying the resource.- Parameters:
viewLink
- the link for displaying the
-