Class PortalResource

java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
All Implemented Interfaces:
IEntity, Serializable, org.apache.cayenne.DataObject, org.apache.cayenne.Persistent, org.apache.cayenne.Validating

@CacheGroups("CONFIG") public class PortalResource extends _PortalResource
Provides a portal resource, such as an image.
See Also:
  • Field Details

    • RESOURCES_PATH_PREFIX

      public static final String RESOURCES_PATH_PREFIX
      The resource path prefix - all resources need to be located in this structure
      See Also:
  • Constructor Details

    • PortalResource

      public PortalResource()
  • Method Details

    • isContentChange

      public boolean isContentChange()
      Return true if there is a difference between the base content and the resource content.
      Returns:
      true if there is a difference between the base content and the resource content
      Since:
      3.6.0
    • setContent

      public void setContent(byte[] content)
      Set the current content, updating the content timestamp as well
      Overrides:
      setContent in class _PortalResource
      Parameters:
      content - the new content
    • setContentBase

      public void setContentBase(byte[] content)
      Update the base resource content defined by the SmartForm Manager web application. This method is called internally - to update current content, use setContent(byte[])
      Overrides:
      setContentBase in class _PortalResource
      Parameters:
      content - the new content
    • rollbackContent

      public void rollbackContent()
      Roll back portal resource content to the base content available in the web application
    • refreshContentBaseMd5

      public void refreshContentBaseMd5()
      Refresh the base content MD5 hash values.
    • isTextContent

      public boolean isTextContent()
      Returns:
      true if the portal resource has text content
    • isBaseContentMerged

      public boolean isBaseContentMerged()
      Return true if the base content has been merged.
      Returns:
      true if the base content has been merged.
      Since:
      4.2.0
    • markContentMerged

      public void markContentMerged()
      Mark the base content as having been merged with resource content.
      Since:
      4.2.0