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)
lockingPolicy
- The locking policy associated with the lock data.public java.lang.String toString()
toString
in class java.lang.Object
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)
action
- The action that is associated with the reason for why
the lock is created.public void setLockTimestamp(java.sql.Timestamp timestamp)
timestamp
- The date and time when the lock is created.public void setMemberId(java.lang.Long memberId)
memberId
- The user identifier to associate with the locking of
the managed resource.public void setTask(java.lang.String task)
task
- The task identifier to associate with the locking of
the managed resource.public void setTaskGroup(java.lang.String taskgroup)
taskgroup
- The task group identifier to associate with the locking of
the managed resource.public void setWorkspace(java.lang.String workspace)
workspace
- The workspace identifier to associate with the locking of
the managed resource.public ManagedResourceKey getManagedResourceKey()
public void setManagedResourceKey(ManagedResourceKey resourceKey)
resourceKey
- The unique key to identify the managed resource.public boolean isLocked(ActivityToken activityToken)
activityToken
- The current activity.public LockingPolicy getLockingPolicy()
public void setLockingPolicy(LockingPolicy policy)
policy
- The locking policy.