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()
           
 
Method Summary
 java.lang.String getClientId()
          Returns the structured id.
 java.lang.String getDescription()
          Returns the description.
 java.lang.String getNoEditReson()
          Returns the noEditReson.
 java.lang.String getPath()
          Returns the resourcePath.
 java.lang.String getType()
          Returns the resource type name.
 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 setDescription(java.lang.String description)
          Sets the description.
 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 setSubTitle(java.lang.String subTitle)
          Sets the sub-title.
 void setType(java.lang.String type)
          Sets the resource type name.
 
Methods inherited from class org.opencms.gwt.shared.CmsListInfoBean
addAdditionalInfo, addAdditionalInfo, getAdditionalInfo, getLockIcon, getLockIconTitle, getResourceState, getResourceType, getStateIcon, getSubTitle, getTitle, hasAdditionalInfo, setAdditionalInfo, setLockIcon, setLockIconTitle, setResourceState, setResourceType, setStateIcon, 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()
Method Detail

getClientId

public java.lang.String getClientId()
Returns the structured id.

Returns:
the structured id

getDescription

public java.lang.String getDescription()
Returns the description.

Returns:
the description

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

getType

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

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

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

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Also used as sub-title.

Parameters:
description - the description 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

setSubTitle

public void setSubTitle(java.lang.String subTitle)
Description copied from class: CmsListInfoBean
Sets the sub-title.

Overrides:
setSubTitle in class CmsListInfoBean
Parameters:
subTitle - the sub-title to set
See Also:
CmsListInfoBean.setSubTitle(java.lang.String)

setType

public void setType(java.lang.String type)
Sets the resource type name.

Parameters:
type - the resource type name to set