| java.lang.Object edu.iu.uis.eden.workgroup.BaseWorkgroupService
All known Subclasses: edu.iu.uis.eden.workgroup.PluginTestWorkgroupService,
BaseWorkgroupService | public class BaseWorkgroupService implements WorkgroupService(Code) | | The standard implementation of the WorkgroupService which is backed by a database.
This implementation utilizes caching of workgroups which is safe in a clustered environment.
author: Eric Westfall |
Method Summary | |
protected void | addToCache(BaseWorkgroup workgroup) | public Workgroup | copy(Workgroup workgroup) | public Element | export(ExportDataSet dataSet) | protected BaseWorkgroup | fetchFromCache(GroupId groupId) | protected String | generateCacheKey(GroupId groupId) | public Workgroup | getBlankWorkgroup() | public Extension | getBlankWorkgroupExtension() | public WorkgroupCapabilities | getCapabilities() | protected BaseWorkgroup | getExternalWorkgroup(GroupId groupId, boolean loadWorkgroupExtensions) | public List<Workgroup> | getUsersGroups(WorkflowUser user) | public Workgroup | getWorkgroup(WorkgroupIdVO groupIdVO) | public Workgroup | getWorkgroup(GroupId groupId) | public Workgroup | getWorkgroup(GroupId groupId, boolean loadWorkgroupExtensions) | protected BaseWorkgroupDAO | getWorkgroupDAO() | protected BaseWorkgroupMemberDAO | getWorkgroupMemberDAO() | public List<Workgroup> | getWorkgroupsGroups(Workgroup workgroup) | protected BaseWorkgroup | initializeLoadedWorkgroup(BaseWorkgroup workgroup) Initializes the Workgroup after being loaded from the database. | public boolean | isUserMemberOfGroup(GroupId groupId, WorkflowUser user) | public void | loadXml(InputStream stream, WorkflowUser user) Loads workgroups from the given XML. | protected void | materializeMembers(List workgroups) | protected void | removeFromCache(Workgroup workgroup) | public void | removeFromCacheById(WorkflowGroupId id) | public void | removeNameFromCache(GroupNameId name) | public void | save(Workgroup workgroup) | public List | search(Workgroup workgroup, Map<String, String> extensionValues, boolean useWildCards) | public List | search(Workgroup workgroup, Map<String, String> extensionValues, WorkflowUser user) | public void | setWorkgroupDAO(BaseWorkgroupDAO workgroupDAO) | public void | setWorkgroupMemberDAO(BaseWorkgroupMemberDAO workgroupMemberDAO) |
WORKGROUP_ID_CACHE_GROUP | final public static String WORKGROUP_ID_CACHE_GROUP(Code) | | |
WORKGROUP_NAME_CACHE_GROUP | final public static String WORKGROUP_NAME_CACHE_GROUP(Code) | | |
getBlankWorkgroupExtension | public Extension getBlankWorkgroupExtension()(Code) | | |
initializeLoadedWorkgroup | protected BaseWorkgroup initializeLoadedWorkgroup(BaseWorkgroup workgroup) throws EdenUserNotFoundException(Code) | | Initializes the Workgroup after being loaded from the database. This method can be
overriden by subclasses to perform institution specific functions (such as wrapping
the workgroup in a custom implementation prior to it being cached).
The default behavior of this method is to materialize the members of the SimpleWorkgroup
from the OJB data bean using the materializeMembers() method.
Overridders of this method should be sure to perform this step as well if desired,
preferably by invoking super.initializeLoadedWorkgroup.
Parameters: the - workgroup to initialize the initialized workgroup, does not have to be the exact same instance as the workgrouppassed in |
|
|