Java Doc for LDAPSecurityService.java in  » Web-Framework » TURBINE » org » apache » turbine » services » security » ldap » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » TURBINE » org.apache.turbine.services.security.ldap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.turbine.services.security.BaseSecurityService
   org.apache.turbine.services.security.ldap.LDAPSecurityService

LDAPSecurityService
public class LDAPSecurityService extends BaseSecurityService (Code)
An implementation of SecurityService that uses LDAP as a backend.
author:
   Rafal Krzewski
author:
   Tracy M. Adewunmi
author:
   Leonard J. Flournoy
author:
   Jason van Zyl
author:
   Marco Knüttel
author:
   Humberto Hernandez
version:
   $Id: LDAPSecurityService.java 571795 2007-09-01 13:09:35Z tv $




Method Summary
public synchronized  GroupaddGroup(Group group)
     Creates a new group with specified attributes. Not implemented
Parameters:
  group - the object describing the group to be created.
public synchronized  PermissionaddPermission(Permission permission)
     Creates a new permission with specified attributes. Not implemented
Parameters:
  permission - the object describing the permission to be created.
public synchronized  RoleaddRole(Role role)
     Creates a new role with specified attributes.
Parameters:
  role - the object describing the role to be created.
public  booleancheckExists(Role role)
     Determines if the Role exists in the security system.
public  booleancheckExists(Group group)
     Determines if the Group exists in the security system.
public  booleancheckExists(Permission permission)
     Determines if the Permission exists in the security system.
