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


java.lang.Object
   org.sakaiproject.authz.impl.BaseAuthzGroupService

All known Subclasses:   org.sakaiproject.authz.impl.DbAuthzGroupService,
BaseAuthzGroupService
abstract public class BaseAuthzGroupService implements AuthzGroupService,StorageUser(Code)

BaseAuthzGroupService is a Sakai azGroup service implementation.

To support the public view feature, an AuthzGroup named TEMPLATE_PUBVIEW must exist, with a role named ROLE_PUBVIEW - all the abilities in this role become the public view abilities for any resource.


Inner Class :protected interface Storage
Inner Class :public class ProviderMap implements Map

Field Summary
protected  GroupProviderm_provider
     A provider of additional Abilities for a userId.
protected  Stringm_relativeAccessPoint
     The initial portion of a relative access point URL.
protected  Storagem_storage
     Storage manager for this service.


Method Summary
public  AuthzGroupaddAuthzGroup(String id)
    
public  AuthzGroupaddAuthzGroup(String id, AuthzGroup other, String userId)
    
protected  voidaddLiveProperties(BaseAuthzGroup azGroup)
     Create the live properties for the azGroup.
protected  voidaddLiveUpdateProperties(BaseAuthzGroup azGroup)
     Update the live properties for an AuthzGroup for when modified.
public  booleanallowAdd(String id)
    
public  booleanallowJoinGroup(String authzGroupId)
    
public  booleanallowRemove(String id)
    
public  booleanallowUnjoinGroup(String authzGroupId)
    
public  booleanallowUpdate(String id)
    
public  Stringarchive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
    
protected  StringauthzGroupId(String ref)
     Access the azGroup id extracted from an AuthzGroup reference.
Parameters:
  ref - The azGroup reference string.
public  StringauthzGroupReference(String id)
    
protected  voidcompleteSave(AuthzGroup azGroup)
     Complete the saving of the group, once id and security checks have been cleared.
public  intcountAuthzGroups(String criteria)
    
public  voiddestroy()
     Returns to uninitialized state.
abstract protected  EntityManagerentityManager()
    
abstract protected  EventTrackingServiceeventTrackingService()
    
abstract protected  FunctionManagerfunctionManager()
    
protected  StringgetAccessPoint(boolean relative)
     Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e.
public  SetgetAllowedFunctions(String role, Collection azGroups)
    
public  AuthzGroupgetAuthzGroup(String id)
    
public  SetgetAuthzGroupIds(String providerId)
    
public  ListgetAuthzGroups(String criteria, PagingPosition page)
    
public  SetgetAuthzGroupsIsAllowed(String userId, String function, Collection azGroups)
    
public  TimegetDate(Entity r)
     Access the resource date.
Parameters:
  r - The resource.
public  EntitygetEntity(Reference ref)
    
public  CollectiongetEntityAuthzGroups(Reference ref, String userId)
    
public  StringgetEntityDescription(Reference ref)
    
public  ResourcePropertiesgetEntityResourceProperties(Reference ref)
    
public  StringgetEntityUrl(Reference ref)
    
public  HttpAccessgetHttpAccess()
    
public  StringgetLabel()
    
public  StringgetOwnerId(Entity r)
     Access the resource owner user id.
Parameters:
  r - The resource.
public  SetgetProviderIds(String authzGroupId)
    
public  StringgetUserRole(String userId, String azGroupId)
    
public  SetgetUsersIsAllowed(String function, Collection azGroups)
    
public  MapgetUsersRole(Collection userIds, String azGroupId)
    
public  voidinit()
     Final initialization, once all dependencies are set.
public  booleanisAllowed(String user, String function, String azGroupId)
    
public  booleanisAllowed(String user, String function, Collection azGroups)
    
public  booleanisDraft(Entity r)
     Check if this resource is in draft mode.
Parameters:
  r - The resource.
public  voidjoinGroup(String authzGroupId, String roleId)
    
public  Stringmerge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
    
public  AuthzGroupnewAuthzGroup(String id, AuthzGroup other, String userId)
    
public  EntitynewContainer(String ref)
     Construct a new continer given just an id.
Parameters:
  id - The id for the new object.
public  EntitynewContainer(Element element)
     Construct a new container resource, from an XML element.
Parameters:
  element - The XML.
public  EntitynewContainer(Entity other)
     Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy.
public  EditnewContainerEdit(String ref)
     Construct a new continer given just an id.
Parameters:
  id - The id for the new object.
public  EditnewContainerEdit(Element element)
     Construct a new container resource, from an XML element.
Parameters:
  element - The XML.
public  EditnewContainerEdit(Entity other)
     Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy.
public  EntitynewResource(Entity container, String id, Object[] others)
     Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields.
public  EntitynewResource(Entity container, Element element)
     Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML.
public  EntitynewResource(Entity container, Entity other)
     Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource.
public  EditnewResourceEdit(Entity container, String id, Object[] others)
     Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields.
public  EditnewResourceEdit(Entity container, Element element)
     Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML.
public  EditnewResourceEdit(Entity container, Entity other)
     Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource.
