public class PASETaskTrackPermission
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
TRACK_PERMISSION_ASSIGN
Track Permission: assign
|
static int |
TRACK_PERMISSION_CANCEL
Track Permission: cancel
|
static int |
TRACK_PERMISSION_REASSIGN
Track Permission: reassign
|
static int |
TRACK_PERMISSION_REDO
Track Permission: redo
|
static int |
TRACK_PERMISSION_TRACK
Track Permission: track
|
Constructor and Description |
---|
PASETaskTrackPermission(java.lang.String role)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssign()
Add the assign-permission
|
void |
addCancel()
Add the cancel-permission
|
void |
addReassign()
Add the reassign-permission
|
void |
addRedo()
Add the redo-permission
|
void |
addTrack()
Add the track-permission
|
boolean |
checkAssign()
Check whether the track is assign-permission
|
boolean |
checkCancel()
Check whether the track is cancel-permission
|
boolean |
checkReassign()
Check whether the track is reassign-permission
|
boolean |
checkRedo()
Check whethre the track is redo-permission
|
boolean |
checkTrack()
Check whether the track is track-permission
|
java.lang.String |
getRoleID()
Get the role id
|
void |
removeAssign()
Remove the assign-permission
|
void |
removeCancel()
Remove the cancel-permission
|
void |
removeReassign()
Remove the reassign-permission
|
void |
removeRedo()
Remove the redo-permission
|
void |
removeTrack()
Remove the track-permission
|
void |
setPermission(int permission)
Set the permission
|
public static final int TRACK_PERMISSION_TRACK
public static final int TRACK_PERMISSION_ASSIGN
public static final int TRACK_PERMISSION_REASSIGN
public static final int TRACK_PERMISSION_REDO
public static final int TRACK_PERMISSION_CANCEL
public PASETaskTrackPermission(java.lang.String role)
PASETaskTrackPermission
with the specified role id.role
- the given role idpublic void setPermission(int permission)
permission
- the given permission (TRACK_PERMISSION_TRACK, TRACK_PERMISSION_ASSIGN, TRACK_PERMISSION_REASSIGN, TRACK_PERMISSION_REDO, TRACK_PERMISSION_CANCEL)public java.lang.String getRoleID()
public void addTrack()
public void removeTrack()
public void addAssign()
public void removeAssign()
public void addReassign()
public void removeReassign()
public void addRedo()
public void removeRedo()
public void addCancel()
public void removeCancel()
public boolean checkTrack()
public boolean checkAssign()
public boolean checkReassign()
public boolean checkRedo()
public boolean checkCancel()
Copyright ? 2022. All Rights Reserved.