public  AccessControlListgetACL(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  GroupSetgetGroups(Criteria criteria)
     Retrieve a set of Groups that meet the specified Criteria.
Parameters:
  criteria - Criteria of Group selection.
public  PermissionSetgetPermissions(Criteria criteria)
     Retrieve a set of Permissions that meet the specified Criteria.
Parameters:
  criteria - Criteria of Permissions selection.
public  PermissionSetgetPermissions(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  RoleSetgetRoles(Criteria criteria)
     Retrieve a set of Roles that meet the specified Criteria.
Parameters:
  criteria - Criteria of Roles selection.
public synchronized  voidgrant(User user, Group group, Role role)
     Grant an User a Role in a Group.
public synchronized  voidgrant(Role role, Permission permission)
    
public synchronized  voidremoveGroup(Group group)
     Removes a Group from the system.
public synchronized  voidremovePermission(Permission permission)
     Removes a Permission from the system.
public synchronized  voidremoveRole(Role role)
     Removes a Role from the system.
public synchronized  voidrenameGroup(Group group, String name)
     Renames an existing Group.
public synchronized  voidrenamePermission(Permission permission, String name)
     Renames an existing Permission.
public synchronized  voidrenameRole(Role role, String name)
     Renames an existing Role.
public synchronized  voidrevoke(User user, Group group, Role role)
     Revoke a Role in a Group from an User.
public synchronized  voidrevoke(Role role, Permission permission)
     Revokes a Permission from a Role.
public  voidrevokeAll(User user)
    
public  voidrevokeAll(Role role)
     Revoke all the permissions to a role.
public  voidrevokeAll(Group group)
     Revoke all the roles to a group.
public  voidsaveGroup(Group group)
     Stores Group's attributes.
public  voidsavePermission(Permission permission)
     Stores Permission's attributes.
public  voidsaveRole(Role role)
     Stores Role's attributes.



Method Detail
addGroup
public synchronized Group addGroup(Group group) throws DataBackendException, EntityExistsException(Code)
Creates a new group with specified attributes. Not implemented
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 backend.
throws:
  EntityExistsException - if the group already exists.



addPermission
public synchronized Permission addPermission(Permission permission) throws DataBackendException, EntityExistsException(Code)
Creates a new permission with specified attributes. Not implemented
Parameters:
  permission - the object describing the permission to be created. a new Permission object that has id set up properly.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  EntityExistsException - if the permission already exists.



addRole
public synchronized Role addRole(Role role) throws DataBackendException, EntityExistsException(Code)
Creates a new role with specified attributes.
Parameters:
  role - the object describing the role to be created. a new Role object that has id set up properly.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  EntityExistsException - if the role already exists.



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.



getPermissions
public PermissionSet getPermissions(Role role) throws DataBackendException, UnknownEntityException(Code)
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. a PermissionSet.



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.



grant
public synchronized void grant(User user, Group group, Role role) throws DataBackendException, UnknownEntityException(Code)
Grant an User a Role in a Group.
Parameters:
  user - the user.
Parameters:
  group - the group.
Parameters:
  role - the role.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if user account, group or roleis not present.



grant
public synchronized void grant(Role role, Permission permission) throws DataBackendException, UnknownEntityException(Code)
Grants a Role a Permission
Parameters:
  role - the Role.
Parameters:
  permission - the Permission.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if role or permission is not present.



removeGroup
public synchronized void removeGroup(Group group) throws DataBackendException, UnknownEntityException(Code)
Removes a Group from the system.
Parameters:
  group - object describing group to be removed.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if the group does not exist.



removePermission
public synchronized void removePermission(Permission permission) throws DataBackendException, UnknownEntityException(Code)
Removes a Permission from the system.
Parameters:
  permission - object describing permission to be removed.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if the permission does not exist.



removeRole
public synchronized void removeRole(Role role) throws DataBackendException, UnknownEntityException(Code)
Removes a Role from the system.
Parameters:
  role - object describing role to be removed.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if the role does not exist.



renameGroup
public synchronized void renameGroup(Group group, String name) throws DataBackendException, UnknownEntityException(Code)
Renames an existing Group.
Parameters:
  group - object describing the group to be renamed.
Parameters:
  name - the new name for the group.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if the group does not exist.



renamePermission
public synchronized void renamePermission(Permission permission, String name) throws DataBackendException, UnknownEntityException(Code)
Renames an existing Permission.
Parameters:
  permission - object describing the permission to be renamed.
Parameters:
  name - the new name for the permission.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if the permission does not exist.



renameRole
public synchronized void renameRole(Role role, String name) throws DataBackendException, UnknownEntityException(Code)
Renames an existing Role.
Parameters:
  role - object describing the role to be renamed.
Parameters:
  name - the new name for the role.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if the role does not exist.



revoke
public synchronized void revoke(User user, Group group, Role role) throws DataBackendException, UnknownEntityException(Code)
Revoke a Role in a Group from an User.
Parameters:
  user - the user.
Parameters:
  group - the group.
Parameters:
  role - the role.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if user account, group or role isnot present.



revoke
public synchronized void revoke(Role role, Permission permission) throws DataBackendException, UnknownEntityException(Code)
Revokes a Permission from a Role.
Parameters:
  role - the Role.
Parameters:
  permission - the Permission.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if role or permission is not present.



revokeAll
public void revokeAll(User user) throws DataBackendException, UnknownEntityException(Code)
Revoke all the roles to a user
Parameters:
  user - the user.
throws:
  DataBackendException - if there is an error with the data backend.
throws:
  UnkownEntityException - if the role or a permission is not found.



revokeAll
public void revokeAll(Role role) throws DataBackendException, UnknownEntityException(Code)
Revoke all the permissions to a role.
Parameters:
  role - the role.
throws:
  DataBackendException - if there is an error with the data backend.
throws:
  UnkownEntityException - if the role or a permission is not found.



revokeAll
public void revokeAll(Group group) throws DataBackendException, UnknownEntityException(Code)
Revoke all the roles to a group.
Parameters:
  group - the group.
throws:
  DataBackendException - if there is an error with the data backend.
throws:
  UnkownEntityException - if the role or a permission is not found.



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 backend.
throws:
  UnknownEntityException - if the group does not exist.



savePermission
public void savePermission(Permission permission) throws DataBackendException, UnknownEntityException(Code)
Stores Permission's attributes. The Permissions is required to exist in the system.
Parameters:
  permission - The Permission to be stored.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if the permission does not exist.



saveRole
public void saveRole(Role role) throws DataBackendException, UnknownEntityException(Code)
Stores Role's attributes. The Roles is required to exist in the system.
Parameters:
  role - The Role to be stored.
throws:
  DataBackendException - if there was an error accessing the backend.
throws:
  UnknownEntityException - if the role does not exist.



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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.