|
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.Object org.deegree.security.drm.model.RightSet
public class RightSet
A RightSet
encapsulates a number of Right
objects. This are grouped
by the SecurableObject
for which they apply to support an efficient implementation
of the merge()-operation. The merge()-operation results in a RightSet
that
contains the logical rights of boths sets, but only one Right
object of each
RightType
(and SecurableObject
). This is accomplished by merging
the constraints of the Rights
of the same type (and object).
Constructor Summary | |
---|---|
RightSet()
|
|
RightSet(Right[] rights)
|
Method Summary | |
---|---|
boolean |
applies(SecurableObject object,
RightType type)
Checks if the RightSet contains the (unrestricted) permissions for a
SecurableObject and a certain type of right. |
boolean |
applies(SecurableObject object,
RightType type,
Feature situation)
Checks if the RightSet contains the permissions for a
SecurableObject and a concrete situation (the situation is represented by the
given Feature ). |
Right |
getRight(SecurableObject secObject,
RightType type)
|
RightSet |
merge(RightSet that)
Produces the logical disjunction of two RightSets . |
Right[] |
toArray(SecurableObject secObject)
|
Right[][] |
toArray2()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
RightSet()
public RightSet(Right[] rights)
rights
- Method Detail |
---|
public boolean applies(SecurableObject object, RightType type, Feature situation) throws GeneralSecurityException
RightSet
contains the permissions for a
SecurableObject
and a concrete situation (the situation is represented by the
given Feature
).
object
- type
- situation
-
GeneralSecurityException
public boolean applies(SecurableObject object, RightType type)
RightSet
contains the (unrestricted) permissions for a
SecurableObject
and a certain type of right.
object
- type
-
public Right getRight(SecurableObject secObject, RightType type)
secObject
- type
-
Right
of the specified RightType
that this
RightSet
defines on the specified SecurableObject
.public Right[] toArray(SecurableObject secObject)
secObject
-
Rights
(for one SecurableObject
) as an
one-dimensional array.public Right[][] toArray2()
Rights
as a two-dimensional array:
SecurableObjects
Rights
public RightSet merge(RightSet that)
RightSets
.
that
-
public java.lang.String toString()
toString
in class java.lang.Object
|
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