Java Doc for DRMAccess.java in  » GIS » deegree » org » deegree » tools » security » 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 » GIS » deegree » org.deegree.tools.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.deegree.tools.security.DRMAccess

DRMAccess
public class DRMAccess (Code)
tool class to handle deegree sercurity administration using commandline calls:
 general definitions:
 -driver JDBC driver (e.g. sun.jdbc.odbc.JdbcOdbcDriver for ODBC databases)
 -logon jdbc:odbc:security logon to database (e.g. ODBC name)
 -user user name (optional)
 -password users password (optional)
 possible actions:
 -action (addUser, addGroup, addRole, addUserToGroup, assignRoleWithGroup, addSecuredObject, assignRights, clean)
 defines the action be performed. possible actions are listed inn brackets.
 action = addUser -> adds a user to the right management
 -name users login name
 -password users password
 -firstName the first name of the user
 -lastName the last name of the user
 -emal email address of the user
 action = removeUser -> removes a user to the right management
 -name users login name
 action = addGroup -> adds a group to the right management system
 -name name of the group
 -title title of the group
 action = removeGroup -> removes a group to the right management
 -name groups login name
 action = addRole -> adds a role to the right management system
 -name name of the role
 action = addUserToGroup -> adds a user to a named group
 -userName name of the user
 -groupName name of the group
 action = addUserToGroup -> assignes a group with a role
 -groupName name of the group
 -roleName name of the role
 action = addSecuredObject -> adds a new secured object to the right management system
 -soType type of the secured object (e.g. Layer, FeatureType, Coverage ...)
 -soName name of the secured object
 -soTitle title of the secured object
 action = removeSecuredObject -> removes a new secured object from the right management system
 -soType type of the secured object (e.g. Layer, FeatureType, Coverage ...)
 -soName name of the secured object
 action = assignRights -> assigns rights on a named secured object to a role
 -constraints comma seperated list of absolut pathes to filter encoding files
 -rights comma seperated list of rights to assign. the number of rights must be equest to the number constraints
 -soName name of the secured object
 -soType type of the secured object
 -role name of the role the rights shall be given to
 action = removeRights removes rights on a named secured object to a role
 -rights comma seperated list of rights to remove.
 -soName name of the secured object
 -soType type of the secured object
 -role name of the role the rights shall be given to
 action = clean -> cleans the complete right management system database by deleting all entries!
 

version:
   $Revision: 10529 $
author:
   Andreas Poth
author:
   last edited by: $Author: aschmitz $
version:
   $Revision: 10529 $, $Date: 2008-03-10 01:24:04 -0700 (Mon, 10 Mar 2008) $



Constructor Summary
public  DRMAccess()
    

Method Summary
public  voidGetUsers()
    
public  GroupaddGroup(String name, String title)
    
public  RoleaddRole(String name)
    
public  voidaddSecuredObject(String type, String name, String title)
    
public  voidaddUser(String name, String password, String firstName, String lastName, String email)
    
public  voidassignRights(String[] filter, String secObj, String soType, String role, String[] rights)
    
public  voidclean()
    
public  voidhasRight(String user, String password, String securedObject, String type, String right)
    
public  Userlogin(String name, String password)
    
public static  voidmain(String[] args)
    
public  voidprintRights(String userName, String secObjectType)
    
public  voidremoveGroup(String name)
    
public  voidremoveRights(String secObj, String soType, String role, String[] rights)
    
public  voidremoveRole(String name)
    
public  voidremoveSecuredObject(String type, String name)
    
public  voidremoveUser(String name)
    
public  voidsetGroupMemberships(String userName, String group)
    
public  voidsetRoleAssociation(String role, String group)
    
protected  voidsetUp(String driver, String logon, String user, String password)
    


Constructor Detail
DRMAccess
public DRMAccess() throws IOException(Code)

throws:
  IOException -




Method Detail
GetUsers
public void GetUsers()(Code)



addGroup
public Group addGroup(String name, String title)(Code)

Parameters:
  name -
Parameters:
  title - the group



addRole
public Role addRole(String name)(Code)

Parameters:
  name - the role



addSecuredObject
public void addSecuredObject(String type, String name, String title)(Code)

Parameters:
  type -
Parameters:
  name -
Parameters:
  title -



addUser
public void addUser(String name, String password, String firstName, String lastName, String email)(Code)

Parameters:
  name -
Parameters:
  password -
Parameters:
  firstName -
Parameters:
  lastName -
Parameters:
  email -



assignRights
public void assignRights(String[] filter, String secObj, String soType, String role, String[] rights)(Code)

Parameters:
  filter -
Parameters:
  secObj -
Parameters:
  soType -
Parameters:
  role -
Parameters:
  rights -



clean
public void clean()(Code)



hasRight
public void hasRight(String user, String password, String securedObject, String type, String right)(Code)

Parameters:
  user -
Parameters:
  password -
Parameters:
  securedObject -
Parameters:
  type -
Parameters:
  right -



login
public User login(String name, String password)(Code)

Parameters:
  name -
Parameters:
  password - the user



main
public static void main(String[] args)(Code)

Parameters:
  args -



printRights
public void printRights(String userName, String secObjectType)(Code)

Parameters:
  userName -
Parameters:
  secObjectType -



removeGroup
public void removeGroup(String name)(Code)

Parameters:
  name -



removeRights
public void removeRights(String secObj, String soType, String role, String[] rights)(Code)

Parameters:
  secObj -
Parameters:
  soType -
Parameters:
  role -
Parameters:
  rights -



removeRole
public void removeRole(String name)(Code)

Parameters:
  name -



removeSecuredObject
public void removeSecuredObject(String type, String name)(Code)

Parameters:
  type -
Parameters:
  name -



removeUser
public void removeUser(String name)(Code)

Parameters:
  name -



setGroupMemberships
public void setGroupMemberships(String userName, String group)(Code)

Parameters:
  userName -
Parameters:
  group -



setRoleAssociation
public void setRoleAssociation(String role, String group)(Code)

Parameters:
  role -
Parameters:
  group -



setUp
protected void setUp(String driver, String logon, String user, String password) throws Exception(Code)

Parameters:
  driver -
Parameters:
  logon -
Parameters:
  user -
Parameters:
  password -
throws:
  Exception -



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.