public class WorkspaceLockingPolicy extends java.lang.Object implements LockingPolicy
Constructor and Description |
---|
WorkspaceLockingPolicy()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canActivityModifyManagedResource(ActivityToken activityToken,
LockData lockData)
This method allows the resource to be modified only if the current workspace
of the content context matches the specified workspace.
|
boolean |
isManagedResourcedLocked(LockData managedResourceLockData,
LockData environmentLockData)
This method allows the resource to be modified only if the current workspace
of the content context matches the specified workspace.
|
public WorkspaceLockingPolicy()
public boolean canActivityModifyManagedResource(ActivityToken activityToken, LockData lockData)
canCurrentContextModifyResource()
.
This is passed to the current content and task context to determine
whether the managed resource can be modified by the current activity.canActivityModifyManagedResource
in interface LockingPolicy
activityToken
- The current activity.lockData
- The lock data of the resource.public boolean isManagedResourcedLocked(LockData managedResourceLockData, LockData environmentLockData)
isManagedResourcedLocked
in interface LockingPolicy
managedResourceLockData
- The current lock data associated with the managed resource.environmentLockData
- The lock data representation of the environment associated with the
current operation.