Agentflow
V3.1

pe.pase
Class PASEOrgModel

java.lang.Object
  extended by pe.pase.PASEOrgModel
All Implemented Interfaces:
com.flowring.entity.Entity, java.io.Serializable

public class PASEOrgModel
extends java.lang.Object
implements com.flowring.entity.Entity, java.io.Serializable

The class holds the information of company organization. In other words, this class records the all departments, roles, and members in the company.

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

Constructor Summary
PASEOrgModel()
          Constructor.
 
Method Summary
 java.util.Vector getAllCompanys()
          Get the all companies
 java.util.Vector getAllDepartment()
          Get the all departments
 java.util.Vector getAllMember()
          Get all members
 java.util.Vector getAllPASEGroup()
          Get the all PASEGroups
 java.util.Vector getAllRole()
          Get all roles.
 java.util.Vector getAllUnitType()
          Get all unit types
 java.util.TreeMap getComMap()
          Get company map
 Company getCompany()
          Get company
 Company getCompany(java.lang.String comID)
          Get the instance of Company with the specified company id
 java.util.Vector getCompanys(java.util.Vector comIDList)
          Get the instances of Company with the set of specified department id
 Department getDepartment(java.lang.String depID)
          Get the instance of Department with the specified department id
 java.util.Vector getDepartments(java.util.Vector depIDList)
          Get the instances of Department with the set of specified department id
 java.util.TreeMap getDepMap()
          Get department map
 java.lang.Object getHashKey()
           
 MemberRecord getMemberRecord(java.lang.String memID)
          Get the instance of MemberRecord with the specified member id
 java.util.Vector getMembers(java.util.Vector mbrIDList)
          Get the members with the set of the specified member id
 java.util.TreeMap getMemMap()
          Get the member map
 PASEGroup getPASEGroup(java.lang.String groupID)
          Get the instance of PASEGroup with the specified group id
 java.util.TreeMap getPASEGroupMap()
          Get PASEGroup map
 java.util.Vector getPASEGroups(java.util.Vector groupIDList)
          Get the instances of PASEGroup with the set of specified PASEGroup id
 Role getRole(java.lang.String rolID)
          Get instance of Role with the specified role id
 java.util.Vector getRoles(java.util.Vector rolIDList)
          Get the instances of Role with the set of specified role id
 java.util.TreeMap getRolMap()
          Get role map
 java.util.TreeMap getUnitMap()
          Get the unit type map
 UnitType getUnitType(java.lang.String unitId)
          Get the instance of UnitType with the specified unit type id
 java.util.Vector getUnitTypes(java.util.Vector unitIdList)
          Get the instances of UnitType with the set of specified unit type id
 void setComMap(java.util.TreeMap map)
          Set the company map
 void setCompany(Company c)
          Set company
 void setDepMap(java.util.TreeMap map)
          Set the department map
 void setMemMap(java.util.TreeMap map)
          Set the member map
 void setPASEGroupMap(java.util.TreeMap map)
          Set the PASEGroup map
 void setRolMap(java.util.TreeMap map)
          Set role map
 void setUnitMap(java.util.TreeMap map)
          Set the unit type map
 void update(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PASEOrgModel

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

Since:
version 1.1.0
Method Detail

getAllCompanys

public java.util.Vector getAllCompanys()
Get the all companies

Returns:
the companies (each element in Vector is Company instance)
Since:
V3.1
See Also:
Company

getAllDepartment

public java.util.Vector getAllDepartment()
Get the all departments

Returns:
the departments (the element in Vector is Department instance)
Since:
version 1.1.0
See Also:
Department

getAllMember

public java.util.Vector getAllMember()
Get all members

Returns:
all members (element in Vector is the MemberRecord instance)
Since:
version 1.1.0
See Also:
MemberRecord

getAllPASEGroup

public java.util.Vector getAllPASEGroup()
Get the all PASEGroups

Returns:
the PASEGroups (the element in Vector is PASEGroup instance)
Since:
V3.1
See Also:
PASEGroup

getAllRole

public java.util.Vector getAllRole()
Get all roles.

Returns:
all roles (element in Vector is the Role instance)
Since:
version 1.1.0
See Also:
Role

getAllUnitType

public java.util.Vector getAllUnitType()
Get all unit types

Returns:
all unit types (element in Vector is the UnitType instance)
Since:
version 2.2.5
See Also:
UnitType

getComMap

public java.util.TreeMap getComMap()
Get company map

Returns:
the TreeMap instance. {key : value = company id : Company instance}
Since:
V3.1
See Also:
Company

getCompany

public Company getCompany()
Get company

Returns:
the company
Since:
version 1.1.0
See Also:
Company

getCompany

public Company getCompany(java.lang.String comID)
Get the instance of Company with the specified company id

Parameters:
comID - the given company id
Returns:
the instnace of Company
Since:
V3.1
See Also:
Company

getCompanys

public java.util.Vector getCompanys(java.util.Vector comIDList)
Get the instances of Company with the set of specified department id

Parameters:
comIDList - the given set of company id
Returns:
the Companies (the element in Vector is Company instance)
Since:
V3.1
See Also:
Company

getDepartment

public Department getDepartment(java.lang.String depID)
Get the instance of Department with the specified department id

Parameters:
depID - the given department id
Returns:
the instnace of Department
Since:
version 1.1.0
See Also:
Department

getDepartments

public java.util.Vector getDepartments(java.util.Vector depIDList)
Get the instances of Department with the set of specified department id

Parameters:
depIDList - the given set of department id
Returns:
the departments (the element in Vector is Department instance)
Since:
version 1.1.0
See Also:
Department

getDepMap

public java.util.TreeMap getDepMap()
Get department map

Returns:
the TreeMap instance. {key : value = department id : Department instance}
Since:
version 1.1.0
See Also:
Department

getHashKey

public java.lang.Object getHashKey()
Specified by:
getHashKey in interface com.flowring.entity.Entity

getMemberRecord

public MemberRecord getMemberRecord(java.lang.String memID)
Get the instance of MemberRecord with the specified member id

Parameters:
memID - the given member id
Returns:
the MemberRecord instance
Since:
version 1.1.0
See Also:
MemberRecord

getMembers

public java.util.Vector getMembers(java.util.Vector mbrIDList)
Get the members with the set of the specified member id

Parameters:
mbrIDList - the given set of the specified member id
Returns:
the members (element in Vector is the MemberRecord instance)
Since:
version 1.1.0
See Also:
MemberRecord

getMemMap

public java.util.TreeMap getMemMap()
Get the member map

Returns:
the TreeMap instance. {key : value = member id : MemberRecord instance}
Since:
version 1.1.0
See Also:
MemberRecord

getPASEGroup

public PASEGroup getPASEGroup(java.lang.String groupID)
Get the instance of PASEGroup with the specified group id

Parameters:
groupID - the given pase group id
Returns:
the instnace of PASEGroup
Since:
V3.1
See Also:
PASEGroup

getPASEGroupMap

public java.util.TreeMap getPASEGroupMap()
Get PASEGroup map

Returns:
the TreeMap instance. {key : value = PASEGroup id : PASEGroup instance}
Since:
V3.1
See Also:
PASEGroup

getPASEGroups

public java.util.Vector getPASEGroups(java.util.Vector groupIDList)
Get the instances of PASEGroup with the set of specified PASEGroup id

Parameters:
PASEGroupIDList - the given set of PASEGroup id
Returns:
the PASEGroups (the element in Vector is PASEGroup instance)
Since:
V3.1
See Also:
PASEGroup

getRole

public Role getRole(java.lang.String rolID)
Get instance of Role with the specified role id

Parameters:
rolID - the given role id
Returns:
the Role instance
Since:
version 1.1.0
See Also:
Role

getRoles

public java.util.Vector getRoles(java.util.Vector rolIDList)
Get the instances of Role with the set of specified role id

Parameters:
rolIDList - the given set of role id
Returns:
the roles (element in Vector is the Role instance)
Since:
version 1.1.0
See Also:
Role

getRolMap

public java.util.TreeMap getRolMap()
Get role map

Returns:
the TreeMap instance. {key : value = role id : Role instance}
Since:
version 1.1.0
See Also:
Role

getUnitMap

public java.util.TreeMap getUnitMap()
Get the unit type map

Returns:
the TreeMap instance. {key : value = unit type id : UnitType instance}
Since:
version 2.2.5
See Also:
UnitType

getUnitType

public UnitType getUnitType(java.lang.String unitId)
Get the instance of UnitType with the specified unit type id

Parameters:
unitId - the given unit type id
Returns:
the UnitType instance
Since:
version 2.2.5
See Also:
UnitType

getUnitTypes

public java.util.Vector getUnitTypes(java.util.Vector unitIdList)
Get the instances of UnitType with the set of specified unit type id

Parameters:
unitIdList - the given set of unit type id
Returns:
the unit types (the element in Vector is UnitType instance)
Since:
version 2.2.5
See Also:
UnitType

setComMap

public void setComMap(java.util.TreeMap map)
Set the company map

Parameters:
map - the given TreeMap instance. {key : value = company id : Company instance}
Since:
V3.1
See Also:
Company

setCompany

public void setCompany(Company c)
Set company

Parameters:
c - the given Company instance
Since:
version 1.1.0
See Also:
Company

setDepMap

public void setDepMap(java.util.TreeMap map)
Set the department map

Parameters:
map - the given TreeMap instance. {key : value = department id : Department instance}
Since:
version 1.1.0
See Also:
Department

setMemMap

public void setMemMap(java.util.TreeMap map)
Set the member map

Parameters:
map - the given TreeMap instance. {key : value = member id : MemberRecord instance}
Since:
version 1.1.0
See Also:
MemberRecord

setPASEGroupMap

public void setPASEGroupMap(java.util.TreeMap map)
Set the PASEGroup map

Parameters:
map - the given TreeMap instance. {key : value = PASEGroup id : PASEGroup instance}
Since:
V3.1
See Also:
PASEGroup

setRolMap

public void setRolMap(java.util.TreeMap map)
Set role map

Parameters:
map - the given TreeMap instance. {key : value = role id : Role instance}
Since:
version 1.1.0
See Also:
Role

setUnitMap

public void setUnitMap(java.util.TreeMap map)
Set the unit type map

Parameters:
map - the given TreeMap instance. {key : value = unit type id : UnitType instance}
Since:
version 2.2.5
See Also:
UnitType

update

public void update(java.lang.Object obj)
Specified by:
update in interface com.flowring.entity.Entity

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.