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

Variable Index

 o children
 o description
 o instances
 o members
 o parent
 o roleID

Constructor Index

 o RoleImpl(String, Role, String)
A concrete implementation of the Role interface

Method Index

 o countWork(Connection)
Total work items in this role's incoming workflows
 o findRole(String)
Find a role by roleID.
 o getChildren()
Return the children of this role
 o getDescription()
Return the description of this role
 o getIncomingWorkflowList(Connection)
Get the list of incoming work for this role
 o getInstances()
Return a hashtable of all instances of this class indexed by roleID
 o getMembers(Connection)
Return the members of this role as a vector of Identifier.
 o getOutgoingWorkflowList(Connection)
Get the list of outgoing work for this role
 o getParent()
Return the parent of this role or null if this is the root role.
 o getRoleID()
Return the identifier of this role
 o setParent(Role)
Return the parent of this role or null if this is the root role.
 o setValue(String)
Set the value of this type

Variables

 o roleID
 private Identifier roleID
 o parent
 private Role parent
 o description
 private Description description
 o children
 private final Vector children
 o members
 private transient Vector members
 o instances
 private static final Hashtable instances

Constructors

 o 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

Methods

 o 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
 o findRole
 public static Role findRole(String roleID)
Find a role by roleID. Returns null if not found.

Parameters:
String - roleID
Returns:
Role
 o getChildren
 public Vector getChildren()
Return the children of this role

Returns:
Vector
 o getDescription
 public Description getDescription()
Return the description of this role

Returns:
Description
 o 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
 o getInstances
 public static Hashtable getInstances()
Return a hashtable of all instances of this class indexed by roleID

Returns:
java.util.Hashtable
 o 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.
 o 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
 o getParent
 public Role getParent()
Return the parent of this role or null if this is the root role.

Returns:
Role
 o getRoleID
 public Identifier getRoleID()
Return the identifier of this role

Returns:
Identifier
 o setParent
 private void setParent(Role parent)
Return the parent of this role or null if this is the root role.

Returns:
Role
 o 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