|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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)
Checks if the Right applies on the given
SecurableObject and in unrestricted manner (w/o
constraints). |
boolean |
applies(SecurableObject object,
Feature situation)
Checks if the Right applies on the given
SecurableObject and in a concrete situation (the situation
is represented by the given Feature). |
Filter |
getConstraints()
Returns the restrictions (the parameters) of this Right. |
SecurableObject |
getSecurableObject()
Returns the associated SecurableObject. |
RightType |
getType()
Returns the associated RightType. |
Right |
merge(Right that)
Generates the disjunctive combination of the instance and the submitted Right, so that the new Right has the
permissions of both instances. |
String |
toString()
Returns a String representation of this object. |
| 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 defined| Method Detail |
|---|
public SecurableObject getSecurableObject()
SecurableObject.
public RightType getType()
RightType.
public Filter getConstraints()
Right.
public Right merge(Right that)
throws GeneralSecurityException
Right, so that the new Right has the
permissions of both instances.
that -
GeneralSecurityException
public boolean applies(SecurableObject object,
Feature situation)
throws GeneralSecurityException
Right applies on the given
SecurableObject and in a concrete situation (the situation
is represented by the given Feature).
object - situation -
GeneralSecurityExceptionpublic boolean applies(SecurableObject object)
Right applies on the given
SecurableObject and in unrestricted manner (w/o
constraints).
object -
GeneralSecurityExceptionpublic String toString()
String representation of this object.
toString in class Object
|
deegree 2.1 (2007/11/08 09:57 build-328-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://deegree.sourceforge.net