|
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.Right
public class Right
A Right
instance encapsulates a SecurableObject
, a
RightType
and optional constraints which restrict it's applicability.
For example, one instance of a RightSet
may be the 'access'-Right to a geographic
dataset restricted to a certain area and weekdays. The situation (requested area and current
time) is coded as a Feature
object.
Constructor Summary | |
---|---|
Right(SecurableObject object,
RightType type)
Creates a new Right -instance (with no constraints). |
|
Right(SecurableObject object,
RightType type,
Filter constraints)
Creates a new Right -instance. |
Method Summary | |
---|---|
boolean |
applies(SecurableObject object)
|
boolean |
applies(SecurableObject object,
Feature situation)
|
Filter |
getConstraints()
Returns the restrictions (the parameters) of this Right . |
SecurableObject |
getSecurableObject()
|
RightType |
getType()
|
Right |
merge(Right that)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Right(SecurableObject object, RightType type)
Right
-instance (with no constraints).
object
- type
- public Right(SecurableObject object, RightType type, Filter constraints)
Right
-instance.
object
- type
- constraints
- null means that no constraints are definedMethod Detail |
---|
public SecurableObject getSecurableObject()
SecurableObject
.public RightType getType()
RightType
.public Filter getConstraints()
Right
.
public Right merge(Right that) throws GeneralSecurityException
that
-
Right
,
so that the new Right
has the permissions of both instances.
GeneralSecurityException
public boolean applies(SecurableObject object, Feature situation) throws GeneralSecurityException
object
- situation
-
Right
applies on the given SecurableObject
and in a concrete situation (the situation is represented by the given
Feature
).
GeneralSecurityException
public boolean applies(SecurableObject object)
object
-
Right
applies on the given SecurableObject
and in unrestricted manner (w/o constraints).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