|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.pase.Company
public class Company
A data object to represent the concept of company in a enterprise.
The CompanyID, CompanyName, and CompanyManagerID
are information encapsulated in Company
to represent the
identification, company name, and the leader of the company. The CompanyID is
unique for identifying each company. It is reserved for the future extension
of the feature about multi-company. The CompanyManagerID shows the role of
leader, such as CEO, by indicating its RoleID.
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 Company
in the tree structure is listed below:
Relation\Class | Company |
Department |
Role |
MemberRecord |
Parent | ||||
Sibling | ||||
Child | v | v |
Department
,
Role
,
MemberRecord
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CACHE_HASHKEY
|
Constructor Summary | |
---|---|
Company()
|
|
Company(java.lang.String id)
|
|
Company(java.lang.String id,
java.lang.String name)
Constructor. |
Method Summary | |
---|---|
void |
addCompanyID(java.lang.String id)
Add a sub-company into the company |
void |
addDepartmentID(java.lang.String id)
Add a department into the company |
void |
addRoleID(java.lang.String id)
Add a role into the company |
java.util.Vector |
getCompanyList()
Get all sub companies ID in the company |
java.util.Vector |
getDepartmentList()
Get all departments in the company |
java.lang.Object |
getHashKey()
Get the hash key of this company, this function is used internally. |
java.lang.String |
getID()
Get the company id |
java.lang.String |
getManagerID()
Get the company manager id |
java.lang.String |
getMyID()
Get the company MyID |
java.lang.String |
getName()
Get the company name |
java.lang.String |
getParentID()
Get the company parent id |
java.util.Vector |
getRoleList()
Get all roles in the company |
int |
getSiblingOrder()
|
java.lang.String |
getSynopsis()
Get the company synopsis |
java.lang.String |
getUnitID()
Get the company unit id |
boolean |
removeCompanyID(java.lang.String id)
Remove a sub-company from the company |
boolean |
removeDepartmentID(java.lang.String id)
Remove a department from the company |
boolean |
removeRoleID(java.lang.String id)
Remove a role from the company |
void |
setDepartmentList(java.util.Vector v)
Add more than one departments in the company |
void |
setID(java.lang.String id)
Set the company id |
void |
setManagerID(java.lang.String id)
Set the company manager id |
void |
setMyID(java.lang.String id)
Set the company MyID |
void |
setName(java.lang.String name)
Set the company name |
void |
setParent(java.lang.String id)
Set the company parent id |
void |
setRoleList(java.util.Vector v)
Add more than one roles in the company |
void |
setSiblingOrder(int order)
|
void |
setSynopsis(java.lang.String synopsis)
Set the company synopsis |
void |
setUnitID(java.lang.String id)
Set the company unit id |
void |
update(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CACHE_HASHKEY
Constructor Detail |
---|
public Company()
public Company(java.lang.String id)
public Company(java.lang.String id, java.lang.String name)
Company
with the
specified id and name.
id
- the given company idid
- the given company nameMethod Detail |
---|
public void addCompanyID(java.lang.String id)
id
- the given company idpublic void addDepartmentID(java.lang.String id)
id
- the given department idpublic void addRoleID(java.lang.String id)
id
- the given role idpublic java.util.Vector getCompanyList()
Vector
is
company id)public java.util.Vector getDepartmentList()
Vector
is
department id)public java.lang.Object getHashKey()
getHashKey
in interface com.flowring.entity.Entity
public java.lang.String getID()
public java.lang.String getManagerID()
public java.lang.String getMyID()
public java.lang.String getName()
public java.lang.String getParentID()
public java.util.Vector getRoleList()
Vector
is role id)public int getSiblingOrder()
public java.lang.String getSynopsis()
public java.lang.String getUnitID()
public boolean removeCompanyID(java.lang.String id)
id
- the given company id
public boolean removeDepartmentID(java.lang.String id)
id
- the given department id
public boolean removeRoleID(java.lang.String id)
id
- the given role id
public void setDepartmentList(java.util.Vector v)
the
- given sets of departments (each element in Vector
is department id)public void setID(java.lang.String id)
id
- the given company idpublic void setManagerID(java.lang.String id)
id
- the given company manager idpublic void setMyID(java.lang.String id)
id
- the given company MyIDpublic void setName(java.lang.String name)
name
- the given company namepublic void setParent(java.lang.String id)
id
- the given company parent idpublic void setRoleList(java.util.Vector v)
the
- given sets of roles (each element in Vector
is
role id)public void setSiblingOrder(int order)
public void setSynopsis(java.lang.String synopsis)
id
- the given company synopsispublic void setUnitID(java.lang.String id)
id
- the given company unit idpublic 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 |