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
 PredicateBean 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(PredicateBean 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.bean.PartBean
accept, accept, addPropertyChangeListener, checkLocalPartConsistency, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, instanceOf, removePropertyChangeListener, toShortString
 
Methods inherited from interface org.openpermis.policy.Part
equals, hashCode, 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

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

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

setCondition

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

Parameters:
condition - a PredicateBean.
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


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG