Java Doc for AuthzGroupService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » authz » api » 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 » ERP CRM Financial » sakai » org.sakaiproject.authz.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.authz.api.AuthzGroupService

All known Subclasses:   org.sakaiproject.authz.impl.BaseAuthzGroupService,
AuthzGroupService
public interface AuthzGroupService extends EntityProducer(Code)

AuthzGroupService manages authorization grops.



Field Summary
final static  StringANON_ROLE
     Standard role name for the anon.
final static  StringAPPLICATION_ID
     The type string for this application: should not change over time as it may be stored in various parts of persistent entities.
final static  StringAUTH_ROLE
     Standard role name for the auth.
final static  StringREFERENCE_ROOT
     This string starts the references to resources in this service.
final static  StringSECURE_ADD_AUTHZ_GROUP
     Name for the event of adding an AuthzGroup.
final static  StringSECURE_REMOVE_AUTHZ_GROUP
     Name for the event of removing an AuthzGroup.
final static  StringSECURE_UPDATE_AUTHZ_GROUP
     Name for the event of updating an AuthzGroup.
final static  StringSECURE_UPDATE_OWN_AUTHZ_GROUP
     Name for the event of updating ones own relationship in an AuthzGroup.


Method Summary
 AuthzGroupaddAuthzGroup(String id)
     Add a new AuthzGroup
Parameters:
  id - The AuthzGroup id.
 AuthzGroupaddAuthzGroup(String id, AuthzGroup other, String maintainUserId)
     Add a new AuthzGroup, as a copy of another AuthzGroup (except for id), and give a user "maintain" access based on the other's definition of "maintain".
Parameters:
  id - The id.
Parameters:
  other - The AuthzGroup to copy into this new AuthzGroup.
Parameters:
  maintainUserId - Optional user id to get "maintain" access, or null if none.
 booleanallowAdd(String id)
     Check permissions for adding an AuthzGroup.
Parameters:
  id - The authzGroup id.
 booleanallowJoinGroup(String id)
     Check permissions for the current user joining a group.
Parameters:
  id - The AuthzGroup id.
 booleanallowRemove(String id)
     Check permissions for removing an AuthzGroup.
Parameters:
  id - The AuthzGroup id.
 booleanallowUnjoinGroup(String id)
     Check permissions for the current user unjoining a group.
Parameters:
  id - The AuthzGroup id.
 booleanallowUpdate(String id)
     Check permissions for updating an AuthzGroup.
Parameters:
  id - The id.
 StringauthzGroupReference(String id)
     Access the internal reference which can be used to access the AuthzGroup from within the system.
Parameters:
  id - The AuthzGroup id.
 intcountAuthzGroups(String criteria)
     Count the AuthzGroups that meet specified criteria.
Parameters:
  criteria - Selection criteria: AuthzGroups returned will match this string somewhere in their id, or provider group id.
 SetgetAllowedFunctions(String role, Collection azGroups)
     Get the set of functions that users with this role in these AuthzGroups are allowed to perform.
Parameters:
  role - The role name.
Parameters:
  azGroups - A collection of AuthzGroup ids to consult.
 AuthzGroupgetAuthzGroup(String id)
     Access an AuthzGroup.
Parameters:
  id - The id string.
public  SetgetAuthzGroupIds(String providerId)
     Gets the IDs of the AuthzGroups with the given provider ID.
 ListgetAuthzGroups(String criteria, PagingPosition page)
     Access a list of AuthzGroups that meet specified criteria, naturally sorted.
Parameters:
  criteria - Selection criteria: AuthzGroups returned will match this string somewhere in their id, or provider group id.
Parameters:
  page - The PagePosition subset of items to return.
 SetgetAuthzGroupsIsAllowed(String userId, String function, Collection azGroups)
     Get the set of AuthzGroup ids in which this user is allowed to perform this function.
Parameters:
  userId - The user id.
Parameters:
  function - The function to check.
Parameters:
  azGroups - The Collection of AuthzGroup ids to search; if null, search them all.
public  SetgetProviderIds(String authzGroupId)
     Gets the provider IDs associated with an AuthzGroup. The Set of Strings representing external group IDs, as recognized by the GroupProvider implementation, that are associated with the given groupId.
 StringgetUserRole(String userId, String azGroupId)
     Get the role name for this user in this AuthzGroup, if the user has membership (the membership gives the user a single role).
Parameters:
  userId - The user id.
Parameters:
  function - The function to open.
Parameters:
  azGroupId - The AuthzGroup id to consult, if it exists.
 SetgetUsersIsAllowed(String function, Collection azGroups)
     Get the set of user ids of users who are allowed to perform the function in the named AuthzGroups.
Parameters:
  function - The function to check.
Parameters:
  azGroups - A collection of the ids of AuthzGroups to consult.
 MapgetUsersRole(Collection userIds, String azGroupId)
     Get the role name for each user in the userIds Collection in this AuthzGroup, for each of these users who have membership (membership gives the user a single role).
Parameters:
  userIds - The user ids as a Collection of String.
Parameters:
  function - The function to open.
Parameters:
  azGroupId - The AuthzGroup id to consult, if it exists.
 booleanisAllowed(String userId, String function, String azGroupId)
     Test if this user is allowed to perform the function in the named AuthzGroup.
Parameters:
  userId - The user id.
Parameters:
  function - The function to open.
Parameters:
  azGroupId - The AuthzGroup id to consult, if it exists.
 booleanisAllowed(String userId, String function, Collection azGroups)
     Test if this user is allowed to perform the function in the named AuthzGroups.
Parameters:
  userId - The user id.
Parameters:
  function - The function to open.
Parameters:
  azGroups - A collection of AuthzGroup ids to consult.
 voidjoinGroup(String authzGroupId, String role)
     Cause the current user to join the given AuthzGroup with this role, using SECURE_UPDATE_OWN_AUTHZ_GROUP security.
 AuthzGroupnewAuthzGroup(String id, AuthzGroup other, String maintainUserId)
     Create a new AuthzGroup, as a copy of another AuthzGroup (except for id), and give a user "maintain" access based on the other's definition of "maintain", but do not store - it can be saved with a save() call
Parameters:
  id - The id.
Parameters:
  other - The AuthzGroup to copy into this new AuthzGroup (or null if none).
Parameters:
  maintainUserId - Optional user id to get "maintain" access, or null if none.
 voidrefreshUser(String userId)
     Refresh this user's AuthzGroup external definitions.
 voidremoveAuthzGroup(AuthzGroup azGroup)
     Remove this AuthzGroup.
 voidremoveAuthzGroup(String id)
     Remove the AuthzGroup with this id, if it exists (fails quietly if not).
 voidsave(AuthzGroup azGroup)
     Save the changes made to the AuthzGroup.
 voidunjoinGroup(String authzGroupId)
     Cause the current user to unjoin the given AuthzGroup, using SECURE_UPDATE_OWN_AUTHZ_GROUP security.

Field Detail
ANON_ROLE
final static String ANON_ROLE(Code)
Standard role name for the anon. role.



APPLICATION_ID
final static String APPLICATION_ID(Code)
The type string for this application: should not change over time as it may be stored in various parts of persistent entities.



AUTH_ROLE
final static String AUTH_ROLE(Code)
Standard role name for the auth. role.



REFERENCE_ROOT
final static String REFERENCE_ROOT(Code)
This string starts the references to resources in this service.



SECURE_ADD_AUTHZ_GROUP
final static String SECURE_ADD_AUTHZ_GROUP(Code)
Name for the event of adding an AuthzGroup.



SECURE_REMOVE_AUTHZ_GROUP
final static String SECURE_REMOVE_AUTHZ_GROUP(Code)
Name for the event of removing an AuthzGroup.



SECURE_UPDATE_AUTHZ_GROUP
final static String SECURE_UPDATE_AUTHZ_GROUP(Code)
Name for the event of updating an AuthzGroup.



SECURE_UPDATE_OWN_AUTHZ_GROUP
final static String SECURE_UPDATE_OWN_AUTHZ_GROUP(Code)
Name for the event of updating ones own relationship in an AuthzGroup.





Method Detail
addAuthzGroup
AuthzGroup addAuthzGroup(String id) throws GroupIdInvalidException, GroupAlreadyDefinedException, AuthzPermissionException(Code)
Add a new AuthzGroup
Parameters:
  id - The AuthzGroup id. The new AuthzGroup.
exception:
  GroupIdInvalidException - if the id is invalid.
exception:
  GroupAlreadyDefinedException - if the id is already used.
exception:
  AuthzPermissionException - if the current user does not have permission to add the AuthzGroup.



addAuthzGroup
AuthzGroup addAuthzGroup(String id, AuthzGroup other, String maintainUserId) throws GroupIdInvalidException, GroupAlreadyDefinedException, AuthzPermissionException(Code)
Add a new AuthzGroup, as a copy of another AuthzGroup (except for id), and give a user "maintain" access based on the other's definition of "maintain".
Parameters:
  id - The id.