abstract protected  StoragenewStorage()
     Construct storage for this service.
public  booleanparseEntityReference(String reference, Reference ref)
    
public  voidrefreshUser(String userId)
    
public  voidremoveAuthzGroup(AuthzGroup azGroup)
    
public  voidremoveAuthzGroup(String azGroupId)
    
protected  voidremoveSiteSecurity(AuthzGroup azGroup)
     Update the site security when an AuthzGroup is deleted, if it is a site AuthzGroup.
public  voidsave(AuthzGroup azGroup)
    
abstract protected  SecurityServicesecurityService()
    
abstract protected  ServerConfigurationServiceserverConfigurationService()
    
abstract protected  SessionManagersessionManager()
    
public  voidsetProvider(GroupProvider provider)
     Configuration: set the azGroup provider helper service.
public  Object[]storageFields(Entity r)
     Collect the fields that need to be stored outside the XML (for the resource).
abstract protected  TimeServicetimeService()
    
public  voidunjoinGroup(String authzGroupId)
    
protected  voidunlock(String lock, String resource)
     Check security permission.
protected  booleanunlockCheck(String lock, String resource)
     Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
protected  voidupdateSiteSecurity(AuthzGroup azGroup)
     Update the site security based on the values in the AuthzGroup, if it is a site AuthzGroup.
abstract protected  UserDirectoryServiceuserDirectoryService()
    
public  booleanwillArchiveMerge()
    

Field Detail
m_provider
protected GroupProvider m_provider(Code)
A provider of additional Abilities for a userId.



m_relativeAccessPoint
protected String m_relativeAccessPoint(Code)
The initial portion of a relative access point URL.



m_storage
protected Storage m_storage(Code)
Storage manager for this service.





Method Detail
addAuthzGroup
public AuthzGroup addAuthzGroup(String id) throws GroupIdInvalidException, GroupAlreadyDefinedException, AuthzPermissionException(Code)



addAuthzGroup
public AuthzGroup addAuthzGroup(String id, AuthzGroup other, String userId) throws GroupIdInvalidException, GroupAlreadyDefinedException, AuthzPermissionException(Code)



addLiveProperties
protected void addLiveProperties(BaseAuthzGroup azGroup)(Code)
Create the live properties for the azGroup.



addLiveUpdateProperties
protected void addLiveUpdateProperties(BaseAuthzGroup azGroup)(Code)
Update the live properties for an AuthzGroup for when modified.



allowAdd
public boolean allowAdd(String id)(Code)



allowJoinGroup
public boolean allowJoinGroup(String authzGroupId)(Code)



allowRemove
public boolean allowRemove(String id)(Code)



allowUnjoinGroup
public boolean allowUnjoinGroup(String authzGroupId)(Code)



allowUpdate
public boolean allowUpdate(String id)(Code)



archive
public String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)(Code)



authzGroupId
protected String authzGroupId(String ref)(Code)
Access the azGroup id extracted from an AuthzGroup reference.
Parameters:
  ref - The azGroup reference string. The the azGroup id extracted from an AuthzGroup reference.



authzGroupReference
public String authzGroupReference(String id)(Code)



completeSave
protected void completeSave(AuthzGroup azGroup)(Code)
Complete the saving of the group, once id and security checks have been cleared.
Parameters:
  azGroup -



countAuthzGroups
public int countAuthzGroups(String criteria)(Code)



destroy
public void destroy()(Code)
Returns to uninitialized state.



entityManager
abstract protected EntityManager entityManager()(Code)
the EntityManager collaborator.



eventTrackingService
abstract protected EventTrackingService eventTrackingService()(Code)
the EventTrackingService collaborator.



functionManager
abstract protected FunctionManager functionManager()(Code)
the FunctionManager collaborator.



getAccessPoint
protected String getAccessPoint(boolean relative)(Code)
Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e. starting with /content) the partial URL that forms the root of resource URLs.



getAllowedFunctions
public Set getAllowedFunctions(String role, Collection azGroups)(Code)



getAuthzGroup
public AuthzGroup getAuthzGroup(String id) throws GroupNotDefinedException(Code)



getAuthzGroupIds
public Set getAuthzGroupIds(String providerId)(Code)



getAuthzGroups
public List getAuthzGroups(String criteria, PagingPosition page)(Code)



getAuthzGroupsIsAllowed
public Set getAuthzGroupsIsAllowed(String userId, String function, Collection azGroups)(Code)



getDate
public Time getDate(Entity r)(Code)
Access the resource date.
Parameters:
  r - The resource. The resource date.



getEntity
public Entity getEntity(Reference ref)(Code)



getEntityAuthzGroups
public Collection getEntityAuthzGroups(Reference ref, String userId)(Code)



getEntityDescription
public String getEntityDescription(Reference ref)(Code)



getEntityResourceProperties
public ResourceProperties getEntityResourceProperties(Reference ref)(Code)



getEntityUrl
public String getEntityUrl(Reference ref)(Code)



getHttpAccess
public HttpAccess getHttpAccess()(Code)



getLabel
public String getLabel()(Code)



