com.ibm.commerce.context.content.locking

Class NoLockingPolicy

  • java.lang.Object
    • com.ibm.commerce.context.content.locking.NoLockingPolicy
  • All Implemented Interfaces:
    LockingPolicy


    public class NoLockingPolicy
    extends java.lang.Object
    implements LockingPolicy
    A no locking policy for content management. This policy allows any resource to be modified not matter which workspace/task group or task has previously modified the resource.
    • Constructor Detail

      • NoLockingPolicy

        public NoLockingPolicy()
        Create the policy.
    • Method Detail

      • canActivityModifyManagedResource

        public boolean canActivityModifyManagedResource(ActivityToken activityToken,
                                                        LockData lockData)
        Since no locking policy is enforced, this method will always allow the resource to be modified.
        Specified by:
        canActivityModifyManagedResource in interface LockingPolicy
        Parameters:
        activityToken - The current activity.
        lockData - The lock data of the resource.
        Returns:
        Always true.
      • isManagedResourcedLocked

        public boolean isManagedResourcedLocked(LockData managedResourceLockData,
                                                LockData environmentLockData)
        Since no locking policy is enforced, this method will always allow the resource to be modified.
        Specified by:
        isManagedResourcedLocked in interface LockingPolicy
        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:
        Always false