Parameters:
  other - The AuthzGroup to copy into this new AuthzGroup.
Parameters:
  maintainUserId - Optional user id to get "maintain" access, or null if none. The new AuthzGroup object.
exception:
  GroupIdInvalidException - if the id is invalid.
exception:
  GroupAlreadyDefinedException - if the id is already used.
exception:
  AuthzPermissionException - if the current user does not have permission to add the AuthzGroup.



allowAdd
boolean allowAdd(String id)(Code)
Check permissions for adding an AuthzGroup.
Parameters:
  id - The authzGroup id. true if the current user is allowed add the AuthzGroup, false if not.



allowJoinGroup
boolean allowJoinGroup(String id)(Code)
Check permissions for the current user joining a group.
Parameters:
  id - The AuthzGroup id. true if the user is allowed to join the group, false if not.



allowRemove
boolean allowRemove(String id)(Code)
Check permissions for removing an AuthzGroup.
Parameters:
  id - The AuthzGroup id. true if the user is allowed to remove the AuthzGroup, false if not.



allowUnjoinGroup
boolean allowUnjoinGroup(String id)(Code)
Check permissions for the current user unjoining a group.
Parameters:
  id - The AuthzGroup id. true if the user is allowed to unjoin the group, false if not.



allowUpdate
boolean allowUpdate(String id)(Code)
Check permissions for updating an AuthzGroup.
Parameters:
  id - The id. true if the user is allowed to update the AuthzGroup, false if not.



authzGroupReference
String authzGroupReference(String id)(Code)
Access the internal reference which can be used to access the AuthzGroup from within the system.
Parameters:
  id - The AuthzGroup id. The the internal reference which can be used to access the AuthzGroup from within the system.



countAuthzGroups
int countAuthzGroups(String criteria)(Code)
Count the AuthzGroups that meet specified criteria.
Parameters:
  criteria - Selection criteria: AuthzGroups returned will match this string somewhere in their id, or provider group id. The count of AuthzGroups that meet specified criteria.



getAllowedFunctions
Set getAllowedFunctions(String role, Collection azGroups)(Code)
Get the set of functions that users with this role in these AuthzGroups are allowed to perform.
Parameters:
  role - The role name.
Parameters:
  azGroups - A collection of AuthzGroup ids to consult. the Set (String) of functions that users with this role in these AuthzGroups are allowed to perform



getAuthzGroup
AuthzGroup getAuthzGroup(String id) throws GroupNotDefinedException(Code)
Access an AuthzGroup.
Parameters:
  id - The id string. The AuthzGroup.
exception:
  GroupNotDefinedException - if not found.



getAuthzGroupIds
public Set getAuthzGroupIds(String providerId)(Code)
Gets the IDs of the AuthzGroups with the given provider ID. The Set of Strings representing authzGroup IDs (such as /site/1234 or /site/1234/group/5678) for all authzGroups with the given providerId.



getAuthzGroups
List getAuthzGroups(String criteria, PagingPosition page)(Code)
Access a list of AuthzGroups that meet specified criteria, naturally sorted.
Parameters:
  criteria - Selection criteria: AuthzGroups returned will match this string somewhere in their id, or provider group id.
Parameters:
  page - The PagePosition subset of items to return. The List (AuthzGroup) that meet specified criteria.



getAuthzGroupsIsAllowed
Set getAuthzGroupsIsAllowed(String userId, String function, Collection azGroups)(Code)
Get the set of AuthzGroup ids in which this user is allowed to perform this function.
Parameters:
  userId - The user id.
Parameters:
  function - The function to check.
Parameters:
  azGroups - The Collection of AuthzGroup ids to search; if null, search them all. the Set (String) of AuthzGroup ids in which this user is allowed to perform this function.



getProviderIds
public Set getProviderIds(String authzGroupId)(Code)
Gets the provider IDs associated with an AuthzGroup. The Set of Strings representing external group IDs, as recognized by the GroupProvider implementation, that are associated with the given groupId. These stringsmust not be "compound IDs", as defined by the GroupProvider's String[] unpackId(String id) method.



getUserRole
String getUserRole(String userId, String azGroupId)(Code)
Get the role name for this user in this AuthzGroup, if the user has membership (the membership gives the user a single role).
Parameters:
  userId - The user id.
Parameters:
  function - The function to open.
Parameters:
  azGroupId - The AuthzGroup id to consult, if it exists. the role name for this user in this AuthzGroup, if the user has active membership, or null if not.



