org.opencms.ade.galleries.shared
Class CmsResultItemBean

java.lang.Object
  extended by org.opencms.gwt.shared.CmsListInfoBean
      extended by org.opencms.ade.galleries.shared.CmsResultItemBean
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, I_CmsHasPath, I_CmsHasTitle, I_CmsHasType

public class CmsResultItemBean
extends CmsListInfoBean
implements I_CmsHasTitle, I_CmsHasPath, I_CmsHasType

A specific bean holding all info to be displayed in org.opencms.ade.galleries.client.ui.CmsResultListItems.

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
CmsResultItemBean()
          Default constructor.
 
Method Summary
 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 getSubTitle()
          Returns the sub-title.
 java.lang.String getType()
          Returns the resource type name.
 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 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 setDescription(java.lang.String description)
          Sets the description.
 void setDimension(java.lang.String dimension)
          Sets the dimension.
 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 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, getLockIcon, getLockIconTitle, getResourceState, getResourceType, getStateIcon, getTitle, hasAdditionalInfo, setAdditionalInfo, setLockIcon, setLockIconTitle, setResourceState, setResourceType, setStateIcon, setSubTitle, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencms.gwt.shared.sort.I_CmsHasTitle
getTitle
 

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 interface I_CmsHasPath
Returns:
the resourcePath

getSubTitle

public java.lang.String getSubTitle()
Description copied from class: CmsListInfoBean
Returns the sub-title.

Overrides:
getSubTitle in class CmsListInfoBean
Returns:
the sub-title
See Also:
CmsListInfoBean.getSubTitle()

getType

public java.lang.String getType()
Returns the resource type name.

Specified by:
getType in interface I_CmsHasType
Returns:
the resource type name

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

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

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

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

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