|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fulcrum.BaseService
org.apache.fulcrum.security.BaseSecurityService
org.apache.fulcrum.security.impl.db.DBSecurityService
org.tigris.scarab.services.security.ScarabDBSecurityService
Implementation of turbine's SecurityService to account for the ScarabModule being the Group implementation.
| Field Summary |
| Fields inherited from class org.apache.fulcrum.security.impl.db.DBSecurityService |
USER_PEER_CLASS_DEFAULT, USER_PEER_CLASS_KEY |
| Fields inherited from class org.apache.fulcrum.security.BaseSecurityService |
userManager |
| Fields inherited from class org.apache.fulcrum.BaseService |
configuration, isInitialized, name, serviceBroker |
| Fields inherited from interface org.apache.fulcrum.security.SecurityService |
ACL_CLASS_DEFAULT, ACL_CLASS_KEY, GROUP_CLASS_DEFAULT, GROUP_CLASS_KEY, PERMISSION_CLASS_DEFAULT, PERMISSION_CLASS_KEY, ROLE_CLASS_DEFAULT, ROLE_CLASS_KEY, SECURE_PASSWORDS_ALGORITHM_DEFAULT, SECURE_PASSWORDS_ALGORITHM_KEY, SECURE_PASSWORDS_DEFAULT, SECURE_PASSWORDS_KEY, SERVICE_NAME, USER_CLASS_DEFAULT, USER_CLASS_KEY, USER_MANAGER_DEFAULT, USER_MANAGER_KEY |
| Constructor Summary | |
ScarabDBSecurityService()
|
|
| Method Summary | |
org.apache.fulcrum.security.entity.Group |
addGroup(org.apache.fulcrum.security.entity.Group group)
Creates a new group with specified attributes. |
protected boolean |
checkExists(org.apache.fulcrum.security.entity.Group group)
Determines if the Group exists in the security system. |
org.apache.fulcrum.security.util.GroupSet |
getGroups(org.apache.torque.util.Criteria criteria)
Retrieve a set of Groups that meet the specified Criteria. |
void |
removeGroup(org.apache.fulcrum.security.entity.Group group)
Removes a Group from the system. |
void |
renameGroup(org.apache.fulcrum.security.entity.Group group,
java.lang.String name)
Renames an existing Group. |
void |
saveGroup(org.apache.fulcrum.security.entity.Group group)
Stores Group's attributes. |
| Methods inherited from class org.apache.fulcrum.security.impl.db.DBSecurityService |
addPermission, addRole, checkExists, checkExists, getACL, getNewGroup, getNewPermission, getNewRole, getPermissions, getPermissions, getRoles, getUserPeerClass, getUserPeerInstance, grant, grant, removePermission, removeRole, renamePermission, renameRole, revoke, revoke, revokeAll, revokeAll, savePermission, saveRole |
| Methods inherited from class org.apache.fulcrum.security.BaseSecurityService |
accountExists, accountExists, addUser, changePassword, encryptPassword, forcePassword, getAclClass, getAclInstance, getAllGroups, getAllPermissions, getAllRoles, getAnonymousUser, getAuthenticatedUser, getFactoryService, getGlobalGroup, getGroup, getGroupClass, getGroupInstance, getGroupInstance, getPermission, getPermissionClass, getPermissionInstance, getPermissionInstance, getRole, getRoleClass, getRoleInstance, getRoleInstance, getUser, getUserClass, getUserInstance, getUserInstance, getUsers, init, lockExclusive, lockShared, removeUser, saveUser, unlockExclusive, unlockShared |
| Methods inherited from class org.apache.fulcrum.BaseService |
getCategory, getConfiguration, getInit, getName, getRealPath, getServiceBroker, getServiceObject, getStatus, isInitialized, setInit, setName, setServiceBroker, shutdown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.fulcrum.Service |
getCategory, getConfiguration, getRealPath, getStatus, isInitialized, setName, setServiceBroker, shutdown |
| Constructor Detail |
public ScarabDBSecurityService()
| Method Detail |
public org.apache.fulcrum.security.util.GroupSet getGroups(org.apache.torque.util.Criteria criteria)
throws org.apache.fulcrum.security.util.DataBackendException
org.apache.fulcrum.security.util.DataBackendException
public void saveGroup(org.apache.fulcrum.security.entity.Group group)
throws org.apache.fulcrum.security.util.DataBackendException,
org.apache.fulcrum.security.util.UnknownEntityException
group - The Group to be stored.
org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data backend.
org.apache.fulcrum.security.util.UnknownEntityException - if the group does not exist.
public org.apache.fulcrum.security.entity.Group addGroup(org.apache.fulcrum.security.entity.Group group)
throws org.apache.fulcrum.security.util.DataBackendException,
org.apache.fulcrum.security.util.EntityExistsException
group - the object describing the group to be created.
org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data backend.
org.apache.fulcrum.security.util.EntityExistsException - if the group already exists.
public void removeGroup(org.apache.fulcrum.security.entity.Group group)
throws org.apache.fulcrum.security.util.DataBackendException,
org.apache.fulcrum.security.util.UnknownEntityException
group - the object describing group to be removed.
org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.
org.apache.fulcrum.security.util.UnknownEntityException - if the group does not exist.
public void renameGroup(org.apache.fulcrum.security.entity.Group group,
java.lang.String name)
throws org.apache.fulcrum.security.util.DataBackendException,
org.apache.fulcrum.security.util.UnknownEntityException
group - the object describing the group to be renamed.name - the new name for the group.
org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.
org.apache.fulcrum.security.util.UnknownEntityException - if the group does not exist.
protected boolean checkExists(org.apache.fulcrum.security.entity.Group group)
throws org.apache.fulcrum.security.util.DataBackendException,
java.lang.Exception
Group exists in the security system.
group - a Group value
org.apache.fulcrum.security.util.DataBackendException - when more than one Group with
the same name exists.
java.lang.Exception - a generic exception.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||