|
![]() |
||||||||
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 | |
---|---|
protected boolean |
comparablePart(BasicPart entity)
Check if the part specified is comparable to this part. |
Set<Role> |
getAssignedRoles(TimeStamp timeStamp,
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. |
TimePeriod |
getValidityOf(Role role,
Subject issuer)
Returns the TimePeriod of the specific role assignment consisting of issuer and role. |
Methods inherited from class org.openpermis.policy.bean.basic.BasicPartBean |
---|
addPropertyChangeListener, equalSerialNumber, findBySerialNumber, firePropertyChange, getPartBeanType, getSerialNumber, getSerialNumberString, notifyIdentityChange, notifyNameChange, removePropertyChangeListener, toShortString |
Methods inherited from class org.openpermis.policy.bean.basic.BasicPart |
---|
appendDetails, appendPartDetails, equalPart, equals, getIdentity, getName, hashCode, hasPartIdentity, hasPartName, isChildCollectionValid, isChildNotNull, isChildNullOrValid, isChildValid, isIdentityValid, isNameValid, isPartValid, isValid, 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.Part |
---|
equals, hashCode, isValid, toString |
Methods inherited from interface org.openpermis.policy.Identifiable |
---|
getIdentity |
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 |
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<Role> getAssignedRoles(TimeStamp timeStamp, Set<Role> roles)
Subject
getAssignedRoles
in interface Subject
timeStamp
- the current time, a TimeStamp
.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, Set)
to have this role.
public TimePeriod getValidityOf(Role role, Subject issuer)
Subject
TimePeriod
of the specific role assignment consisting of issuer and role.
getValidityOf
in interface Subject
role
- a Role
that was assigned.issuer
- a Subject
that assigned the role.
TimePeriod
of the specific role assignment consisting of issuer and role.protected boolean comparablePart(BasicPart entity)
BasicPart
comparablePart
in class BasicPart
entity
- the part to check.
true
if the part supplied is comparable to this part.BasicPart
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 |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:49
Copyright (c) 2002-2007 Ergon Informatik AG