getOwnerId
public String getOwnerId(Entity r)(Code)
Access the resource owner user id.
Parameters:
  r - The resource. The resource owner user id.



getProviderIds
public Set getProviderIds(String authzGroupId)(Code)



getUserRole
public String getUserRole(String userId, String azGroupId)(Code)



getUsersIsAllowed
public Set getUsersIsAllowed(String function, Collection azGroups)(Code)



getUsersRole
public Map getUsersRole(Collection userIds, String azGroupId)(Code)



init
public void init()(Code)
Final initialization, once all dependencies are set.



isAllowed
public boolean isAllowed(String user, String function, String azGroupId)(Code)



isAllowed
public boolean isAllowed(String user, String function, Collection azGroups)(Code)



isDraft
public boolean isDraft(Entity r)(Code)
Check if this resource is in draft mode.
Parameters:
  r - The resource. true if the resource is in draft mode, false if not.



joinGroup
public void joinGroup(String authzGroupId, String roleId) throws GroupNotDefinedException, AuthzPermissionException(Code)



merge
public String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)(Code)



newAuthzGroup
public AuthzGroup newAuthzGroup(String id, AuthzGroup other, String userId) throws GroupAlreadyDefinedException(Code)



newContainer
public Entity newContainer(String ref)(Code)
Construct a new continer given just an id.
Parameters:
  id - The id for the new object. The new containe Resource.



newContainer
public Entity newContainer(Element element)(Code)
Construct a new container resource, from an XML element.
Parameters:
  element - The XML. The new container resource.



newContainer
public Entity newContainer(Entity other)(Code)
Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy. The new container resource.



newContainerEdit
public Edit newContainerEdit(String ref)(Code)
Construct a new continer given just an id.
Parameters:
  id - The id for the new object. The new containe Resource.



newContainerEdit
public Edit newContainerEdit(Element element)(Code)
Construct a new container resource, from an XML element.
Parameters:
  element - The XML. The new container resource.



newContainerEdit
public Edit newContainerEdit(Entity other)(Code)
Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy. The new container resource.



newResource
public Entity newResource(Entity container, String id, Object[] others)(Code)
Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields. The new resource.



newResource
public Entity newResource(Entity container, Element element)(Code)
Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML. The new resource from the XML.



newResource
public Entity newResource(Entity container, Entity other)(Code)
Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource. The new resource as a copy of the other.



newResourceEdit
public Edit newResourceEdit(Entity container, String id, Object[] others)(Code)
Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields. The new resource.



newResourceEdit
public Edit newResourceEdit(Entity container, Element element)(Code)
Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML. The new resource from the XML.



newResourceEdit
public Edit newResourceEdit(Entity container, Entity other)(Code)
Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource. The new resource as a copy of the other.



newStorage
abstract protected Storage newStorage()(Code)
Construct storage for this service.



parseEntityReference
public boolean parseEntityReference(String reference, Reference ref)(Code)



refreshUser
public void refreshUser(String userId)(Code)



removeAuthzGroup
public void removeAuthzGroup(AuthzGroup azGroup) throws AuthzPermissionException(Code)



removeAuthzGroup
public void removeAuthzGroup(String azGroupId) throws AuthzPermissionException(Code)



removeSiteSecurity
protected void removeSiteSecurity(AuthzGroup azGroup)(Code)
Update the site security when an AuthzGroup is deleted, if it is a site AuthzGroup.
Parameters:
  azGroup - The AuthzGroup.



save
public void save(AuthzGroup azGroup) throws GroupNotDefinedException, AuthzPermissionException(Code)



securityService
abstract protected SecurityService securityService()(Code)
the SecurityService collaborator.



serverConfigurationService
abstract protected ServerConfigurationService serverConfigurationService()(Code)
the ServerConfigurationService collaborator.



sessionManager
abstract protected SessionManager sessionManager()(Code)
the SessionManager collaborator.



setProvider
public void setProvider(GroupProvider provider)(Code)
Configuration: set the azGroup provider helper service.
Parameters:
  provider - the azGroup provider helper service.



storageFields
public Object[] storageFields(Entity r)(Code)
Collect the fields that need to be stored outside the XML (for the resource). An array of field values to store in the record outside the XML (for the resource).



timeService
abstract protected TimeService timeService()(Code)
the TimeService collaborator.



unjoinGroup
public void unjoinGroup(String authzGroupId) throws GroupNotDefinedException, AuthzPermissionException(Code)



unlock
protected void unlock(String lock, String resource) throws AuthzPermissionException(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  PermissionException - Thrown if the azGroup does not have access



unlockCheck
protected boolean unlockCheck(String lock, String resource)(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved. true if allowd, false if not



updateSiteSecurity
protected void updateSiteSecurity(AuthzGroup azGroup)(Code)
Update the site security based on the values in the AuthzGroup, if it is a site AuthzGroup.
Parameters:
  azGroup - The AuthzGroup.



userDirectoryService
abstract protected UserDirectoryService userDirectoryService()(Code)
the ServerConfigurationService collaborator.



willArchiveMerge
public boolean willArchiveMerge()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.