getUsersIsAllowed
Set getUsersIsAllowed(String function, Collection azGroups)(Code)
Get the set of user ids of users who are allowed to perform the function in the named AuthzGroups.
Parameters:
  function - The function to check.
Parameters:
  azGroups - A collection of the ids of AuthzGroups to consult. the Set (String) of user ids of users who are allowed to perform the function in the named AuthzGroups.



getUsersRole
Map getUsersRole(Collection userIds, String azGroupId)(Code)
Get the role name for each user in the userIds Collection in this AuthzGroup, for each of these users who have membership (membership gives the user a single role).
Parameters:
  userIds - The user ids as a Collection of String.
Parameters:
  function - The function to open.
Parameters:
  azGroupId - The AuthzGroup id to consult, if it exists. A Map (userId (String) -> role name (String)) of role names for each user who have active membership; if the user does not, it will not be in the Map.



isAllowed
boolean isAllowed(String userId, String function, String azGroupId)(Code)
Test if this user is allowed to perform the function in the named AuthzGroup.
Parameters:
  userId - The user id.
Parameters:
  function - The function to open.
Parameters:
  azGroupId - The AuthzGroup id to consult, if it exists. true if this user is allowed to perform the function in the named AuthzGroup, false if not.



isAllowed
boolean isAllowed(String userId, String function, Collection azGroups)(Code)
Test if this user is allowed to perform the function in the named AuthzGroups.
Parameters:
  userId - The user id.
Parameters:
  function - The function to open.
Parameters:
  azGroups - A collection of AuthzGroup ids to consult. true if this user is allowed to perform the function in the named AuthzGroups, false if not.



joinGroup
void joinGroup(String authzGroupId, String role) throws GroupNotDefinedException, AuthzPermissionException(Code)
Cause the current user to join the given AuthzGroup with this role, using SECURE_UPDATE_OWN_AUTHZ_GROUP security.
Parameters:
  authzGroupId - the id of the AuthzGroup.
Parameters:
  role - the name of the Role.
throws:
  GroupNotDefinedException - if the authzGroupId or role are not defined.
throws:
  AuthzPermissionException - if the current user does not have permission to join this AuthzGroup.



newAuthzGroup
AuthzGroup newAuthzGroup(String id, AuthzGroup other, String maintainUserId) throws GroupAlreadyDefinedException(Code)
Create a new AuthzGroup, as a copy of another AuthzGroup (except for id), and give a user "maintain" access based on the other's definition of "maintain", but do not store - it can be saved with a save() call
Parameters:
  id - The id.
Parameters:
  other - The AuthzGroup to copy into this new AuthzGroup (or null if none).
Parameters:
  maintainUserId - Optional user id to get "maintain" access, or null if none. The new AuthzGroup object.
exception:
  GroupAlreadyDefinedException - if the id is already used.



refreshUser
void refreshUser(String userId)(Code)
Refresh this user's AuthzGroup external definitions.
Parameters:
  userId - The user id.



removeAuthzGroup
void removeAuthzGroup(AuthzGroup azGroup) throws AuthzPermissionException(Code)
Remove this AuthzGroup.
Parameters:
  azGroup - The AuthzGroup to remove.
exception:
  AuthzPermissionException - if the current user does not have permission to remove this AuthzGroup.



removeAuthzGroup
void removeAuthzGroup(String id) throws AuthzPermissionException(Code)
Remove the AuthzGroup with this id, if it exists (fails quietly if not).
Parameters:
  id - The AuthzGroup id.
exception:
  AuthzPermissionException - if the current user does not have permission to remove this AthzGroup.



save
void save(AuthzGroup azGroup) throws GroupNotDefinedException, AuthzPermissionException(Code)
Save the changes made to the AuthzGroup. The AuthzGroup must already exist, and the user must have permission to update.
Parameters:
  azGroup - The AuthzGroup to save.
exception:
  GroupNotDefinedException - if the AuthzGroup id is not defined.
exception:
  AuthzPermissionException - if the current user does not have permission to update the AuthzGroup.



unjoinGroup
void unjoinGroup(String authzGroupId) throws GroupNotDefinedException, AuthzPermissionException(Code)
Cause the current user to unjoin the given AuthzGroup, using SECURE_UPDATE_OWN_AUTHZ_GROUP security.
Parameters:
  authzGroupId - the id of the AuthzGroup.
throws:
  GroupNotDefinedException - if the authzGroupId or role are not defined.
throws:
  AuthzPermissionException - if the current user does not have permission to unjoin this site.



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