Java Doc for AuthzGroup.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.AuthzGroup

All known Subclasses:   org.sakaiproject.authz.impl.BaseAuthzGroup,
AuthzGroup
public interface AuthzGroup extends Edit,Comparable,Serializable(Code)

AuthzGroup is a authorization group; a group of users, each with a role, and a set of permissions of functions made to each role.

AuthzGroups can related to Entities in Sakai; The entity reference forms the AuthzGroup id.

Special AuthzGroups not related to an entity have ids that begin with a "!".





Method Summary
 voidaddMember(String userId, String roleId, boolean active, boolean provided)
     Add a member to the AuthzGroup.
 RoleaddRole(String id)
     Create a new Role within this AuthzGroup.
Parameters:
  id - The role id.
 RoleaddRole(String id, Role other)
     Create a new Role within this AuthzGroup, as a copy of this other role
Parameters:
  id - The role id.
Parameters:
  other - The role to copy.
 UsergetCreatedBy()
    
 TimegetCreatedTime()
    
 StringgetDescription()
    
public  StringgetMaintainRole()
     Access the name of the role to use for giving a user membership with "maintain" access.
public  MembergetMember(String userId)
     Access the user's membership record for this AuthzGroup; the role, and status flags.
Parameters:
  userId - The user id.
public  SetgetMembers()
     Access all Membership records defined for this AuthzGroup.
 UsergetModifiedBy()
    
 TimegetModifiedTime()
    
public  StringgetProviderGroupId()
     Access the group id for the GroupProvider for this AuthzGroup.
public  RolegetRole(String id)
     Access a Role defined in this AuthzGroup.
Parameters:
  id - The role id.
public  SetgetRoles()
     Access all Roles defined for this AuthzGroup.
public  SetgetRolesIsAllowed(String function)
     Access all roles that have been granted permission to this function.
Parameters:
  function - The function to check.
public  RolegetUserRole(String userId)
     Access the active role for this user's membership.
Parameters:
  userId - The user id.
public  SetgetUsers()
     Access all users who have active role membership in the AuthzGroup.
public  SetgetUsersHasRole(String role)
     Access all users who have an active role membership with this role.
public  SetgetUsersIsAllowed(String function)
     Access all users who have an active role membership to a role that is allowed this function.
Parameters:
  function - The function to check.
 booleanhasRole(String userId, String role)
     Test if this user has a membership in this AuthzGroup that has this role and is active.
Parameters:
  userId - The user id.
Parameters:
  role - The role name.
 booleanisAllowed(String userId, String function)
     Test if this user is allowed to perform the function in this AuthzGroup.
Parameters:
  userId - The user id.
Parameters:
  function - The function to open.
public  booleanisEmpty()
    
 booleankeepIntersection(AuthzGroup other)
     Adjust membership so that active members are all active in other, and inactive members are all defined in other
Parameters:
  other - The other azg to adjust to.
 voidremoveMember(String userId)
     Remove membership for for this user from the AuthzGroup.
 voidremoveMembers()
     Remove all membership from this AuthzGroup.
 voidremoveRole(String role)
     Remove this Role from this AuthzGroup.
 voidremoveRoles()
     Remove all Roles from this AuthzGroup.
 voidsetMaintainRole(String role)
     Set the role name to use for "maintain" access.
 voidsetProviderGroupId(String id)
     Set the external group id for the GroupProvider for this AuthzGroup (set to null to have none).



Method Detail
addMember
void addMember(String userId, String roleId, boolean active, boolean provided)(Code)
Add a member to the AuthzGroup.
Parameters:
  userId - The user.
Parameters:
  role - The role name.
Parameters:
  active - The active flag.
Parameters:
  provided - If true, from an external provider.



addRole
Role addRole(String id) throws RoleAlreadyDefinedException(Code)
Create a new Role within this AuthzGroup.
Parameters:
  id - The role id. the new Role.
exception:
  IdUsedException - if the id is already a Role in this AuthzGroup.



addRole
Role addRole(String id, Role other) throws RoleAlreadyDefinedException(Code)
Create a new Role within this AuthzGroup, as a copy of this other role
Parameters:
  id - The role id.
