org.openpermis.policy.bean
Interface TargetAccessRuleBean

All Superinterfaces:
Part, PartBean, Serializable, TargetAccessRule
All Known Implementing Classes:
BasicTargetAccessRule

public interface TargetAccessRuleBean
extends TargetAccessRule, PartBean

A target access rule defines a set of roles that are allowed to access a target.

Since:
0.1.0

Method Summary
 Predicate getCondition()
          Returns the condition of this access rule.
 ObligationBeanCollection getObligations()
          Returns the obligations of this rule.
 RoleCollection getRoles()
          Returns the roles to which this rule grants access.
 TargetBeanCollection getTargets()
          Returns the targets of this access rule.
 void removeObligation(ObligationBean part)
          Removes an obligation child element.
 void removeTarget(TargetBean part)
          Removes a target child element.
 void setCondition(Predicate condition)
          Sets the condition of this access rule.
 void setObligations(ObligationBeanCollection obligations)
          Sets the obligations of this rule.
 void setRoles(RoleCollection roles)
          Sets the roles to which this rule grants access.
 void setTargets(TargetBeanCollection targets)
          Sets the targets of this access rule.
 
Methods inherited from interface org.openpermis.policy.TargetAccessRule
findAuthorizedRoleSet
 
Methods inherited from interface org.openpermis.policy.Part
equals, hashCode, isValid, toString
 
Methods inherited from interface org.openpermis.policy.bean.PartBean
addPropertyChangeListener, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, removePropertyChangeListener, toShortString
 
Methods inherited from interface org.openpermis.policy.Part
equals, hashCode, isValid, toString
 

Method Detail

getTargets

TargetBeanCollection getTargets()
Returns the targets of this access rule.

Returns:
the targets of this access rule.
Since:
0.3.0

setTargets

void setTargets(TargetBeanCollection targets)
Sets the targets of this access rule.

Parameters:
targets - the new targets of this access rule.
Since:
0.1.0

getCondition

Predicate getCondition()
Returns the condition of this access rule.

Returns:
a Predicate the condition of this access rule.
Since:
0.1.0

setCondition

void setCondition(Predicate condition)
Sets the condition of this access rule.

Parameters:
condition - a Predicate.
Since:
0.1.0

getRoles

RoleCollection getRoles()
Returns the roles to which this rule grants access.

Returns:
the roles to which this rule grants access.
Since:
0.1.0

setRoles

void setRoles(RoleCollection roles)
Sets the roles to which this rule grants access.

Parameters:
roles - the new roles to which this rule grants access.
Since:
0.1.0

removeTarget

void removeTarget(TargetBean part)
Removes a target child element.

Since:
0.1.0

removeObligation

void removeObligation(ObligationBean part)
Removes an obligation child element.

Since:
0.3.0

getObligations

ObligationBeanCollection getObligations()
Returns the obligations of this rule.

Returns:
the obligations of this rule.
Since:
0.3.0

setObligations

void setObligations(ObligationBeanCollection obligations)
Sets the obligations of this rule.

Parameters:
obligations - the new obligations of this rule.
Since:
0.3.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:49
Copyright (c) 2002-2007 Ergon Informatik AG