Class DisposableContentManager

java.lang.Object
com.aquima.interactions.portal.content.ContentManagerDelegate
com.aquima.interactions.portal.content.DisposableContentManager
All Implemented Interfaces:
IContentManager

public class DisposableContentManager extends ContentManagerDelegate
A content manager which will place a DisposableContent on the IPortalScope.
Since:
9.3
Author:
m.mahabiersing
  • Constructor Details

  • Method Details

    • create

      public GUID create(InputStream stream, String name, String contentType, Long processId, String caseId, CustomContentProperties properties, IUserData user, String... roles)
      Description copied from interface: IContentManager
      Add new content to the repository.
      Specified by:
      create in interface IContentManager
      Overrides:
      create in class ContentManagerDelegate
      Parameters:
      stream - The stream containing the data, may not be null.
      name - A name for the content, may not be null.
      contentType - The content type of the data, may be null if unknown.
      processId - The id of the process where this content is part of, may be null.
      caseId - The id of the case where this content is part of, may be null.
      properties - Custom properties that should be stored with the content, may not be null.
      user - The user who is considered the creator of the content, may not be null.
      roles - The list of authorized roles associated to this content, may not be null.
      Returns:
      Returns a GUID that uniquely identifies the content, never null.
    • delete

      public void delete(GUID id, IUserData user, boolean checkRoles)
      Description copied from interface: IContentManager
      Delete content from the repository
      Specified by:
      delete in interface IContentManager
      Overrides:
      delete in class ContentManagerDelegate
      Parameters:
      id - The id of the content which should be deleted, may not be null.
      user - The user that is deleting the content, may not be null.
      checkRoles - Flag indicating if the roles check should be done or not.
    • hasDisposableContent

      public boolean hasDisposableContent()
      Description copied from interface: IContentManager
      This method checks if the current content manager has any IDisposableContent contents.
      Specified by:
      hasDisposableContent in interface IContentManager
      Overrides:
      hasDisposableContent in class ContentManagerDelegate
      Returns:
      A flag indicating whether the content manager has disposable content objects.
    • getDisposableContent

      public IDisposableContent getDisposableContent()
      Description copied from interface: IContentManager
      This method returns the content manager's disposable content.
      Specified by:
      getDisposableContent in interface IContentManager
      Overrides:
      getDisposableContent in class ContentManagerDelegate