org.openpermis.policy.bean
Interface RoleAssignmentRuleBean

All Superinterfaces:
Part, PartBean, RoleAssignmentRule, Serializable
All Known Implementing Classes:
BasicRoleAssignmentRule

public interface RoleAssignmentRuleBean
extends RoleAssignmentRule, PartBean

A rule for assigning roles to subjects.

Since:
0.1.0

Method Summary
 AuthorityBean getAuthority()
          Returns the authorising subject of this rule.
 TimePeriodConstraint getConstraint()
          Returns the time constraint of this rule.
 int getDelegationDepth()
          Returns the delegation depth of this rule.
 RoleCollection getRoles()
          Returns the set of roles of this rule.
 DomainBean getSubjectDomain()
          Returns the subject domain to which this rule applies.
 void setAuthority(AuthorityBean authority)
          Sets the authorising subject of this rule.
 void setConstraint(TimePeriodConstraint constraint)
          Sets the time constraint of this rule.
 void setDelegationDepth(int delegationDepth)
          Sets the delegation depth of this rule.
 void setRoles(RoleCollection roles)
          Sets the roles of this rule.
 void setSubjectDomain(DomainBean subjectDomain)
          Sets the subject domain to which this rule applies.
 
Methods inherited from interface org.openpermis.policy.RoleAssignmentRule
verifyRoleAssignment
 
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

getAuthority

AuthorityBean getAuthority()
Returns the authorising subject of this rule.

Returns:
the authorising AuthorityBean of this rule.
Since:
0.1.0

setAuthority

void setAuthority(AuthorityBean authority)
Sets the authorising subject of this rule.

Parameters:
authority - the new authorising AuthorityBean of this rule.
Since:
0.1.0

getSubjectDomain

DomainBean getSubjectDomain()
Returns the subject domain to which this rule applies.

Returns:
the rule's DomainBean.
Since:
0.1.0

setSubjectDomain

void setSubjectDomain(DomainBean subjectDomain)
Sets the subject domain to which this rule applies.

Parameters:
subjectDomain - the rule's new DomainBean.
Since:
0.1.0

getDelegationDepth

int getDelegationDepth()
Returns the delegation depth of this rule.

Returns:
the rule's delegation depth, i.e. how far a subject is allowed to delegate its roles.
Since:
0.1.0

setDelegationDepth

void setDelegationDepth(int delegationDepth)
Sets the delegation depth of this rule.

Parameters:
delegationDepth - the rule's new depth.
Since:
0.1.0

getRoles

RoleCollection getRoles()
Returns the set of roles of this rule.

Returns:
the roles to which this rule applies.
Since:
0.1.0

setRoles

void setRoles(RoleCollection roles)
Sets the roles of this rule.

Parameters:
roles - the new roles of this rule.
Since:
0.1.0

getConstraint

TimePeriodConstraint getConstraint()
Returns the time constraint of this rule.

Returns:
the time constraint of this rule.
Since:
0.3.0

setConstraint

void setConstraint(TimePeriodConstraint constraint)
Sets the time constraint of this rule.

Parameters:
constraint - a TimePeriodConstraint.
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