Class NonChannelTestMemoryContentManager

java.lang.Object
com.aquima.interactions.test.content.NonChannelTestMemoryContentManager
All Implemented Interfaces:
com.aquima.interactions.portal.IContentManager, com.aquima.interactions.portal.IMovingContentManager

public class NonChannelTestMemoryContentManager extends Object implements com.aquima.interactions.portal.IContentManager
A version of the MemoryContentManager that does not implement IChannelContentManager interface. For test purposes.
Since:
17.4
  • Constructor Summary

    Constructors
    Constructor
    Description
    NonChannelTestMemoryContentManager(com.aquima.interactions.foundation.connectivity.IMemoryConnection connection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.aquima.interactions.foundation.GUID
    create(InputStream stream, String name, String contentType, Long processId, String caseId, com.aquima.interactions.portal.content.CustomContentProperties properties, com.aquima.interactions.project.IUserData user, String... roles)
     
    void
    delete(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user, boolean checkRoles)
     
    com.aquima.interactions.portal.IDisposableContent
     
    com.aquima.interactions.portal.IMovingContentManager
     
    boolean
     
    boolean
    isAuthorized(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user)
     
    com.aquima.interactions.foundation.GUID
    move(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.portal.IContentManager targetContentManager, com.aquima.interactions.project.IUserData user)
     
    void
    notifyMove(com.aquima.interactions.foundation.GUID id)
     
    int
    readBytes(com.aquima.interactions.foundation.GUID id, long position, byte[] buffer, int offset, int length, com.aquima.interactions.project.IUserData user)
     
    com.aquima.interactions.portal.IContentMetadata
    readMetadata(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user, boolean checkRoles)
     
    readRoles(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user)
     
    void
    update(com.aquima.interactions.foundation.GUID id, InputStream stream, String name, String contentType, com.aquima.interactions.project.IUserData user)
     
    void
    update(com.aquima.interactions.foundation.GUID id, InputStream stream, String name, String contentType, Long processId, String caseId, com.aquima.interactions.portal.content.CustomContentProperties properties, com.aquima.interactions.project.IUserData user)
     
    void
    update(com.aquima.interactions.foundation.GUID id, Long processId, String caseId, com.aquima.interactions.portal.content.CustomContentProperties properties, com.aquima.interactions.project.IUserData user)
     
    void
    update(com.aquima.interactions.foundation.GUID id, String[] newRoles, com.aquima.interactions.project.IUserData user)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NonChannelTestMemoryContentManager

      public NonChannelTestMemoryContentManager(com.aquima.interactions.foundation.connectivity.IMemoryConnection connection)
  • Method Details

    • create

      public com.aquima.interactions.foundation.GUID create(InputStream stream, String name, String contentType, Long processId, String caseId, com.aquima.interactions.portal.content.CustomContentProperties properties, com.aquima.interactions.project.IUserData user, String... roles)
      Specified by:
      create in interface com.aquima.interactions.portal.IContentManager
    • readBytes

      public int readBytes(com.aquima.interactions.foundation.GUID id, long position, byte[] buffer, int offset, int length, com.aquima.interactions.project.IUserData user)
      Specified by:
      readBytes in interface com.aquima.interactions.portal.IContentManager
    • readMetadata

      public com.aquima.interactions.portal.IContentMetadata readMetadata(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user, boolean checkRoles)
      Specified by:
      readMetadata in interface com.aquima.interactions.portal.IContentManager
    • readRoles

      public String[] readRoles(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user)
      Specified by:
      readRoles in interface com.aquima.interactions.portal.IContentManager
    • update

      public void update(com.aquima.interactions.foundation.GUID id, String[] newRoles, com.aquima.interactions.project.IUserData user)
      Specified by:
      update in interface com.aquima.interactions.portal.IContentManager
    • update

      public void update(com.aquima.interactions.foundation.GUID id, InputStream stream, String name, String contentType, Long processId, String caseId, com.aquima.interactions.portal.content.CustomContentProperties properties, com.aquima.interactions.project.IUserData user)
      Specified by:
      update in interface com.aquima.interactions.portal.IContentManager
    • update

      public void update(com.aquima.interactions.foundation.GUID id, InputStream stream, String name, String contentType, com.aquima.interactions.project.IUserData user)
      Specified by:
      update in interface com.aquima.interactions.portal.IContentManager
    • update

      public void update(com.aquima.interactions.foundation.GUID id, Long processId, String caseId, com.aquima.interactions.portal.content.CustomContentProperties properties, com.aquima.interactions.project.IUserData user)
      Specified by:
      update in interface com.aquima.interactions.portal.IContentManager
    • delete

      public void delete(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user, boolean checkRoles)
      Specified by:
      delete in interface com.aquima.interactions.portal.IContentManager
    • isAuthorized

      public boolean isAuthorized(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user)
      Specified by:
      isAuthorized in interface com.aquima.interactions.portal.IContentManager
    • hasDisposableContent

      public boolean hasDisposableContent()
      Specified by:
      hasDisposableContent in interface com.aquima.interactions.portal.IContentManager
    • getDisposableContent

      public com.aquima.interactions.portal.IDisposableContent getDisposableContent()
      Specified by:
      getDisposableContent in interface com.aquima.interactions.portal.IContentManager
    • getImplementation

      public com.aquima.interactions.portal.IMovingContentManager getImplementation()
      Specified by:
      getImplementation in interface com.aquima.interactions.portal.IMovingContentManager
    • move

      public com.aquima.interactions.foundation.GUID move(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.portal.IContentManager targetContentManager, com.aquima.interactions.project.IUserData user) throws com.aquima.interactions.portal.exception.MoveContentException
      Specified by:
      move in interface com.aquima.interactions.portal.IMovingContentManager
      Throws:
      com.aquima.interactions.portal.exception.MoveContentException
    • notifyMove

      public void notifyMove(com.aquima.interactions.foundation.GUID id)
      Specified by:
      notifyMove in interface com.aquima.interactions.portal.IMovingContentManager
    • canMove

      public boolean canMove()
      Specified by:
      canMove in interface com.aquima.interactions.portal.IMovingContentManager