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
s.
invalid reference
org.opencms.ade.galleries.client.ui.CmsResultListItem
- Since:
- 8.0.0
- See Also:
-
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 -
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.booleanReturns true if the result resource is a copy model.booleanChecks if the result is deactivated.booleanReturns if the represented resource is editable by the current user.booleanisPreset()True if this is result item corresponds to a preset value in the editor.booleanReturns if the result item resource is currently released and not expired.voidsetClientId(String clientId) Sets the structure id.voidsetDateLastModified(String formattedDate) Sets the formatted last modification date.voidsetDeactivated(boolean deactivated) Sets the 'deactivated' state.voidsetDescription(String description) Sets the description.voidsetDimension(String dimension) Sets the dimension.voidsetIsCopyModel(boolean isCopyModel) Sets the "copy model" status of this result bean.voidsetNoEditReson(String noEditReson) Sets the reason this resource may not be edited.voidSets the resource path.voidsetPreset(boolean preset) Sets the "is preset" flag.voidsetRawTitle(String rawTitle) Sets the raw title.voidsetReleasedAndNotExpired(boolean releasedAndNotExpired) Sets if the result item resource is currently released and not expired.voidSets the resource type name.voidsetUserLastModified(String userLastModified) Sets the name of the user who last modified the resource.voidsetViewLink(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, setBigIconClasses, setIsFolder, setLockIcon, setLockIconTitle, setMarkChangedState, setResourceState, setResourceType, setStateIcon, setSubTitle, setTitleMethods inherited from class org.opencms.gwt.shared.CmsIconBean
getBigIconClasses, getSmallIconClasses, 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:
getPathin interfaceI_CmsHasPath- Returns:
- the resourcePath
-
getRawTitle
Gets the raw title, without status information attached.- Returns:
- the raw title
-
getSubTitle
Description copied from class:CmsListInfoBeanReturns the sub-title.- Overrides:
getSubTitlein 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:
trueif 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:
trueif 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
-