| org.tigris.scarab.services.security.ScarabDBSecurityService
ScarabDBSecurityService | public class ScarabDBSecurityService extends DBSecurityService (Code) | | Implementation of turbine's SecurityService to account for the ScarabModule
being the Group implementation.
author: John D. McNally version: $Id: ScarabDBSecurityService.java 9104 2004-05-10 21:04:51Z dabbous $ |
Method Summary | |
public synchronized Group | addGroup(Group group) Creates a new group with specified attributes.
Parameters: group - the object describing the group to be created. | protected boolean | checkExists(Group group) Determines if the Group exists in the security system. | public GroupSet | getGroups(Criteria criteria) Retrieve a set of Groups that meet the specified Criteria.
Parameters: a - Criteria of Group selection. | public synchronized void | removeGroup(Group group) Removes a Group from the system. | public synchronized void | renameGroup(Group group, String name) Renames an existing Group. | public void | saveGroup(Group group) Stores Group's attributes. |
addGroup | public synchronized Group addGroup(Group group) throws DataBackendException, EntityExistsException(Code) | | Creates a new group with specified attributes.
Parameters: group - the object describing the group to be created. a new Group object that has id set up properly. throws: DataBackendException - if there was an error accessing the data backend. throws: EntityExistsException - if the group already exists. |
checkExists | protected boolean checkExists(Group group) throws DataBackendException, Exception(Code) | | Determines if the Group exists in the security system.
Parameters: group - a Group value true if the group exists in the system, false otherwise throws: DataBackendException - when more than one Group with the same name exists. throws: Exception - a generic exception. |
getGroups | public GroupSet getGroups(Criteria criteria) throws DataBackendException(Code) | | Retrieve a set of Groups that meet the specified Criteria.
Parameters: a - Criteria of Group selection. a set of Groups that meet the specified Criteria. |
removeGroup | public synchronized void removeGroup(Group group) throws DataBackendException, UnknownEntityException(Code) | | Removes a Group from the system.
Parameters: group - the object describing group to be removed. throws: DataBackendException - if there was an error accessing the data backend. throws: UnknownEntityException - if the group does not exist. |
renameGroup | public synchronized void renameGroup(Group group, String name) throws DataBackendException, UnknownEntityException(Code) | | Renames an existing Group.
Parameters: group - the object describing the group to be renamed. Parameters: name - the new name for the group. throws: DataBackendException - if there was an error accessing the data backend. throws: UnknownEntityException - if the group does not exist. |
saveGroup | public void saveGroup(Group group) throws DataBackendException, UnknownEntityException(Code) | | Stores Group's attributes. The Groups is required to exist in the system.
Parameters: group - The Group to be stored. throws: DataBackendException - if there was an error accessing the data backend. throws: UnknownEntityException - if the group does not exist. |
|
|