| 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) $ |
Method Summary | |
public void | GetUsers() | public Group | addGroup(String name, String title) | public Role | addRole(String name) | public void | addSecuredObject(String type, String name, String title) | public void | addUser(String name, String password, String firstName, String lastName, String email) | public void | assignRights(String[] filter, String secObj, String soType, String role, String[] rights) | public void | clean() | public void | hasRight(String user, String password, String securedObject, String type, String right) | public User | login(String name, String password) | public static void | main(String[] args) | public void | printRights(String userName, String secObjectType) | public void | removeGroup(String name) | public void | removeRights(String secObj, String soType, String role, String[] rights) | public void | removeRole(String name) | public void | removeSecuredObject(String type, String name) | public void | removeUser(String name) | public void | setGroupMemberships(String userName, String group) | public void | setRoleAssociation(String role, String group) | protected void | setUp(String driver, String logon, String user, String password) |
GetUsers | public void GetUsers()(Code) | | |
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 - |
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 - |
|
|