com.ibm.commerce.context.content.resources.exception

Class ResourceLockedException

  • All Implemented Interfaces:
    java.io.Serializable


    public class ResourceLockedException
    extends ResourceException
    A resource exception thrown when a business object is being modified while it is locked by another workspace.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResourceLockedException

        public ResourceLockedException(java.lang.String msg,
                                       ContentContext contentContext,
                                       ManagedResourceKey managedResourceKey)
        Creates the resource locked exception.
        Parameters:
        msg - The exception message.
        contentContext - The content context.
        managedResourceKey - The managed resource key of the resource that is locked.
      • ResourceLockedException

        public ResourceLockedException(ManagedResourceKey managedResourceKey)
        Creates the resource locked exception.
        Parameters:
        managedResourceKey - The managed resource key of the resource that is locked.
      • ResourceLockedException

        public ResourceLockedException(ActivityToken activityToken,
                                       ManagedResourceKey managedResourceKey)
        Creates the resource locked exception.
        Parameters:
        activityToken - The current activity token.
        managedResourceKey - The managed resource key of the resource that is locked.
      • ResourceLockedException

        public ResourceLockedException(ContentContext contentContext,
                                       ManagedResourceKey managedResourceKey)
        Creates the resource locked exception.
        Parameters:
        contentContext - The current content context.
        managedResourceKey - The managed resource key of the resource that is locked.
    • Method Detail

      • getManagedResourceKey

        public ManagedResourceKey getManagedResourceKey()
        Returns the business object that is locked.
        Returns:
        The locked business object.
      • getActivityToken

        public ActivityToken getActivityToken()
        Returns the content context of the exception.
        Returns:
        The content context.