Agentflow
V3.1

pe.pase
Class PASETaskTrackPermission

java.lang.Object
  extended by pe.pase.PASETaskTrackPermission
All Implemented Interfaces:
java.io.Serializable

public class PASETaskTrackPermission
extends java.lang.Object
implements java.io.Serializable

The class holds the information of track permission of the specified role.

Version:
1.1.5,
Author:
semap
See Also:
Serialized Form

Field Summary
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 Summary
PASETaskTrackPermission(java.lang.String role)
          Constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACK_PERMISSION_ASSIGN

public static final int TRACK_PERMISSION_ASSIGN
Track Permission: assign

Since:
version 1.1.0
See Also:
Constant Field Values

TRACK_PERMISSION_CANCEL

public static final int TRACK_PERMISSION_CANCEL
Track Permission: cancel

Since:
version 1.1.0
See Also:
Constant Field Values

TRACK_PERMISSION_REASSIGN

public static final int TRACK_PERMISSION_REASSIGN
Track Permission: reassign

Since:
version 1.1.0
See Also:
Constant Field Values

TRACK_PERMISSION_REDO

public static final int TRACK_PERMISSION_REDO
Track Permission: redo

Since:
version 1.1.0
See Also:
Constant Field Values

TRACK_PERMISSION_TRACK

public static final int TRACK_PERMISSION_TRACK
Track Permission: track

Since:
version 1.1.0
See Also:
Constant Field Values
Constructor Detail

PASETaskTrackPermission

public PASETaskTrackPermission(java.lang.String role)
Constructor. Construct a instance of PASETaskTrackPermission with the specified role id.

Parameters:
role - the given role id
Since:
version 1.1.0
Method Detail

addAssign

public void addAssign()
Add the assign-permission

Since:
version 1.1.0

addCancel

public void addCancel()
Add the cancel-permission

Since:
version 1.1.0

addReassign

public void addReassign()
Add the reassign-permission

Since:
version 1.1.0

addRedo

public void addRedo()
Add the redo-permission

Since:
version 1.1.0

addTrack

public void addTrack()
Add the track-permission

Since:
version 1.1.0

checkAssign

public boolean checkAssign()
Check whether the track is assign-permission

Returns:
true if the track is assign-permission; false otherwise
Since:
version 1.1.0

checkCancel

public boolean checkCancel()
Check whether the track is cancel-permission

Returns:
true if the track is cancel-permisssion; false otherwise
Since:
version 1.1.0

checkReassign

public boolean checkReassign()
Check whether the track is reassign-permission

Returns:
true if the track is reassign-permission; false otherwise
Since:
version 1.1.0

checkRedo

public boolean checkRedo()
Check whethre the track is redo-permission

Returns:
true if the track is redo-permission; false otherwise
Since:
version 1.1.0

checkTrack

public boolean checkTrack()
Check whether the track is track-permission

Returns:
true if the track is track-permission; false otherwise
Since:
version 1.1.0

getRoleID

public java.lang.String getRoleID()
Get the role id

Returns:
the role id
Since:
version 1.1.0

removeAssign

public void removeAssign()
Remove the assign-permission

Since:
version 1.1.0

removeCancel

public void removeCancel()
Remove the cancel-permission

Since:
version 1.1.0

removeReassign

public void removeReassign()
Remove the reassign-permission

Since:
version 1.1.0

removeRedo

public void removeRedo()
Remove the redo-permission

Since:
version 1.1.0

removeTrack

public void removeTrack()
Remove the track-permission

Since:
version 1.1.0

setPermission

public void setPermission(int permission)
Set the permission

Parameters:
permission - the given permission (TRACK_PERMISSION_TRACK, TRACK_PERMISSION_ASSIGN, TRACK_PERMISSION_REASSIGN, TRACK_PERMISSION_REDO, TRACK_PERMISSION_CANCEL)
Since:
version 1.1.0

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.