|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.pase.Role
public class Role
A data object to represent the concept of role in a enterprise.
RoleID,RoleUDID, RoleName, and
RoleSynopsis are the information encapsulated in Role
.
The last two field shows the department name and the comment for the
department.
The RoleID is unique and used to identify the specific role in the Agentflow System. However, in the real world, some enterprise has its own way to identify the roles. Therefore, the RoleUDID (User-Defined-ID) is used to meet the requirement by filling the corresponding self-defined role ID.
The tree structure is used to denote the enterprise. The class Company
,
Department
, Role
, and MemberRecord
are the tree nodes. The ancestor-descendant relationship of Department
in the tree structure is listed below:
Relation\Class | Company |
Department |
Role |
MemberRecord |
Parent | v | v | v | |
Sibling | v | v | ||
Child | v | v | v |
Compnay
,
Department
,
MemberRecord
,
ProjectRole
,
SpecialRole
,
Serialized FormConstructor Summary | |
---|---|
Role()
|
|
Role(java.lang.String id)
Constructor. |
|
Role(java.lang.String roleID,
java.lang.String roleName,
java.lang.String roleSynopsis,
java.lang.String parentID)
Constructor. |
Method Summary | |
---|---|
void |
addMemberID(java.lang.String memberID)
Add the specified member into the role |
void |
addRoleID(java.lang.String id)
Add a role into the Role |
void |
addSubDepartmentID(java.lang.String id)
Add a department as the sub-department |
static Role |
createAllEmployeeRole()
Get the all employee role. |
java.lang.Object |
getHashKey()
|
java.lang.String |
getID()
Get the role id |
java.util.Vector |
getMemberList()
Get all members of the role |
java.lang.String |
getMyID()
Get the role user-define id |
java.lang.String |
getName()
Get the role name |
java.lang.String |
getParentID()
Get id of the parent node |
int |
getSiblingOrder()
|
int |
getSignLevel()
|
java.util.Vector |
getSubDepartmentList()
Get all sub-departments of the role |
java.util.Vector |
getSubRoleList()
Get all sub-role in the role |
java.lang.String |
getSynopsis()
Get the role synopsis |
boolean |
removeMemberID(java.lang.String memberID)
Remove the specified member from the role |
boolean |
removeRoleID(java.lang.String id)
Remove a role from the Role |
boolean |
removeSubDepartmentID(java.lang.String id)
Remove a sub-department from the department |
void |
setID(java.lang.String id)
Set the role id |
void |
setMemberList(java.util.Vector v)
Add more than one members into the role |
void |
setMyID(java.lang.String id)
Set the role user-define id |
void |
setName(java.lang.String name)
Set the role name |
void |
setParentID(java.lang.String id)
Set id of the parent node |
void |
setSiblingOrder(int order)
|
void |
setSignLevel(int signLevel)
|
void |
setSubDepartmentList(java.util.Vector v)
Add more than one sub-departments into the role |
void |
setSubRoleList(java.util.Vector v)
Add more than one sub-roles into the role |
void |
setSynopsis(java.lang.String synopsis)
Set the role synopsis |
java.lang.String |
toString()
Get a string representation of the role. |
void |
update(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Role()
public Role(java.lang.String id)
Role
with the
specified role id and initial the others variables.
id
- the given role idpublic Role(java.lang.String roleID, java.lang.String roleName, java.lang.String roleSynopsis, java.lang.String parentID)
Role
with the
specified parameters.
roleID
- the given role idroleName
- the given role nameroleSynopsis
- the given role synopsisID
- of parent note(company id, department id, or role id)Method Detail |
---|
public void addMemberID(java.lang.String memberID)
id
- the given member idpublic void addRoleID(java.lang.String id)
id
- the given role idpublic void addSubDepartmentID(java.lang.String id)
id
- the given department idpublic static Role createAllEmployeeRole()
Role
instancepublic java.lang.Object getHashKey()
getHashKey
in interface com.flowring.entity.Entity
public java.lang.String getID()
public java.util.Vector getMemberList()
Vector
are member id)public java.lang.String getMyID()
public java.lang.String getName()
public java.lang.String getParentID()
public int getSiblingOrder()
public int getSignLevel()
public java.util.Vector getSubDepartmentList()
Vector
is
department id)public java.util.Vector getSubRoleList()
Vector
is role id)public java.lang.String getSynopsis()
public boolean removeMemberID(java.lang.String memberID)
id
- the given member id
public boolean removeRoleID(java.lang.String id)
id
- the given role id
public boolean removeSubDepartmentID(java.lang.String id)
id
- the given department id
public void setID(java.lang.String id)
id
- the given role idpublic void setMemberList(java.util.Vector v)
the
- given sets of members (each element in Vector
is member id)public void setMyID(java.lang.String id)
id
- the given role user-define idpublic void setName(java.lang.String name)
id
- the given role namepublic void setParentID(java.lang.String id)
manager
- the given id (company id, department id, or role id)public void setSiblingOrder(int order)
public void setSignLevel(int signLevel)
public void setSubDepartmentList(java.util.Vector v)
the
- given sets of departments(each element in Vector
is department id)public void setSubRoleList(java.util.Vector v)
the
- given sets of roles (each element in Vector
is
role id)public void setSynopsis(java.lang.String synopsis)
synopsis
- the given role synopsispublic java.lang.String toString()
toString
in class java.lang.Object
public void update(java.lang.Object obj)
update
in interface com.flowring.entity.Entity
|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |