public class LockData
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
LockData()
This is the default constructor for this class.
|
LockData(LockingPolicy lockingPolicy)
This is a constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getAction()
This method returns the action that is associated with the action performed on the managed resource that the locking data represents.
|
LockingPolicy | getLockingPolicy()
This method returns the locking policy assigned to the locking data.
|
java.sql.Timestamp | getLockTimestamp()
This method returns when the metadata associated with the lock that was created.
|
ManagedResourceKey | getManagedResourceKey()
This method returns the managed resource key which represents the external and internal unique key to identify the managed resource.
|
java.lang.Long | getMemberId()
This method returns the user identifier associated with the modification of the managed resource.
|
java.lang.String | getTask()
This method returns the task identifier associated with the modification of the managed resource.
|
java.lang.String | getTaskGroup()
This method returns the task group identifier associated with the modification of the managed resource.
|
java.lang.String | getWorkspace()
This method returns the workspace identifier associated with the modification of the managed resource.
|
boolean | isLocked(ActivityToken activityToken)
This method returns whether the business object is considered to be locked so the current request cannot modify it.
|
void | setAction(java.lang.String action)
This method sets the action associated with the reason why the lock is created for the managed resource.
|
void | setLockingPolicy(LockingPolicy policy)
This method sets the locking policy to associate with the locking data.
|
void | setLockTimestamp(java.sql.Timestamp timestamp)
This method sets the date and time the lock should be created.
|
void | setManagedResourceKey(ManagedResourceKey resourceKey)
This method sets the unique key to identify the managed resource.
|
void | setMemberId(java.lang.Long memberId)
This method sets the user identifier associated with why the managed resource will be locked.
|
void | setTask(java.lang.String task)
This method sets the task identifier associated with why the managed resource will be locked.
|
void | setTaskGroup(java.lang.String taskgroup)
This method sets the task group identifier associated with why the managed resource will be locked.
|
void | setWorkspace(java.lang.String workspace)
This method sets the workspace identifier associated with why the managed resource will be locked.
|
java.lang.String | toString()
This method returns a string representation of the object.
|
public LockData()
public LockData(LockingPolicy lockingPolicy)
public java.lang.String toString()
public java.lang.String getAction()
public java.sql.Timestamp getLockTimestamp()
public java.lang.Long getMemberId()
public java.lang.String getTask()
public java.lang.String getTaskGroup()
public java.lang.String getWorkspace()
public void setAction(java.lang.String action)
public void setLockTimestamp(java.sql.Timestamp timestamp)
public void setMemberId(java.lang.Long memberId)
public void setTask(java.lang.String task)
public void setTaskGroup(java.lang.String taskgroup)
public void setWorkspace(java.lang.String workspace)
public ManagedResourceKey getManagedResourceKey()
public void setManagedResourceKey(ManagedResourceKey resourceKey)
public boolean isLocked(ActivityToken activityToken)
public LockingPolicy getLockingPolicy()
public void setLockingPolicy(LockingPolicy policy)