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
public class CmsResultItemBean extends CmsListInfoBean implements I_CmsHasPath
A specific bean holding all info to be displayed inorg.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
Constructors Constructor Description CmsResultItemBean()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClientId()
Returns the structured id.java.lang.String
getDateLastModified()
Returns the formatted last modification date.java.lang.String
getDescription()
Returns the description.java.lang.String
getDimension()
Returns the dimension.java.lang.String
getNoEditReson()
Returns the noEditReson.java.lang.String
getPath()
Returns the resourcePath.java.lang.String
getRawTitle()
Gets the raw title, without status information attached.java.lang.String
getSubTitle()
Returns the sub-title.java.lang.String
getUserLastModified()
Gets the name of the user who last modified the resource.java.lang.String
getViewLink()
Gets the link for displaying the resource.boolean
isCopyModel()
Returns true if the result resource is a copy model.boolean
isDeactivated()
Checks if the result is deactivated.boolean
isEditable()
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
isReleasedAndNotExpired()
Returns if the result item resource is currently released and not expired.void
setClientId(java.lang.String clientId)
Sets the structure id.void
setDateLastModified(java.lang.String formattedDate)
Sets the formatted last modification date.void
setDeactivated(boolean deactivated)
Sets the 'deactivated' state.void
setDescription(java.lang.String description)
Sets the description.void
setDimension(java.lang.String dimension)
Sets the dimension.void
setIsCopyModel(boolean isCopyModel)
Sets the "copy model" status of this result bean.void
setNoEditReson(java.lang.String noEditReson)
Sets the reason this resource may not be edited.void
setPath(java.lang.String path)
Sets the resource path.void
setPreset(boolean preset)
Sets the "is preset" flag.void
setRawTitle(java.lang.String rawTitle)
Sets the raw title.void
setReleasedAndNotExpired(boolean releasedAndNotExpired)
Sets if the result item resource is currently released and not expired.void
setType(java.lang.String type)
Sets the resource type name.void
setUserLastModified(java.lang.String userLastModified)
Sets the name of the user who last modified the resource.void
setViewLink(java.lang.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 Detail
-
CmsResultItemBean
public CmsResultItemBean()
Default constructor.
-
-
Method Detail
-
getClientId
public java.lang.String getClientId()
Returns the structured id.- Returns:
- the structured id
-
getDateLastModified
public java.lang.String getDateLastModified()
Returns the formatted last modification date.- Returns:
- the formatted last modification date
-
getDescription
public java.lang.String getDescription()
Returns the description.- Returns:
- the description
-
getDimension
public java.lang.String getDimension()
Returns the dimension.- Returns:
- the dimension
-
getNoEditReson
public java.lang.String getNoEditReson()
Returns the noEditReson.- Returns:
- the noEditReson
-
getPath
public java.lang.String getPath()
Returns the resourcePath.- Specified by:
getPath
in interfaceI_CmsHasPath
- Returns:
- the resourcePath
-
getRawTitle
public java.lang.String getRawTitle()
Gets the raw title, without status information attached.- Returns:
- the raw title
-
getSubTitle
public java.lang.String getSubTitle()
Description copied from class:CmsListInfoBean
Returns the sub-title.- Overrides:
getSubTitle
in classCmsListInfoBean
- Returns:
- the sub-title
- See Also:
CmsListInfoBean.getSubTitle()
-
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
-
getViewLink
public java.lang.String getViewLink()
Gets the link for displaying the resource.- Returns:
- the link for displaying the resource
-
isCopyModel
public boolean isCopyModel()
Returns true if the result resource is a copy model.- Returns:
- true if the resource is a copy model
-
isDeactivated
public boolean isDeactivated()
Checks if the result is deactivated.- Returns:
- true if the result is deactivated
-
isEditable
public boolean isEditable()
Returns if the represented resource is editable by the current user.- Returns:
true
if editable
-
isPreset
public boolean 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
public boolean 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
public void setClientId(java.lang.String clientId)
Sets the structure id.- Parameters:
clientId
- the structure id to set
-
setDateLastModified
public void setDateLastModified(java.lang.String formattedDate)
Sets the formatted last modification date.- Parameters:
formattedDate
- the formatted last modification date
-
setDeactivated
public void setDeactivated(boolean deactivated)
Sets the 'deactivated' state.- Parameters:
deactivated
- the 'deactivated' state
-
setDescription
public void setDescription(java.lang.String description)
Sets the description.Also used as sub-title.
- Parameters:
description
- the description to set
-
setDimension
public void setDimension(java.lang.String dimension)
Sets the dimension.- Parameters:
dimension
- the dimension to set
-
setIsCopyModel
public void setIsCopyModel(boolean isCopyModel)
Sets the "copy model" status of this result bean.- Parameters:
isCopyModel
- true if this result should be marked as a copy model
-
setNoEditReson
public void setNoEditReson(java.lang.String noEditReson)
Sets the reason this resource may not be edited.- Parameters:
noEditReson
- the reason this resource may not be edited to set
-
setPath
public void setPath(java.lang.String path)
Sets the resource path.- Parameters:
path
- the resource path to set
-
setPreset
public void setPreset(boolean preset)
Sets the "is preset" flag.- Parameters:
preset
- the "is preset" flag
-
setRawTitle
public void setRawTitle(java.lang.String rawTitle)
Sets the raw title.- Parameters:
rawTitle
- the raw title
-
setReleasedAndNotExpired
public void setReleasedAndNotExpired(boolean releasedAndNotExpired)
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
public void setType(java.lang.String type)
Sets the resource type name.- Parameters:
type
- the resource type name to set
-
setUserLastModified
public void setUserLastModified(java.lang.String userLastModified)
Sets the name of the user who last modified the resource.- Parameters:
userLastModified
- a user name
-
setViewLink
public void setViewLink(java.lang.String viewLink)
Sets the link for displaying the resource.- Parameters:
viewLink
- the link for displaying the
-
-