|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.security.drm.SQLRegistry
public final class SQLRegistry
This is an implementation of a Registry using an SQL-Database (via JDBC) as backend.
| Constructor Summary | |
|---|---|
SQLRegistry()
|
|
| Method Summary | |
|---|---|
void |
abortTransaction(SecurityTransaction transaction)
Signals the SQLRegistry that the current transaction shall be aborted. |
void |
beginTransaction(SecurityTransaction transaction)
Signals the SQLRegistry that a new transaction begins. |
void |
clean(SecurityTransaction transaction)
Deletes all data from the Registry and sets the default objects (SEC_ADMIN user, role and group) and
standard rights and privileges. |
void |
commitTransaction(SecurityTransaction transaction)
Signals the SQLRegistry that the current transaction ends, i.e. the changes made by the transaction
are made persistent. |
void |
deregisterGroup(SecurityTransaction transaction,
Group group)
Removes an existing Group from the Registry (including its relations). |
void |
deregisterPrivilege(SecurityTransaction transaction,
Privilege privilege)
Removes an existing Privilege from the Registry (including its relations). |
void |
deregisterRightType(SecurityTransaction transaction,
RightType type)
Removes an existing RightType from the Registry (including its relations). |
void |
deregisterRole(SecurityTransaction transaction,
Role role)
Removes an existing Role from the Registry (including its relations). |
void |
deregisterSecuredObject(SecurityTransaction transaction,
SecuredObject object)
Removes an existing SecuredObject from the Registry (including its associations). |
void |
deregisterService(SecurityTransaction transaction,
Service service)
|
void |
deregisterUser(SecurityTransaction transaction,
User user)
Removes an existing User |
void |
editService(SecurityTransaction transaction,
Service service,
java.lang.String newTitle,
java.lang.String newAddress)
|
Group[] |
getAllGroups(SecurityAccess securityAccess)
Retrieves all Group s from the Registry. |
Role[] |
getAllRoles(SecurityAccess securityAccess)
Retrieves all Role s from the Registry, except those that are only used internally
(these have namespaces that begin with $). |
SecuredObject[] |
getAllSecuredObjects(SecurityAccess securityAccess,
java.lang.String type)
Retrieves all SecuredObject s with the given type from the Registry. |
java.util.LinkedList<Service> |
getAllServices(SecurityAccess access)
|
User[] |
getAllUsers(SecurityAccess securityAccess)
Retrieves all User s from the Registry. |
Group |
getGroupById(SecurityAccess securityAccess,
int id)
Retrieves a Group from the Registry. |
Group |
getGroupByName(SecurityAccess securityAccess,
java.lang.String name)
Retrieves a Group from the Registry. |
Group[] |
getGroupsForGroup(SecurityAccess securityAccess,
Group group)
Retrieves all Group s from the Registry that the given Group is a DIRECT
member (i.e. not via inheritance) of. |
Group[] |
getGroupsForUser(SecurityAccess securityAccess,
User user)
Retrieves all Group s from the Registry that the given User is a DIRECT
(i.e. not via inheritance) member of. |
Group[] |
getGroupsInGroup(SecurityAccess securityAccess,
Group group)
Retrieves all Groups s from the Registry that are members of another Group
DIRECTLY (i.e. not via inheritance). |
Group[] |
getGroupsWithRole(SecurityAccess securityAccess,
Role role)
Retrieves all Group s from the Registry that are associated with a given
Role DIRECTLY (i.e. not via inheritance). |
Privilege |
getPrivilegeByName(SecurityAccess securityAccess,
java.lang.String name)
Retrieves a Privilege from the Registry. |
Privilege[] |
getPrivilegesForRole(SecurityAccess securityAccess,
Role role)
Retrieves all Privileges s from the Registry that are associated DIRECTLY (i.e. not via
group memberships) with a given Role. |
Right[] |
getRights(SecurityAccess securityAccess,
SecurableObject object,
Role role)
Retrieves the Rights from the Registry that are associated with a given
Role and a SecurableObject. |
RightType |
getRightTypeByName(SecurityAccess securityAccess,
java.lang.String name)
Retrieves a Right from the Registry. |
Role |
getRoleById(SecurityAccess securityAccess,
int id)
Retrieves a Role from the Registry. |
Role |
getRoleByName(SecurityAccess securityAccess,
java.lang.String name)
Retrieves a Role from the Registry. |
Role[] |
getRolesByNS(SecurityAccess securityAccess,
java.lang.String ns)
Retrieves all Roles s from the Registry that have a certain namespace. |
Role[] |
getRolesForGroup(SecurityAccess securityAccess,
Group group)
Retrieves all Role s from the Registry that are associated with a given
Group DIRECTLY (i.e. not via inheritance). |
Role[] |
getRolesForUser(SecurityAccess securityAccess,
User user)
Retrieves all Role s from the Registry that are associated with a given
User DIRECTLY (i.e. not via group memberships). |
java.util.LinkedList<Service> |
getRolesServices(SecurityAccess access,
Role role)
|
SecuredObject |
getSecuredObjectById(SecurityAccess securityAccess,
int id)
Retrieves a SecuredObject from the Registry. |
SecuredObject |
getSecuredObjectByName(SecurityAccess securityAccess,
java.lang.String name,
java.lang.String type)
Retrieves a SecuredObject from the Registry. |
SecuredObject[] |
getSecuredObjectsByNS(SecurityAccess securityAccess,
java.lang.String ns,
java.lang.String type)
Retrieves all SecuredObject s from the Registry that have a certain namespace. |
Service |
getServiceByAddress(SecurityAccess access,
java.lang.String address)
|
Service |
getServiceById(SecurityAccess access,
int id)
|
User |
getUserById(SecurityAccess securityAccess,
int id)
Retrieves a User from the Registry. |
User |
getUserByName(SecurityAccess securityAccess,
java.lang.String name)
Retrieves a User from the Registry. |
User[] |
getUsersInGroup(SecurityAccess securityAccess,
Group group)
Retrieves all User s from the Registry that belong to the given Group
DIRECTLY (i.e. not via inheritance). |
User[] |
getUsersWithRole(SecurityAccess securityAccess,
Role role)
Retrieves all Users s from the Registry that are associated DIRECTLY (i.e. not via
group memberships) with a given Role. |
void |
initialize(java.util.Properties properties)
Initializes the SQLRegistry -instance according to the contents of the submitted
Properties. |
Group |
registerGroup(SecurityTransaction transaction,
java.lang.String name,
java.lang.String title)
Adds a new group account to the Registry. |
Privilege |
registerPrivilege(SecurityTransaction transaction,
java.lang.String name)
Adds a new Privilege to the Registry. |
RightType |
registerRightType(SecurityTransaction transaction,
java.lang.String name)
Adds a new Right to the Registry. |
Role |
registerRole(SecurityTransaction transaction,
java.lang.String name)
Adds a new role to the Registry. |
SecuredObject |
registerSecuredObject(SecurityTransaction transaction,
java.lang.String type,
java.lang.String name,
java.lang.String title)
Adds a new SecuredObject to the Registry. |
Service |
registerService(SecurityTransaction transaction,
java.lang.String address,
java.lang.String title,
java.util.List<StringPair> objects,
java.lang.String type)
|
User |
registerUser(SecurityTransaction transaction,
java.lang.String name,
java.lang.String password,
java.lang.String lastName,
java.lang.String firstName,
java.lang.String emailAddress)
Adds a new user account to the Registry. |
void |
renameObject(SecurityTransaction transaction,
Service service,
java.lang.String oldName,
java.lang.String newName)
|
void |
setGroupsForGroup(SecurityTransaction transaction,
Group group,
Group[] groups)
Sets the Group s that a given Group is member of DIRECTLY (i.e. not via inheritance). |
void |
setGroupsForUser(SecurityTransaction transaction,
User user,
Group[] groups)
Sets the Group s that a given User is member of DIRECTLY (i.e. not via inheritance). |
void |
setGroupsInGroup(SecurityTransaction transaction,
Group group,
Group[] groups)
Sets the Groups s that are members of a given Group DIRECTLY (i.e. not via
inheritance). |
void |
setGroupsWithRole(SecurityTransaction transaction,
Role role,
Group[] groups)
Sets the Group s that a given Role is associated to DIRECTLY (i.e. not via
inheritance). |
void |
setPrivilegesForRole(SecurityTransaction transaction,
Role role,
Privilege[] privileges)
Sets all Privilege s that are associated with a given Role. |
void |
setRights(SecurityTransaction transaction,
SecurableObject[] objects,
Role role,
Right right)
Sets one Right to be associated with a given Role and all given
SecurableObjects. |
void |
setRights(SecurityTransaction transaction,
SecurableObject object,
Role role,
Right[] rights)
Sets the Rights to be associated with a given Role and SecurableObject. |
void |
setRolesForGroup(SecurityTransaction transaction,
Group group,
Role[] roles)
Sets the Role s that a given Group is associated to directly (i.e. not via
inheritance). |
void |
setRolesForUser(SecurityTransaction transaction,
User user,
Role[] roles)
Sets the Role s that a given User is directly associated to (i.e. not via
Group membership). |
void |
setServicesRights(SecurityTransaction transaction,
java.util.Collection<java.lang.Integer> services,
Role role)
Sets the services an user has access to. |
void |
setUsersInGroup(SecurityTransaction transaction,
Group group,
User[] users)
Sets the User s that are members of a given Group DIRECTLY (i.e. not via inheritance). |
void |
setUsersWithRole(SecurityTransaction transaction,
Role role,
User[] users)
Sets the User s that a given Role is associated to DIRECTLY (i.e. not via
Group membership). |
void |
updateService(SecurityTransaction transaction,
Service oldService,
Service newService)
|
void |
updateUser(SecurityTransaction transaction,
User user)
Updates the metadata (name, email, etc.) of a User in the Registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLRegistry()
| Method Detail |
|---|
public void clean(SecurityTransaction transaction)
throws GeneralSecurityException
SecurityRegistryRegistry and sets the default objects (SEC_ADMIN user, role and group) and
standard rights and privileges.
clean in interface SecurityRegistryGeneralSecurityException
public User registerUser(SecurityTransaction transaction,
java.lang.String name,
java.lang.String password,
java.lang.String lastName,
java.lang.String firstName,
java.lang.String emailAddress)
throws GeneralSecurityException
Registry.
registerUser in interface SecurityRegistrytransaction - name -
GeneralSecurityException - this is a DuplicateException if the group already existed
public void deregisterUser(SecurityTransaction transaction,
User user)
throws GeneralSecurityException
User from the Registry (including its relations).
- Specified by:
deregisterUser in interface SecurityRegistry
- Parameters:
transaction - user -
- Throws:
GeneralSecurityException
public void updateUser(SecurityTransaction transaction,
User user)
throws GeneralSecurityException
User in the Registry.
updateUser in interface SecurityRegistryGeneralSecurityException - this is a DuplicateException if a user with the new name already existed
public User getUserByName(SecurityAccess securityAccess,
java.lang.String name)
throws GeneralSecurityException
User from the Registry.
getUserByName in interface SecurityRegistrysecurityAccess - name -
GeneralSecurityException - this is an UnknownException if the user is not known to the Registry
public User getUserById(SecurityAccess securityAccess,
int id)
throws GeneralSecurityException
User from the Registry.
getUserById in interface SecurityRegistrysecurityAccess - id -
GeneralSecurityException - this is an UnknownException if the user is not known to the Registry
public User[] getAllUsers(SecurityAccess securityAccess)
throws GeneralSecurityException
User s from the Registry.
getAllUsers in interface SecurityRegistrysecurityAccess -
GeneralSecurityException
public User[] getUsersWithRole(SecurityAccess securityAccess,
Role role)
throws GeneralSecurityException
Users s from the Registry that are associated DIRECTLY (i.e. not via
group memberships) with a given Role.
getUsersWithRole in interface SecurityRegistrysecurityAccess - role -
GeneralSecurityException
public User[] getUsersInGroup(SecurityAccess securityAccess,
Group group)
throws GeneralSecurityException
User s from the Registry that belong to the given Group
DIRECTLY (i.e. not via inheritance).
getUsersInGroup in interface SecurityRegistrysecurityAccess - group -
GeneralSecurityException
public Group registerGroup(SecurityTransaction transaction,
java.lang.String name,
java.lang.String title)
throws GeneralSecurityException
Registry.
registerGroup in interface SecurityRegistrytransaction - name -
GeneralSecurityException - this is a DuplicateException if the group already existed
public void deregisterGroup(SecurityTransaction transaction,
Group group)
throws GeneralSecurityException
Group from the Registry (including its relations).
deregisterGroup in interface SecurityRegistrytransaction - group -
GeneralSecurityException
public Group getGroupByName(SecurityAccess securityAccess,
java.lang.String name)
throws GeneralSecurityException
Group from the Registry.
getGroupByName in interface SecurityRegistrysecurityAccess - name -
GeneralSecurityException - this is an UnknownException if the group is not known to the Registry
public Group getGroupById(SecurityAccess securityAccess,
int id)
throws GeneralSecurityException
Group from the Registry.
getGroupById in interface SecurityRegistrysecurityAccess - id -
GeneralSecurityException - this is an UnknownException if the group is not known to the Registry
public Group[] getAllGroups(SecurityAccess securityAccess)
throws GeneralSecurityException
Group s from the Registry.
getAllGroups in interface SecurityRegistrysecurityAccess -
GeneralSecurityException
public Role registerRole(SecurityTransaction transaction,
java.lang.String name)
throws GeneralSecurityException
Registry.
registerRole in interface SecurityRegistrytransaction - name -
GeneralSecurityException - this is a DuplicateException if the role already existed
public void deregisterRole(SecurityTransaction transaction,
Role role)
throws GeneralSecurityException
Role from the Registry (including its relations).
deregisterRole in interface SecurityRegistrytransaction - role -
GeneralSecurityException
public Role getRoleByName(SecurityAccess securityAccess,
java.lang.String name)
throws GeneralSecurityException
Role from the Registry.
getRoleByName in interface SecurityRegistrysecurityAccess - name -
GeneralSecurityException - this is an UnknownException if the role is not known to the Registry
public Role[] getRolesByNS(SecurityAccess securityAccess,
java.lang.String ns)
throws GeneralSecurityException
Roles s from the Registry that have a certain namespace.
getRolesByNS in interface SecurityRegistrysecurityAccess - ns - null for default namespace
GeneralSecurityException
public Role getRoleById(SecurityAccess securityAccess,
int id)
throws GeneralSecurityException
Role from the Registry.
getRoleById in interface SecurityRegistrysecurityAccess - id -
GeneralSecurityException - this is an UnknownException if the role is not known to the Registry
public Role[] getAllRoles(SecurityAccess securityAccess)
throws GeneralSecurityException
Role s from the Registry, except those that are only used internally
(these have namespaces that begin with $).
getAllRoles in interface SecurityRegistrysecurityAccess -
GeneralSecurityException
public SecuredObject registerSecuredObject(SecurityTransaction transaction,
java.lang.String type,
java.lang.String name,
java.lang.String title)
throws GeneralSecurityException
SecuredObject to the Registry.
registerSecuredObject in interface SecurityRegistrytransaction - type - name - title -
GeneralSecurityException - this is a DuplicateException if the object already existed
public void deregisterSecuredObject(SecurityTransaction transaction,
SecuredObject object)
throws GeneralSecurityException
SecuredObject from the Registry (including its associations).
deregisterSecuredObject in interface SecurityRegistrytransaction - object -
GeneralSecurityException
public SecuredObject getSecuredObjectByName(SecurityAccess securityAccess,
java.lang.String name,
java.lang.String type)
throws GeneralSecurityException
SecuredObject from the Registry.
getSecuredObjectByName in interface SecurityRegistrysecurityAccess - name -
GeneralSecurityException - this is an UnknownException if the object is not known to the Registry
public SecuredObject getSecuredObjectById(SecurityAccess securityAccess,
int id)
throws GeneralSecurityException
SecuredObject from the Registry.
getSecuredObjectById in interface SecurityRegistrysecurityAccess - id -
GeneralSecurityException - this is an UnknownException if the object is not known to the Registry
public SecuredObject[] getSecuredObjectsByNS(SecurityAccess securityAccess,
java.lang.String ns,
java.lang.String type)
throws GeneralSecurityException
SecuredObject s from the Registry that have a certain namespace.
getSecuredObjectsByNS in interface SecurityRegistrysecurityAccess - ns - null for default namespacetype -
GeneralSecurityException
public SecuredObject[] getAllSecuredObjects(SecurityAccess securityAccess,
java.lang.String type)
throws GeneralSecurityException
SecuredObject s with the given type from the Registry.
getAllSecuredObjects in interface SecurityRegistrysecurityAccess - type -
GeneralSecurityException
public Privilege registerPrivilege(SecurityTransaction transaction,
java.lang.String name)
throws GeneralSecurityException
Privilege to the Registry.
registerPrivilege in interface SecurityRegistrytransaction - name -
GeneralSecurityException - this is a DuplicateException if the Privilege already existed
public void deregisterPrivilege(SecurityTransaction transaction,
Privilege privilege)
throws GeneralSecurityException
Registry (including its relations).
deregisterPrivilege in interface SecurityRegistrytransaction - privilege -
GeneralSecurityException
public Privilege getPrivilegeByName(SecurityAccess securityAccess,
java.lang.String name)
throws GeneralSecurityException
Privilege from the Registry.
getPrivilegeByName in interface SecurityRegistrysecurityAccess - name -
GeneralSecurityException - this is an UnknownException if the privilege is not known to the Registry
public Privilege[] getPrivilegesForRole(SecurityAccess securityAccess,
Role role)
throws GeneralSecurityException
Privileges s from the Registry that are associated DIRECTLY (i.e. not via
group memberships) with a given Role.
getPrivilegesForRole in interface SecurityRegistrysecurityAccess - role -
GeneralSecurityException
public void setPrivilegesForRole(SecurityTransaction transaction,
Role role,
Privilege[] privileges)
throws GeneralSecurityException
Privilege s that are associated with a given Role.
setPrivilegesForRole in interface SecurityRegistrytransaction - role - privileges -
GeneralSecurityException
public RightType registerRightType(SecurityTransaction transaction,
java.lang.String name)
throws GeneralSecurityException
Right to the Registry.
registerRightType in interface SecurityRegistrytransaction - name -
GeneralSecurityException - this is a DuplicateException if the Right already existed
public void deregisterRightType(SecurityTransaction transaction,
RightType type)
throws GeneralSecurityException
RightType from the Registry (including its relations).
deregisterRightType in interface SecurityRegistrytransaction - type -
GeneralSecurityException
public RightType getRightTypeByName(SecurityAccess securityAccess,
java.lang.String name)
throws GeneralSecurityException
Right from the Registry.
getRightTypeByName in interface SecurityRegistrysecurityAccess - name -
GeneralSecurityException - this is an UnknownException if the Right is not known to the
Registry
public Right[] getRights(SecurityAccess securityAccess,
SecurableObject object,
Role role)
throws GeneralSecurityException
Rights from the Registry that are associated with a given
Role and a SecurableObject.
getRights in interface SecurityRegistrysecurityAccess - object - role -
GeneralSecurityException
public void setRights(SecurityTransaction transaction,
SecurableObject object,
Role role,
Right[] rights)
throws GeneralSecurityException
Rights to be associated with a given Role and SecurableObject.
setRights in interface SecurityRegistrytransaction - object - role - rights -
GeneralSecurityException
public void setRights(SecurityTransaction transaction,
SecurableObject[] objects,
Role role,
Right right)
throws GeneralSecurityException
Right to be associated with a given Role and all given
SecurableObjects.
setRights in interface SecurityRegistrytransaction - objects - role - right -
GeneralSecurityException
public void setServicesRights(SecurityTransaction transaction,
java.util.Collection<java.lang.Integer> services,
Role role)
throws GeneralSecurityException
SecurityRegistry
setServicesRights in interface SecurityRegistryservices - the ids of the accessible services
GeneralSecurityException
public Group[] getGroupsForUser(SecurityAccess securityAccess,
User user)
throws GeneralSecurityException
Group s from the Registry that the given User is a DIRECT
(i.e. not via inheritance) member of.
getGroupsForUser in interface SecurityRegistrysecurityAccess - user -
GeneralSecurityException
public Group[] getGroupsInGroup(SecurityAccess securityAccess,
Group group)
throws GeneralSecurityException
Groups s from the Registry that are members of another Group
DIRECTLY (i.e. not via inheritance).
getGroupsInGroup in interface SecurityRegistrysecurityAccess - group -
GeneralSecurityException
public Group[] getGroupsForGroup(SecurityAccess securityAccess,
Group group)
throws GeneralSecurityException
Group s from the Registry that the given Group is a DIRECT
member (i.e. not via inheritance) of.
getGroupsForGroup in interface SecurityRegistrysecurityAccess - group -
GeneralSecurityException
public Group[] getGroupsWithRole(SecurityAccess securityAccess,
Role role)
throws GeneralSecurityException
Group s from the Registry that are associated with a given
Role DIRECTLY (i.e. not via inheritance).
getGroupsWithRole in interface SecurityRegistrysecurityAccess - role -
GeneralSecurityException
public Role[] getRolesForUser(SecurityAccess securityAccess,
User user)
throws GeneralSecurityException
Role s from the Registry that are associated with a given
User DIRECTLY (i.e. not via group memberships).
getRolesForUser in interface SecurityRegistrysecurityAccess - user -
GeneralSecurityException
public Role[] getRolesForGroup(SecurityAccess securityAccess,
Group group)
throws GeneralSecurityException
Role s from the Registry that are associated with a given
Group DIRECTLY (i.e. not via inheritance).
getRolesForGroup in interface SecurityRegistrysecurityAccess - group -
GeneralSecurityException
public void setGroupsForUser(SecurityTransaction transaction,
User user,
Group[] groups)
throws GeneralSecurityException
Group s that a given User is member of DIRECTLY (i.e. not via inheritance).
setGroupsForUser in interface SecurityRegistrytransaction - user - groups -
GeneralSecurityException
public void setGroupsForGroup(SecurityTransaction transaction,
Group group,
Group[] groups)
throws GeneralSecurityException
Group s that a given Group is member of DIRECTLY (i.e. not via inheritance).
setGroupsForGroup in interface SecurityRegistrytransaction - group - groups -
GeneralSecurityException
public void setGroupsWithRole(SecurityTransaction transaction,
Role role,
Group[] groups)
throws GeneralSecurityException
Group s that a given Role is associated to DIRECTLY (i.e. not via
inheritance).
setGroupsWithRole in interface SecurityRegistrytransaction - role - groups -
GeneralSecurityException
public void setUsersWithRole(SecurityTransaction transaction,
Role role,
User[] users)
throws GeneralSecurityException
User s that a given Role is associated to DIRECTLY (i.e. not via
Group membership).
setUsersWithRole in interface SecurityRegistrytransaction - role - users -
GeneralSecurityException
public void setUsersInGroup(SecurityTransaction transaction,
Group group,
User[] users)
throws GeneralSecurityException
User s that are members of a given Group DIRECTLY (i.e. not via inheritance).
setUsersInGroup in interface SecurityRegistrytransaction - group - users -
GeneralSecurityException
public void setGroupsInGroup(SecurityTransaction transaction,
Group group,
Group[] groups)
throws GeneralSecurityException
Groups s that are members of a given Group DIRECTLY (i.e. not via
inheritance).
setGroupsInGroup in interface SecurityRegistrytransaction - group - groups -
GeneralSecurityException
public void setRolesForUser(SecurityTransaction transaction,
User user,
Role[] roles)
throws GeneralSecurityException
Role s that a given User is directly associated to (i.e. not via
Group membership).
setRolesForUser in interface SecurityRegistrytransaction - user - roles -
GeneralSecurityException
public void setRolesForGroup(SecurityTransaction transaction,
Group group,
Role[] roles)
throws GeneralSecurityException
Role s that a given Group is associated to directly (i.e. not via
inheritance).
setRolesForGroup in interface SecurityRegistrytransaction - group - roles -
GeneralSecurityException
public void initialize(java.util.Properties properties)
throws GeneralSecurityException
SQLRegistry -instance according to the contents of the submitted
Properties.
initialize in interface SecurityRegistryproperties -
GeneralSecurityException
public void beginTransaction(SecurityTransaction transaction)
throws GeneralSecurityException
SQLRegistry that a new transaction begins.
Only one transaction can be active at a time.
beginTransaction in interface SecurityRegistrytransaction -
GeneralSecurityException
public void commitTransaction(SecurityTransaction transaction)
throws GeneralSecurityException
SQLRegistry that the current transaction ends, i.e. the changes made by the transaction
are made persistent.
commitTransaction in interface SecurityRegistrytransaction -
GeneralSecurityException
public void abortTransaction(SecurityTransaction transaction)
throws GeneralSecurityException
SQLRegistry that the current transaction shall be aborted. Changes made during the
transaction are undone.
abortTransaction in interface SecurityRegistrytransaction -
GeneralSecurityException
public Service getServiceByAddress(SecurityAccess access,
java.lang.String address)
throws GeneralSecurityException
getServiceByAddress in interface SecurityRegistryaccess - address -
GeneralSecurityException
public Service getServiceById(SecurityAccess access,
int id)
throws GeneralSecurityException
access - id -
GeneralSecurityException
public Service registerService(SecurityTransaction transaction,
java.lang.String address,
java.lang.String title,
java.util.List<StringPair> objects,
java.lang.String type)
throws GeneralSecurityException
registerService in interface SecurityRegistrytransaction - address - title - objects - type -
GeneralSecurityException
public void deregisterService(SecurityTransaction transaction,
Service service)
throws GeneralSecurityException
deregisterService in interface SecurityRegistrytransaction - service -
GeneralSecurityException
public java.util.LinkedList<Service> getAllServices(SecurityAccess access)
throws GeneralSecurityException
getAllServices in interface SecurityRegistryGeneralSecurityException
public java.util.LinkedList<Service> getRolesServices(SecurityAccess access,
Role role)
throws GeneralSecurityException
getRolesServices in interface SecurityRegistryaccess - role -
GeneralSecurityException
public void updateService(SecurityTransaction transaction,
Service oldService,
Service newService)
throws GeneralSecurityException
updateService in interface SecurityRegistryGeneralSecurityException
public void renameObject(SecurityTransaction transaction,
Service service,
java.lang.String oldName,
java.lang.String newName)
throws GeneralSecurityException
renameObject in interface SecurityRegistryGeneralSecurityException
public void editService(SecurityTransaction transaction,
Service service,
java.lang.String newTitle,
java.lang.String newAddress)
throws GeneralSecurityException
editService in interface SecurityRegistryGeneralSecurityException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org