All Packages Class Hierarchy This Package Previous Next Index
Class com.sdi.wap.RoleImpl
java.lang.Object
|
+----com.sdi.wap.Field
|
+----com.sdi.wap.RoleImpl
- public class RoleImpl
- extends Field
- implements Role, Validatable
-
children
-
-
description
-
-
instances
-
-
members
-
-
parent
-
-
roleID
-
-
RoleImpl(String, Role, String)
- A concrete implementation of the Role interface
-
countWork(Connection)
- Total work items in this role's incoming workflows
-
findRole(String)
- Find a role by roleID.
-
getChildren()
- Return the children of this role
-
getDescription()
- Return the description of this role
-
getIncomingWorkflowList(Connection)
- Get the list of incoming work for this role
-
getInstances()
- Return a hashtable of all instances of this class indexed by roleID
-
getMembers(Connection)
- Return the members of this role as a vector of Identifier.
-
getOutgoingWorkflowList(Connection)
- Get the list of outgoing work for this role
-
getParent()
- Return the parent of this role or null if this is the root role.
-
getRoleID()
- Return the identifier of this role
-
setParent(Role)
- Return the parent of this role or null if this is the root role.
-
setValue(String)
- Set the value of this type
roleID
private Identifier roleID
parent
private Role parent
description
private Description description
children
private final Vector children
members
private transient Vector members
instances
private static final Hashtable instances
RoleImpl
public RoleImpl(String roleID,
Role parent,
String description)
- A concrete implementation of the Role interface
- Parameters:
- eter - String roleID the primary key
- eter - Role parent the parent role of this role
- eter - String name: the name of this role
- eter - String description: the description of this role
countWork
public int countWork(Connection connection) throws FranchiseeException
- Total work items in this role's incoming workflows
- Parameters:
- eter - Connection connection: the dbms connection to use.
- Returns:
- int
findRole
public static Role findRole(String roleID)
- Find a role by roleID. Returns null if not found.
- Parameters:
- String - roleID
- Returns:
- Role
getChildren
public Vector getChildren()
- Return the children of this role
- Returns:
- Vector
getDescription
public Description getDescription()
- Return the description of this role
- Returns:
- Description
getIncomingWorkflowList
public WorkflowListBean getIncomingWorkflowList(Connection connection) throws FranchiseeException
- Get the list of incoming work for this role
- Parameters:
- eter - Connection connection: the connection to use
- Returns:
- WorkFlowListBean
getInstances
public static Hashtable getInstances()
- Return a hashtable of all instances of this class indexed by roleID
- Returns:
- java.util.Hashtable
getMembers
public Vector getMembers(Connection connection) throws FranchiseeException
- Return the members of this role as a vector of Identifier.
- Parameters:
- eter - Connection connection: a connection from the connection pool.
- Returns:
- Vector the identifiers of all role members.
getOutgoingWorkflowList
public WorkflowListBean getOutgoingWorkflowList(Connection connection) throws FranchiseeException
- Get the list of outgoing work for this role
- Parameters:
- eter - Connection connection: the connection to use
- Returns:
- WorkFlowListBean
getParent
public Role getParent()
- Return the parent of this role or null if this is the root role.
- Returns:
- Role
getRoleID
public Identifier getRoleID()
- Return the identifier of this role
- Returns:
- Identifier
setParent
private void setParent(Role parent)
- Return the parent of this role or null if this is the root role.
- Returns:
- Role
setValue
public boolean setValue(String v)
- Set the value of this type
- Overrides:
- setValue in class Field
All Packages Class Hierarchy This Package Previous Next Index