Agentflow
V3.1

pe.pase
Class AccessTask

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

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

The member's access right for the tasks within the specified scope. The access right has two parts: running and reading. The access right for running represents whether the member can use the tasks. The access right for reading represents whether the member can read the tasks.

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

Field Summary
static java.lang.String ARTIFACT
          Range type: artifact
static java.lang.String COMPANY
          Range type: company
static java.lang.String DEPARTMENT
          Range type: department
static java.lang.String MEMBER
          Range type: member
static java.lang.String PROCESS
          Range type: process
static java.lang.String PROJECT
          Range type: project
static java.lang.String ROLE
          Range type: role
 
Constructor Summary
AccessTask()
          Constructor.
AccessTask(java.lang.String rID)
          Constructor.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getMemberID()
          Get id of the member who owns the access right.
 java.lang.String getRangeID()
          Get id of the scope which owns the tasks.
 java.lang.String getRangeType()
          Get type of the scope which owns the tasks.
 boolean getRead()
          Get the access right for reading.
 boolean getRun()
          Get the access right for running.
 void setMemberID(java.lang.String id)
          Set id of the member who owns the access right.
 void setRangeID(java.lang.String id)
          Set id of the scope which owns the tasks.
 void setRangeType(java.lang.String type)
          Set type of the scope which owns the tasks.
 void setRead(boolean b)
          Set the access right for reading.
 void setRun(boolean b)
          Set the access right for running.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARTIFACT

public static final java.lang.String ARTIFACT
Range type: artifact

Since:
version 1.0.0
See Also:
Constant Field Values

COMPANY

public static final java.lang.String COMPANY
Range type: company

Since:
version 1.0.0
See Also:
Constant Field Values

DEPARTMENT

public static final java.lang.String DEPARTMENT
Range type: department

Since:
version 1.0.0
See Also:
Constant Field Values

MEMBER

public static final java.lang.String MEMBER
Range type: member

See Also:
Constant Field Values

PROCESS

public static final java.lang.String PROCESS
Range type: process

Since:
version 1.0.0
See Also:
Constant Field Values

PROJECT

public static final java.lang.String PROJECT
Range type: project

Since:
version 1.0.0
See Also:
Constant Field Values

ROLE

public static final java.lang.String ROLE
Range type: role

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

AccessTask

public AccessTask()
Constructor. Construct a instance of AccessTask without parameters.

Since:
version 1.0.0

AccessTask

public AccessTask(java.lang.String rID)
Constructor. Construct a instance of AccessTask with the specified scope.

Parameters:
rID - the given range id
Since:
version 1.0.0
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getMemberID

public java.lang.String getMemberID()
Get id of the member who owns the access right.

Returns:
the member id
Since:
version 1.0.0

getRangeID

public java.lang.String getRangeID()
Get id of the scope which owns the tasks.

Returns:
the range id
Since:
version 1.0.0

getRangeType

public java.lang.String getRangeType()
Get type of the scope which owns the tasks.

Returns:
the range type. (COMPANY, DEPARTMENT, ROLE, MEMBER, PROJECT, PROCESS, ARTIFACT)
Since:
version 1.0.0

getRead

public boolean getRead()
Get the access right for reading.

Returns:
true the member can read all tasks within the scope; false otherwise.
Since:
version 1.0.0

getRun

public boolean getRun()
Get the access right for running.

Returns:
true the member can use all tasks within the scope; false otherwise.
Since:
version 1.0.0

setMemberID

public void setMemberID(java.lang.String id)
Set id of the member who owns the access right.

Parameters:
id - the given member id
Since:
version 1.0.0

setRangeID

public void setRangeID(java.lang.String id)
Set id of the scope which owns the tasks.

Parameters:
id - the given range id
Since:
version 1.0.0

setRangeType

public void setRangeType(java.lang.String type)
Set type of the scope which owns the tasks.

Parameters:
id - the given range type. (COMPANY, DEPARTMENT, ROLE, MEMBER, PROJECT, PROCESS, ARTIFACT)
Since:
version 1.0.0

setRead

public void setRead(boolean b)
Set the access right for reading. true the member can read all tasks within the scope; false otherwise.

Parameters:
b - the given boolean value
Since:
version 1.0.0

setRun

public void setRun(boolean b)
Set the access right for running. true the member can use all tasks within the scope; false otherwise.

Parameters:
b - the given boolean value
Since:
version 1.0.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.