Parameters:
  other - The role to copy. the new Role.
exception:
  IdUsedException - if the id is already a Role in this AuthzGroup.



getCreatedBy
User getCreatedBy()(Code)
the user who created this.



getCreatedTime
Time getCreatedTime()(Code)
the time created.



getDescription
String getDescription()(Code)
a description of the item this realm applies to.



getMaintainRole
public String getMaintainRole()(Code)
Access the name of the role to use for giving a user membership with "maintain" access. The name of the "maintain" role.



getMember
public Member getMember(String userId)(Code)
Access the user's membership record for this AuthzGroup; the role, and status flags.
Parameters:
  userId - The user id. The Membership record for the user in this AuthzGroup, or null if the use is not a member.



getMembers
public Set getMembers()(Code)
Access all Membership records defined for this AuthzGroup. The set of Membership records (Membership) defined for this AuthzGroup.



getModifiedBy
User getModifiedBy()(Code)
the user who last modified this.



getModifiedTime
Time getModifiedTime()(Code)
the time last modified.



getProviderGroupId
public String getProviderGroupId()(Code)
Access the group id for the GroupProvider for this AuthzGroup. The the group id for the GroupProvider for this AuthzGroup, or null if none defined.



getRole
public Role getRole(String id)(Code)
Access a Role defined in this AuthzGroup.
Parameters:
  id - The role id. The Role, if found, or null, if not.



getRoles
public Set getRoles()(Code)
Access all Roles defined for this AuthzGroup. The set of roles (Role) defined for this AuthzGroup.



getRolesIsAllowed
public Set getRolesIsAllowed(String function)(Code)
Access all roles that have been granted permission to this function.
Parameters:
  function - The function to check. The Set of role names (String) that have been granted permission to this function.



getUserRole
public Role getUserRole(String userId)(Code)
Access the active role for this user's membership.
Parameters:
  userId - The user id. The Role for this user's membership, or null if the user has no active membership.



getUsers
public Set getUsers()(Code)
Access all users who have active role membership in the AuthzGroup. The Set of users ids (String) who have active role membership in the AuthzGroup.



getUsersHasRole
public Set getUsersHasRole(String role)(Code)
Access all users who have an active role membership with this role. The Set of user ids (String) who have an active role membership with this role.



getUsersIsAllowed
public Set getUsersIsAllowed(String function)(Code)
Access all users who have an active role membership to a role that is allowed this function.
Parameters:
  function - The function to check. The Set of user ids (String) who have an active role membership to a role that is allowed this function.



hasRole
boolean hasRole(String userId, String role)(Code)
Test if this user has a membership in this AuthzGroup that has this role and is active.
Parameters:
  userId - The user id.
Parameters:
  role - The role name. true if the User has has a membership in this AuthzGroup that has this role and is active.



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



isEmpty
public boolean isEmpty()(Code)
Is this AuthzGroup empty of any roles or membership? true if the AuthzGroup is empty, false if not.



keepIntersection
boolean keepIntersection(AuthzGroup other)(Code)
Adjust membership so that active members are all active in other, and inactive members are all defined in other
Parameters:
  other - The other azg to adjust to. true if any changes were made, false if not.



removeMember
void removeMember(String userId)(Code)
Remove membership for for this user from the AuthzGroup.
Parameters:
  userId - The user.



removeMembers
void removeMembers()(Code)
Remove all membership from this AuthzGroup.



removeRole
void removeRole(String role)(Code)
Remove this Role from this AuthzGroup. Any grants of this Role in the AuthzGroup are also removed.
Parameters:
  role - The role name.



removeRoles
void removeRoles()(Code)
Remove all Roles from this AuthzGroup.



setMaintainRole
void setMaintainRole(String role)(Code)
Set the role name to use for "maintain" access.
Parameters:
  role - The name of the "maintain" role.



setProviderGroupId
void setProviderGroupId(String id)(Code)
Set the external group id for the GroupProvider for this AuthzGroup (set to null to have none).
Parameters:
  id - The external group id for the GroupProvider, or null if there is to be none.



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