Class DisposableContentManager
java.lang.Object
com.aquima.interactions.portal.content.ContentManagerDelegate
com.aquima.interactions.portal.content.DisposableContentManager
- All Implemented Interfaces:
IContentManager
,IMovingContentManager
- Direct Known Subclasses:
DisposableChannelContentManager
A content manager which will place a DisposableContent on the
IPortalScope
.- Since:
- 9.3
- Author:
- m.mahabiersing
-
Field Summary
FieldsFields inherited from class com.aquima.interactions.portal.content.ContentManagerDelegate
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionDisposableContentManager
(IContentManager delegate, String connectionName, IPortalScope scope) DisposableContentManager
(IContentManager delegate, String connectionName, IPortalScope scope, String key) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(InputStream stream, String name, String contentType, Long processId, String caseId, CustomContentProperties properties, IUserData user, String... roles) Add new content to the repository.void
Delete content from the repositoryThis method returns the content manager's disposable content.boolean
This method checks if the current content manager has anyIDisposableContent
contents.move
(GUID id, IContentManager targetContentManager, IUserData user) Directly move content from one content manager to another using low level API.void
notifyMove
(GUID id) Notify that a move has taken places on theIMovingContentManager
.Methods inherited from class com.aquima.interactions.portal.content.ContentManagerDelegate
canMove, getImplementation, isAuthorized, readBytes, readMetadata, readRoles, update, update, update, update
-
Field Details
-
Constructor Details
-
DisposableContentManager
public DisposableContentManager(IContentManager delegate, String connectionName, IPortalScope scope) -
DisposableContentManager
public DisposableContentManager(IContentManager delegate, String connectionName, IPortalScope scope, String key)
-
-
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
.
-
delete
Description copied from interface:IContentManager
Delete content from the repository- Specified by:
delete
in interfaceIContentManager
- Overrides:
delete
in classContentManagerDelegate
- Parameters:
id
- The id of the content which should be deleted, may not benull
.user
- The user that is deleting the content, may not benull
.checkRoles
- Flag indicating if the roles check should be done or not.
-
move
Description copied from interface:IMovingContentManager
Directly move content from one content manager to another using low level API.- Specified by:
move
in interfaceIMovingContentManager
- Overrides:
move
in classContentManagerDelegate
- Parameters:
id
- The id of the content, may not benull
targetContentManager
- The targeting content manager to move content to, may not benull
user
- The user that is moving the content, may not benull
.- Returns:
- Returns the new GUID that uniquely the moved content, never
null
.
-
hasDisposableContent
public boolean hasDisposableContent()Description copied from interface:IContentManager
This method checks if the current content manager has anyIDisposableContent
contents.- Specified by:
hasDisposableContent
in interfaceIContentManager
- Overrides:
hasDisposableContent
in classContentManagerDelegate
- Returns:
- A flag indicating whether the content manager has disposable content objects.
-
getDisposableContent
Description copied from interface:IContentManager
This method returns the content manager's disposable content.- Specified by:
getDisposableContent
in interfaceIContentManager
- Overrides:
getDisposableContent
in classContentManagerDelegate
-
notifyMove
Description copied from interface:IMovingContentManager
Notify that a move has taken places on theIMovingContentManager
.- Specified by:
notifyMove
in interfaceIMovingContentManager
- Overrides:
notifyMove
in classContentManagerDelegate
- Parameters:
id
- The id of the content that has been moved towards the content manager, may not benull
-