com.ibm.commerce.context.content.locking

Class TaskLockingPolicy

  • All Implemented Interfaces:
    LockingPolicy


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

      • TaskLockingPolicy

        public TaskLockingPolicy()
        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 determines whether the resource is locked. It returns whether the managed resource lock data workspace, task group and task differ from the environment.
        Specified by:
        isManagedResourcedLocked in interface LockingPolicy
        Overrides:
        isManagedResourcedLocked in class TaskGroupLockingPolicy
        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, task group and task differ from the environment. If so, the resource is considered to be locked.