Class 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 in org.opencms.ade.galleries.client.ui.CmsResultListItems.

Since:
8.0.0
See Also:
  • org.opencms.ade.galleries.client.ui.CmsResultListItem
  • Constructor Details

  • Method Details

    • getClientId

      public String 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

      public String getDimension()
      Returns the dimension.

      Returns:
      the dimension
    • getNoEditReson

      Returns the noEditReson.

      Returns:
      the noEditReson
    • getPath

      public String getPath()
      Returns the resourcePath.

      Specified by:
      getPath in interface I_CmsHasPath
      Returns:
      the resourcePath
    • getRawTitle

      public String getRawTitle()
      Gets the raw title, without status information attached.

      Returns:
      the raw title
    • getSubTitle

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

      Overrides:
      getSubTitle in class CmsListInfoBean
      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

      public 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(String clientId)
      Sets the structure id.

      Parameters:
      clientId - the structure id to set
    • setDateLastModified

      public void setDateLastModified(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(String description)
      Sets the description.

      Also used as sub-title.

      Parameters:
      description - the description to set
    • setDimension

      public void setDimension(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(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(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(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(String type)
      Sets the resource type name.

      Parameters:
      type - the resource type name to set
    • setUserLastModified

      public void setUserLastModified(String userLastModified)
      Sets the name of the user who last modified the resource.

      Parameters:
      userLastModified - a user name
    • setViewLink

      public void setViewLink(String viewLink)
      Sets the link for displaying the resource.

      Parameters:
      viewLink - the link for displaying the