Java Doc for WizardAuthorizerImpl.java in  » ERP-CRM-Financial » sakai » org » theospi » portfolio » wizard » 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.theospi.portfolio.wizard 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.theospi.portfolio.wizard.WizardAuthorizerImpl

WizardAuthorizerImpl
public class WizardAuthorizerImpl implements ApplicationAuthorizer(Code)
These are the permissions and their definitions: View: Can a user complete a wizard (is the wizard owner or can complete the wizard or the tool permits the user to complete) Review: can the user review the wizard definition (check the tool for review) Evaluate: can the user exaluate the wizard definition (check the tool for evaluate) Operate: does the user have view or review or evaluate Create: Can a user create a wizard (permitted by the tool) Edit: can the user change the wizard definition (check the tool for edit) Publish: can the user publish the wizard definition (check the tool for publish) Delete: can the user delete the wizard definition (check the tool for delete) The delete only works on unpublished wizards Copy: can the user copy the wizard definition (check the tool for copy) Delete: can the user delete the wizard definition (check the tool for delete) Edit Wizard Page Guidance: the owner of the wizard can edit guidance of a wizard page View Wizard Page Guidance: loop through each completed wizard page and: does the completed page have evaluate or review or is the owner or the page def has view permission or is the page sequence owned by the current user




Method Summary
public  ListgetFunctions()
    
public  IdManagergetIdManager()
    
public  WizardManagergetWizardManager()
    
public  BooleanisAuthorized(AuthorizationFacade facade, Agent agent, String function, Id id)
     This method will ask the application specific functional authorizer to determine authorization.
protected  BooleanisWizardAuth(AuthorizationFacade facade, Id qualifier, Agent agent, String function)
     This method checks for permission "function" of wizard "qualifier" with the given Agent.
protected  BooleanisWizardAuthForEval(AuthorizationFacade facade, Agent agent, Id id)
    
protected  BooleanisWizardAuthForReview(AuthorizationFacade facade, Agent agent, Id id)
    
protected  BooleanisWizardViewAuth(AuthorizationFacade facade, Agent agent, Id id, boolean allowAnonymous)
    
protected  BooleanisWizardViewAuth(Id wizardId, AuthorizationFacade facade, Agent agent, Id id, boolean allowAnonymous)
     Checks an agents ability to view the given wizard.
public  voidsetFunctions(List functions)
    
public  voidsetIdManager(IdManager idManager)
    
public  voidsetWizardManager(WizardManager wizardManager)
    



Method Detail
getFunctions
public List getFunctions()(Code)



getIdManager
public IdManager getIdManager()(Code)



getWizardManager
public WizardManager getWizardManager()(Code)



isAuthorized
public Boolean isAuthorized(AuthorizationFacade facade, Agent agent, String function, Id id)(Code)
This method will ask the application specific functional authorizer to determine authorization.
Parameters:
  facade - this can be used to do explicit auths if necessary
Parameters:
  agent -
Parameters:
  function -
Parameters:
  id - null if the authorizer has no opinion, true if authorized, false if explicitly not authorized.



isWizardAuth
protected Boolean isWizardAuth(AuthorizationFacade facade, Id qualifier, Agent agent, String function)(Code)
This method checks for permission "function" of wizard "qualifier" with the given Agent.
Parameters:
  facade - AuthorizationFacade
Parameters:
  qualifier - Id -- for this function it's the wizard id
Parameters:
  agent - Agent
Parameters:
  function - String Boolean



isWizardAuthForEval
protected Boolean isWizardAuthForEval(AuthorizationFacade facade, Agent agent, Id id)(Code)



isWizardAuthForReview
protected Boolean isWizardAuthForReview(AuthorizationFacade facade, Agent agent, Id id)(Code)



isWizardViewAuth
protected Boolean isWizardViewAuth(AuthorizationFacade facade, Agent agent, Id id, boolean allowAnonymous)(Code)
THis handles the authority for the view permission on a wizard
Parameters:
  facade -
Parameters:
  agent -
Parameters:
  id - -- for this function it's the wizard id
Parameters:
  allowAnonymous -



isWizardViewAuth
protected Boolean isWizardViewAuth(Id wizardId, AuthorizationFacade facade, Agent agent, Id id, boolean allowAnonymous)(Code)
Checks an agents ability to view the given wizard. It also check the wizard's tool for permission to access the wizard as view is a tool wide permission. Anonymous is not recognized in this function yet
Parameters:
  wizardId - Id of the wizard we are checkingWizard
Parameters:
  facade - AuthorizationFacade
Parameters:
  agent - Agent
Parameters:
  id - Id
Parameters:
  allowAnonymous - boolean Boolean



setFunctions
public void setFunctions(List functions)(Code)



setIdManager
public void setIdManager(IdManager idManager)(Code)



setWizardManager
public void setWizardManager(WizardManager wizardManager)(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.