Class PermanentContentManager
java.lang.Object
com.aquima.interactions.portal.content.ContentManagerDelegate
com.aquima.interactions.portal.content.PermanentContentManager
- All Implemented Interfaces:
IContentManager
,IMovingContentManager
- Direct Known Subclasses:
PermanentChannelContentManager
-
Field Summary
Fields inherited from class com.aquima.interactions.portal.content.ContentManagerDelegate
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canMove()
Indicator of the implementation ofIMovingContentManager
is able to directly move contentcreate
(InputStream stream, String name, String contentType, Long processId, String caseId, CustomContentProperties properties, IUserData user, String... roles) Add new content to the repository.Methods inherited from class com.aquima.interactions.portal.content.ContentManagerDelegate
delete, getDisposableContent, getImplementation, hasDisposableContent, isAuthorized, move, notifyMove, readBytes, readMetadata, readRoles, update, update, update, update
-
Constructor Details
-
PermanentContentManager
-
-
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 interfaceIContentManager
- Overrides:
create
in classContentManagerDelegate
- Parameters:
stream
- The stream containing the data, may not benull
.name
- A name for the content, may not benull
.contentType
- The content type of the data, may benull
ifunknown
.processId
- The id of the process where this content is part of, may benull
.caseId
- The id of the case where this content is part of, may benull
.properties
- Custom properties that should be stored with the content, may not benull
.user
- The user who is considered the creator of the content, may not benull
.roles
- The list of authorized roles associated to this content, may not benull
.- Returns:
- Returns a GUID that uniquely identifies the content, never
null
.
-
canMove
public boolean canMove()Description copied from interface:IMovingContentManager
Indicator of the implementation ofIMovingContentManager
is able to directly move content- Specified by:
canMove
in interfaceIMovingContentManager
- Overrides:
canMove
in classContentManagerDelegate
- Returns:
- Returns true it can directly move content.
-