|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.policy.bean.basic.BasicPart
org.openpermis.policy.bean.basic.BasicPartBean
org.openpermis.policy.bean.basic.BasicAuthority
public class BasicAuthority
Basic implementation of an authority bean.
Constructor Summary | |
---|---|
protected |
BasicAuthority(SerialNumber serialNumber,
URI identity)
Creates an authority with the specified URI. |
Method Summary | |
---|---|
void |
accept(List<PartBean> parents,
MultiPartBeanVisitor visitor)
Allows traversing the model according to the visitor pattern. |
protected boolean |
comparablePart(BasicPart entity)
Check if the part specified is comparable to this part. |
Set<RoleDefinition> |
getAssignedRoleDefinitions(TimeStamp timeStamp,
TimePeriodConstraint constraint)
Returns a set of role definitions held by this subject at the current time. |
Set<Role> |
getAssignedRoles(TimeStamp timeStamp,
TimePeriodConstraint constraint,
Set<Role> roles)
Returns a subset of all roles held by this subject at the current time. |
Set<Subject> |
getIssuersOf(Role roleRef)
Returns the subjects who issued the role to this. |
protected String |
getSimpleClassName()
Returns the simple implementation class name of this class. |
Methods inherited from class org.openpermis.policy.bean.basic.BasicPartBean |
---|
accept, addPropertyChangeListener, equalSerialNumber, findBySerialNumber, firePropertyChange, getPartBeanType, getSerialNumber, getSerialNumberString, instanceOf, notifyIdentityChange, notifyNameChange, removePropertyChangeListener, toShortString |
Methods inherited from class org.openpermis.policy.bean.basic.BasicPart |
---|
appendDetails, appendPartDetails, areIdentitiesUnique, areNamesUnique, checkLocalConsistency, checkLocalPartConsistency, equalPart, equals, getIdentity, getName, hashCode, hasPartIdentity, hasPartName, isIdentityValid, isNameValid, partHashCode, reportProblem, setIdentity, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openpermis.policy.Identifiable |
---|
getIdentity |
Methods inherited from interface org.openpermis.policy.bean.PartBean |
---|
accept, addPropertyChangeListener, checkLocalPartConsistency, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, instanceOf, removePropertyChangeListener, toShortString |
Methods inherited from interface org.openpermis.policy.Part |
---|
equals, hashCode, toString |
Methods inherited from interface org.openpermis.policy.bean.IdentifiableBean |
---|
setIdentity |
Constructor Detail |
---|
protected BasicAuthority(SerialNumber serialNumber, URI identity)
serialNumber
- the serial number of this part.identity
- the URI
that identifies this authority.Method Detail |
---|
public Set<RoleDefinition> getAssignedRoleDefinitions(TimeStamp timeStamp, TimePeriodConstraint constraint)
Subject
getAssignedRoleDefinitions
in interface Subject
timeStamp
- the current time, a TimeStamp
.constraint
- to constrain the time period of the role assignment.
null
but may be empty if the subject does not hold any roles.public Set<Role> getAssignedRoles(TimeStamp timeStamp, TimePeriodConstraint constraint, Set<Role> roles)
Subject
getAssignedRoles
in interface Subject
timeStamp
- the current time, a TimeStamp
.constraint
- to constrain the time period of the role assignment.roles
- a set of Role
s.
roles
containing only those roles that have
been assigned to this subject.public Set<Subject> getIssuersOf(Role roleRef)
Subject
getIssuersOf
in interface Subject
roleRef
- a Role
. The subject assumes that it previously confirmed
with Subject.getAssignedRoles(TimeStamp, TimePeriodConstraint, Set)
to have this role.
public void accept(List<PartBean> parents, MultiPartBeanVisitor visitor)
PartBean
Each part bean must call method visitor.visit(this)
accept
in interface PartBean
parents
- the path of parents of this part.visitor
- a PartBeanVisitor
.protected boolean comparablePart(BasicPart entity)
BasicPart
comparablePart
in class BasicPart
entity
- the part to check.BasicPart
true
if the part supplied is comparable to this part.protected String getSimpleClassName()
BasicPart
If your implementation represents an interface implementation return the interface
simple class name here. In short: return the instance you are checking against in
BasicPart.comparablePart(BasicPart)
.
getSimpleClassName
in class BasicPart
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG