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
ConstructorDescriptionNonChannelTestMemoryContentManager
(com.aquima.interactions.foundation.connectivity.IMemoryConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canMove()
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) String[]
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)
-
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 interfacecom.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 interfacecom.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 interfacecom.aquima.interactions.portal.IContentManager
-
readRoles
public String[] readRoles(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user) - Specified by:
readRoles
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.aquima.interactions.portal.IContentManager
-
isAuthorized
public boolean isAuthorized(com.aquima.interactions.foundation.GUID id, com.aquima.interactions.project.IUserData user) - Specified by:
isAuthorized
in interfacecom.aquima.interactions.portal.IContentManager
-
hasDisposableContent
public boolean hasDisposableContent()- Specified by:
hasDisposableContent
in interfacecom.aquima.interactions.portal.IContentManager
-
getDisposableContent
public com.aquima.interactions.portal.IDisposableContent getDisposableContent()- Specified by:
getDisposableContent
in interfacecom.aquima.interactions.portal.IContentManager
-
getImplementation
public com.aquima.interactions.portal.IMovingContentManager getImplementation()- Specified by:
getImplementation
in interfacecom.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 interfacecom.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 interfacecom.aquima.interactions.portal.IMovingContentManager
-
canMove
public boolean canMove()- Specified by:
canMove
in interfacecom.aquima.interactions.portal.IMovingContentManager
-