Class TaskGroupLockingPolicy

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class TaskGroupLockingPolicy
    extends WorkspaceLockingPolicy
    implements LockingPolicy
    This class defines a task group locking policy for content management. This policy allows a resource to be modified only if the current workspace and task group match those that have previously modified the resource.
    • Constructor Detail

      • TaskGroupLockingPolicy

        public TaskGroupLockingPolicy()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • isManagedResourcedLocked

        public boolean isManagedResourcedLocked(LockData managedResourceLockData,
                                                LockData environmentLockData)
        This method allows the resource to be modified only if the current workspace and task group of the content context match the specified workspace and task group.
        Specified by:
        isManagedResourcedLocked in interface LockingPolicy
        isManagedResourcedLocked in class WorkspaceLockingPolicy
        managedResourceLockData - The current lock data associated with the managed resource.
        environmentLockData - The lock data representation of the environment associated with the current operation.
        This method returns whether the managed resource lock data workspace and task group differ from the environment. In that case, the resource is considered to be locked.