public interface ResourceManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright.
|
Modifier and Type | Method and Description |
---|---|
void | commit(ContentData contentData)
This method commits the changes in the workspace to the base edition.
|
java.lang.Object | createManagedResource(ActivityToken activityToken, java.lang.Object creationData)
This method creates a new instance of the resource.
|
void | deleteManagedResource(ActivityToken activityToken, java.lang.Object resource)
This method deletes the current instance of the resource with the new current changes.
|
LockData | getLockData(ManagedResourceKey managedResourceKey)
This method returns the lock information for the specified business object.
|
LockData[] | getLockData(ManagedResourceKey[] managedResourceKey)
This method returns the lock information for the specified business objects.
|
java.util.List<LockData> | getManagedResourceData(java.lang.String taskGroupId, char filter)
This method returns the list of all locks for objects of this resource manager associated to the provided workspace task group id.
|
int | getManagedResourceDataCount(java.lang.String taskGroupId)
This method returns the number of locked objects within the workspace.
|
ManagedResourceKey | getManagedResourceKey(java.util.Map record)
This method returns the managed resource key.
|
ManagedResourceKey | getManagedResourceKey(java.lang.Object resource)
This method returns the managed resource key.
|
ManagedResourceMetaData | getMetaData()
This method returns the metadata of the resource manager.
|
ResourceContainer | getResourceContainer()
This method returns the resource container owning the resource manager.
|
boolean | isLocked(ActivityToken activityToken, ManagedResourceKey managedResourceKey)
This method returns whether the specified business object is locked and cannot be modified by the current activity.
|
boolean[] | isLocked(ActivityToken activityToken, ManagedResourceKey[] managedResourceKey)
This method returns whether the specified business objects are locked and cannot be modified by the current activity.
|
void | lockManagedResource(ActivityToken activityToken, ManagedResourceKey managedResourceKey)
This method locks the specified business object based on the current activity information.
|
java.lang.String | postPublish(ContentData contentData)
This method processes a post-publish event.
|
void | publish(ContentData contentData, ContentPublisher publisher)
This method publishes the resource manager.
|
void | relockManagedResource(ActivityToken activityToken, ManagedResourceKey managedResourceKey)
This method updates the lock information for the specified business object.
|
void | rollback(ContentData contentData)
This method rolls back the workspace by undoing all changes.
|
void | setMetaData(ManagedResourceMetaData managedResourceMetaData)
This method sets the metadata of the resource manager.
|
void | setResourceContainer(ResourceContainer resourceContainer)
This method sets the resource container owning the resource manager.
|
void | synchronize(ContentData contentData)
This method synchronizes the specified workspace.
|
void | unlockManagedResource(ActivityToken activityToken, ManagedResourceKey managedResourceKey)
This method unlocks the business object.
|
void | updateManagedResource(ActivityToken activityToken, java.lang.Object resource)
This method updates the current instance of the resource with the new current changes.
|
static final java.lang.String COPYRIGHT
ManagedResourceMetaData getMetaData()
void setMetaData(ManagedResourceMetaData managedResourceMetaData)
ResourceContainer getResourceContainer()
void setResourceContainer(ResourceContainer resourceContainer)
java.lang.Object createManagedResource(ActivityToken activityToken, java.lang.Object creationData) throws ResourceException
void updateManagedResource(ActivityToken activityToken, java.lang.Object resource) throws ResourceException
void deleteManagedResource(ActivityToken activityToken, java.lang.Object resource) throws ResourceException
void lockManagedResource(ActivityToken activityToken, ManagedResourceKey managedResourceKey) throws ResourceException
void unlockManagedResource(ActivityToken activityToken, ManagedResourceKey managedResourceKey) throws ResourceException
void relockManagedResource(ActivityToken activityToken, ManagedResourceKey managedResourceKey) throws ResourceException
boolean isLocked(ActivityToken activityToken, ManagedResourceKey managedResourceKey) throws ResourceException
LockData getLockData(ManagedResourceKey managedResourceKey) throws ResourceException
boolean[] isLocked(ActivityToken activityToken, ManagedResourceKey[] managedResourceKey) throws ResourceException
LockData[] getLockData(ManagedResourceKey[] managedResourceKey) throws ResourceException
ManagedResourceKey getManagedResourceKey(java.util.Map record) throws java.lang.Exception
ManagedResourceKey getManagedResourceKey(java.lang.Object resource) throws java.lang.Exception
void commit(ContentData contentData) throws ResourceException
void rollback(ContentData contentData) throws ResourceException
void synchronize(ContentData contentData) throws ResourceException
void publish(ContentData contentData, ContentPublisher publisher) throws ResourceException
java.lang.String postPublish(ContentData contentData) throws ResourceException
java.util.List<LockData> getManagedResourceData(java.lang.String taskGroupId, char filter) throws ResourceException
int getManagedResourceDataCount(java.lang.String taskGroupId) throws ResourceException