com.ibm.commerce.context.content.locking

Class TaskGroupLockingPolicy

  • All Implemented Interfaces:
    LockingPolicy
    Direct Known Subclasses:
    TaskLockingPolicy


    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
        Overrides:
        isManagedResourcedLocked in class WorkspaceLockingPolicy
        Parameters:
        managedResourceLockData - The current lock data associated with the managed resource.
        environmentLockData - The lock data representation of the environment associated with the current operation.
        Returns:
        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.