| org.apache.turbine.services.security.BaseSecurityService org.apache.turbine.services.security.ldap.LDAPSecurityService
Method Summary | |
public synchronized Group | addGroup(Group group) Creates a new group with specified attributes.
Not implemented
Parameters: group - the object describing the group to be created. | public synchronized Permission | addPermission(Permission permission) Creates a new permission with specified attributes.
Not implemented
Parameters: permission - the object describing the permission to be created. | public synchronized Role | addRole(Role role) Creates a new role with specified attributes.
Parameters: role - the object describing the role to be created. | public boolean | checkExists(Role role) Determines if the Role exists in the security system. | public boolean | checkExists(Group group) Determines if the Group exists in the security system. | public boolean | checkExists(Permission permission) Determines if the Permission exists in the security system. | public AccessControlList | getACL(User user) Constructs an AccessControlList for a specific user.
This method creates a snapshot of the state of security information
concerning this user, at the moment of invocation and stores it
into an AccessControlList object.
Parameters: user - the user for whom the AccessControlList are to be retrieved throws: DataBackendException - if there was an error accessing the backend. throws: UnknownEntityException - if user account is not present. | public GroupSet | getGroups(Criteria criteria) Retrieve a set of Groups that meet the specified Criteria.
Parameters: criteria - Criteria of Group selection. | public PermissionSet | getPermissions(Criteria criteria) Retrieve a set of Permissions that meet the specified Criteria.
Parameters: criteria - Criteria of Permissions selection. | public PermissionSet | getPermissions(Role role) Retrieves all permissions associated with a role.
Parameters: role - the role name, for which the permissions are to be retrieved. throws: DataBackendException - if there was an error accessing the backend. throws: UnknownEntityException - if the role is not present. | public RoleSet | getRoles(Criteria criteria) Retrieve a set of Roles that meet the specified Criteria.
Parameters: criteria - Criteria of Roles selection. | public synchronized void | grant(User user, Group group, Role role) Grant an User a Role in a Group. | public synchronized void | grant(Role role, Permission permission) | public synchronized void | removeGroup(Group group) Removes a Group from the system. | public synchronized void | removePermission(Permission permission) Removes a Permission from the system. | public synchronized void | removeRole(Role role) Removes a Role from the system. | public synchronized void | renameGroup(Group group, String name) Renames an existing Group. | public synchronized void | renamePermission(Permission permission, String name) Renames an existing Permission. | public synchronized void | renameRole(Role role, String name) Renames an existing Role. | public synchronized void | revoke(User user, Group group, Role role) Revoke a Role in a Group from an User. | public synchronized void | revoke(Role role, Permission permission) Revokes a Permission from a Role. | public void | revokeAll(User user) | public void | revokeAll(Role role) Revoke all the permissions to a role. | public void | revokeAll(Group group) Revoke all the roles to a group. | public void | saveGroup(Group group) Stores Group's attributes. | public void | savePermission(Permission permission) Stores Permission's attributes. | public void | saveRole(Role role) Stores Role's attributes. |
checkExists | public boolean checkExists(Role role) throws DataBackendException(Code) | | Determines if the Role exists in the security system.
Parameters: role - a Role value true if the role exists in the system, false otherwise throws: DataBackendException - if there is an error with LDAP |
checkExists | public boolean checkExists(Group group) throws DataBackendException(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 - if there is an error with LDAP |
checkExists | public boolean checkExists(Permission permission) throws DataBackendException(Code) | | Determines if the Permission exists in the security system.
Parameters: permission - a Permission value true if the permission exists in the system, false otherwise throws: DataBackendException - if there is an error with LDAP |
getACL | public AccessControlList getACL(User user) throws DataBackendException, UnknownEntityException(Code) | | Constructs an AccessControlList for a specific user.
This method creates a snapshot of the state of security information
concerning this user, at the moment of invocation and stores it
into an AccessControlList object.
Parameters: user - the user for whom the AccessControlList are to be retrieved throws: DataBackendException - if there was an error accessing the backend. throws: UnknownEntityException - if user account is not present. an AccessControlList for a specific user. |
getGroups | public GroupSet getGroups(Criteria criteria) throws DataBackendException(Code) | | Retrieve a set of Groups that meet the specified Criteria.
Parameters: criteria - Criteria of Group selection. a set of Groups that meet the specified Criteria. throws: DataBackendException - if there is problem with the Backend. |
getPermissions | public PermissionSet getPermissions(Criteria criteria) throws DataBackendException(Code) | | Retrieve a set of Permissions that meet the specified Criteria.
Parameters: criteria - Criteria of Permissions selection. a set of Permissions that meet the specified Criteria. throws: DataBackendException - if there is a problem with the Backend. |
getRoles | public RoleSet getRoles(Criteria criteria) throws DataBackendException(Code) | | Retrieve a set of Roles that meet the specified Criteria.
Parameters: criteria - Criteria of Roles selection. a set of Roles that meet the specified Criteria. throws: DataBackendException - if there is a problem with the Backend. |
Methods inherited from org.apache.turbine.services.security.BaseSecurityService | public boolean accountExists(User user) throws DataBackendException(Code)(Java Doc) public boolean accountExists(String userName) throws DataBackendException(Code)(Java Doc) public void addUser(User user, String password) throws DataBackendException, EntityExistsException(Code)(Java Doc) public void changePassword(User user, String oldPassword, String newPassword) throws PasswordMismatchException, UnknownEntityException, DataBackendException(Code)(Java Doc) public boolean checkPassword(String checkpw, String encpw)(Code)(Java Doc) public String encryptPassword(String password)(Code)(Java Doc) public String encryptPassword(String password, String salt)(Code)(Java Doc) public void forcePassword(User user, String password) throws UnknownEntityException, DataBackendException(Code)(Java Doc) public Class getAclClass() throws UnknownEntityException(Code)(Java Doc) public AccessControlList getAclInstance(Map roles, Map permissions) throws UnknownEntityException(Code)(Java Doc) public GroupSet getAllGroups() throws DataBackendException(Code)(Java Doc) public PermissionSet getAllPermissions() throws DataBackendException(Code)(Java Doc) public RoleSet getAllRoles() throws DataBackendException(Code)(Java Doc) public User getAnonymousUser() throws UnknownEntityException(Code)(Java Doc) public User getAuthenticatedUser(String username, String password) throws DataBackendException, UnknownEntityException, PasswordMismatchException(Code)(Java Doc) public Group getGlobalGroup()(Code)(Java Doc) public Group getGroup(String name) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Group getGroupById(int id) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Group getGroupByName(String name) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Class getGroupClass() throws UnknownEntityException(Code)(Java Doc) public Group getGroupInstance() throws UnknownEntityException(Code)(Java Doc) public Group getGroupInstance(String groupName) throws UnknownEntityException(Code)(Java Doc) public Group getNewGroup(String groupName)(Code)(Java Doc) public Permission getNewPermission(String permissionName)(Code)(Java Doc) public Role getNewRole(String roleName)(Code)(Java Doc) public Permission getPermission(String name) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Permission getPermissionById(int id) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Permission getPermissionByName(String name) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Class getPermissionClass() throws UnknownEntityException(Code)(Java Doc) public Permission getPermissionInstance() throws UnknownEntityException(Code)(Java Doc) public Permission getPermissionInstance(String permName) throws UnknownEntityException(Code)(Java Doc) public Role getRole(String name) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Role getRoleById(int id) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Role getRoleByName(String name) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Class getRoleClass() throws UnknownEntityException(Code)(Java Doc) public Role getRoleInstance() throws UnknownEntityException(Code)(Java Doc) public Role getRoleInstance(String roleName) throws UnknownEntityException(Code)(Java Doc) public User getUser(String username) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public Class getUserClass() throws UnknownEntityException(Code)(Java Doc) public User getUserInstance() throws UnknownEntityException(Code)(Java Doc) public User getUserInstance(String userName) throws UnknownEntityException(Code)(Java Doc) public List getUserList(Criteria criteria) throws DataBackendException(Code)(Java Doc) public UserManager getUserManager()(Code)(Java Doc) public User[] getUsers(Criteria criteria) throws DataBackendException(Code)(Java Doc) public void init() throws InitializationException(Code)(Java Doc) public void init(ServletConfig config) throws InitializationException(Code)(Java Doc) public boolean isAnonymousUser(User user)(Code)(Java Doc) protected void lockExclusive()(Code)(Java Doc) protected synchronized void lockShared()(Code)(Java Doc) public void removeUser(User user) throws DataBackendException, UnknownEntityException(Code)(Java Doc) public void saveOnSessionUnbind(User user) throws UnknownEntityException, DataBackendException(Code)(Java Doc) public void saveUser(User user) throws UnknownEntityException, DataBackendException(Code)(Java Doc) public void setUserManager(UserManager userManager)(Code)(Java Doc) protected void unlockExclusive()(Code)(Java Doc) protected synchronized void unlockShared()(Code)(Java Doc)
|
|
|