|
![]() |
||||||||
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.basic.InternalSubject
public class InternalSubject
A subject that only knows explicitly assigned roles and issuers.
Constructor Summary | |
---|---|
InternalSubject(URI identity)
Creates a subject without any roles. |
Method Summary | |
---|---|
void |
assignRole(Subject issuer,
String roleName,
URI hierarchyUri,
TimePeriod validity)
Assigns a role to this subject. |
protected boolean |
comparablePart(BasicPart part)
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 role)
Returns the subjects who issued the role to this. |
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.BasicPart |
---|
appendDetails, appendPartDetails, equalPart, equals, getIdentity, getName, getSerialNumberString, getSimpleClassName, hashCode, hasPartIdentity, hasPartName, isChildCollectionValid, isChildNotNull, isChildNullOrValid, isChildValid, isIdentityValid, isNameValid, isPartValid, isValid, notifyIdentityChange, notifyNameChange, 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 |
Constructor Detail |
---|
public InternalSubject(URI identity)
identity
- the identity of this subject.Method Detail |
---|
public void assignRole(Subject issuer, String roleName, URI hierarchyUri, TimePeriod validity)
issuer
- the Subject
assigning the role to this subject.roleName
- the name of the role that is being assigned.hierarchyUri
- the URI
of the role hierarchy that contains the
role being assigned.validity
- a TimePeriod
.protected boolean comparablePart(BasicPart part)
BasicPart
comparablePart
in class BasicPart
part
- the part to check.BasicPart
true
if the part supplied is comparable to this part.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 role)
Subject
getIssuersOf
in interface Subject
role
- 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.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:10
Copyright (c) 2002-2007 Ergon Informatik AG