|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.security.drm.model.SecurableObject
org.deegree.security.drm.model.Role
public class Role
Implementation of role-objects. Role s define the
Privilege of User s and Groups
and their Rights on SecurableObjects.
| Field Summary | |
|---|---|
static int |
ID_SEC_ADMIN
|
| Fields inherited from class org.deegree.security.drm.model.SecurableObject |
|---|
id, name, registry, title, type |
| Constructor Summary | |
|---|---|
Role(int id,
String name,
SecurityRegistry registry)
Creates a new Role -instance. |
|
| Method Summary | |
|---|---|
User[] |
getAllUsers(SecurityAccess securityAccess)
Returns the User s that are associated with this role
either directly or via group membership. |
Group[] |
getGroups(SecurityAccess securityAccess)
Returns the Group s that are associated with this role
DIRECTLY, i.e. not via membership in other roles. |
Privilege[] |
getPrivileges(SecurityAccess securityAccess)
Returns the Privilege s that this role has. |
RightSet |
getRights(SecurityAccess securityAccess,
SecurableObject object)
Returns the rights that this role defines concerning the given SecurableObject. |
User[] |
getUsers(SecurityAccess securityAccess)
Returns the User s that are associated with this role
DIRECTLY, i.e. not via group membership. |
boolean |
hasPrivilege(SecurityAccess securityAccess,
Privilege privilege)
Returns whether the Role has a certain
Privilege. |
boolean |
hasPrivilege(SecurityAccess securityAccess,
String s)
Returns whether the Role has a certain privilege. |
boolean |
hasRight(SecurityAccess securityAccess,
RightType type,
Feature accessParams,
SecurableObject object)
Returns whether the Role has a certain Right
on a SecurableObject (directly or via group
memberships). |
boolean |
hasRight(SecurityAccess securityAccess,
RightType type,
SecurableObject object)
Returns whether the Role has a certain Right
on a SecurableObject. |
boolean |
hasRight(SecurityAccess securityAccess,
String s,
SecurableObject object)
Returns whether the Role has a certain right on a
SecurableObject. |
String |
toString(SecurityAccess securityAccess)
Returns a String representation of this object. |
| Methods inherited from class org.deegree.security.drm.model.SecurableObject |
|---|
equals, getID, getName, getTitle, getType, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ID_SEC_ADMIN
| Constructor Detail |
|---|
public Role(int id,
String name,
SecurityRegistry registry)
Role -instance.
id - name - registry - | Method Detail |
|---|
public Group[] getGroups(SecurityAccess securityAccess)
throws GeneralSecurityException
Group s that are associated with this role
DIRECTLY, i.e. not via membership in other roles.
securityAccess -
GeneralSecurityException
public User[] getUsers(SecurityAccess securityAccess)
throws GeneralSecurityException
User s that are associated with this role
DIRECTLY, i.e. not via group membership.
securityAccess -
GeneralSecurityException
public User[] getAllUsers(SecurityAccess securityAccess)
throws GeneralSecurityException
User s that are associated with this role
either directly or via group membership.
securityAccess -
GeneralSecurityException
public Privilege[] getPrivileges(SecurityAccess securityAccess)
throws GeneralSecurityException
Privilege s that this role has.
securityAccess -
GeneralSecurityException
public RightSet getRights(SecurityAccess securityAccess,
SecurableObject object)
throws GeneralSecurityException
SecurableObject.
securityAccess -
GeneralSecurityException
public boolean hasRight(SecurityAccess securityAccess,
RightType type,
Feature accessParams,
SecurableObject object)
throws GeneralSecurityException
Role has a certain Right
on a SecurableObject (directly or via group
memberships).
GeneralSecurityException
public boolean hasRight(SecurityAccess securityAccess,
RightType type,
SecurableObject object)
throws GeneralSecurityException
Role has a certain Right
on a SecurableObject.
GeneralSecurityException
public boolean hasRight(SecurityAccess securityAccess,
String s,
SecurableObject object)
throws GeneralSecurityException
Role has a certain right on a
SecurableObject.
GeneralSecurityException
public boolean hasPrivilege(SecurityAccess securityAccess,
Privilege privilege)
throws GeneralSecurityException
Role has a certain
Privilege.
privilege -
GeneralSecurityException
public boolean hasPrivilege(SecurityAccess securityAccess,
String s)
throws GeneralSecurityException
Role has a certain privilege.
s -
GeneralSecurityExceptionpublic String toString(SecurityAccess securityAccess)
String representation of this object.
securityAccess -
|
deegree 2.3 (2010/04/09 10:10 build-4-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