|
![]() |
||||||||
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.BasicObligation
public class BasicObligation
A basic implementation of ObligationBean
.
Constructor Summary | |
---|---|
protected |
BasicObligation(SerialNumber serialNumber,
String text)
Creates a new obligation containing text, that is returned for a granted decision. |
Method Summary | |
---|---|
void |
accept(List<PartBean> parents,
MultiPartBeanVisitor visitor)
Allows traversing the model according to the visitor pattern. |
protected void |
appendPartDetails(StringBuilder sb)
Appends the details of this extended part for the string representation of this part. |
protected boolean |
checkLocalConsistency(PartProblemReporter reporter)
Checks if the extended state of this part is consistent. |
protected boolean |
comparablePart(BasicPart part)
Check if the part specified is comparable to this part. |
protected boolean |
equalPart(BasicPart part)
Compares another part to this part. |
protected String |
getSimpleClassName()
Returns the simple implementation class name of this class. |
String |
getText()
Returns the text of this obligation. |
protected int |
partHashCode()
Returns the hash code of the extended part state. |
void |
setText(String text)
Sets the text of this obligation. |
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, areIdentitiesUnique, areNamesUnique, checkLocalPartConsistency, equals, getIdentity, getName, hashCode, hasPartIdentity, hasPartName, isIdentityValid, isNameValid, 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.bean.PartBean |
---|
accept, addPropertyChangeListener, checkLocalPartConsistency, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, instanceOf, removePropertyChangeListener, toShortString |
Methods inherited from interface org.openpermis.policy.Part |
---|
equals, hashCode, toString |
Constructor Detail |
---|
protected BasicObligation(SerialNumber serialNumber, String text)
serialNumber
- the serial number of this part.text
- a String
.Method Detail |
---|
public String getText()
ObligationBean
getText
in interface ObligationBean
getText
in interface Obligation
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
.public void setText(String text)
ObligationBean
setText
in interface ObligationBean
text
- a String
.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.protected boolean equalPart(BasicPart part)
BasicPart
equalPart
in class BasicPart
part
- the part to compare to this part.BasicUtilities.equalObjects(Object, Object)
,
BasicPart
true
if the part supplied is considered equivalent to this part.protected int partHashCode()
BasicPart
partHashCode
in class BasicPart
BasicPart
,
BasicUtilities.multiHashCode(int...)
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
protected void appendPartDetails(StringBuilder sb)
BasicPart
appendPartDetails
in class BasicPart
sb
- the string builder to add the details to.BasicPart
,
BasicPart.appendDetails(StringBuilder, String, Object)
protected boolean checkLocalConsistency(PartProblemReporter reporter)
BasicPart
checkLocalConsistency
in class BasicPart
reporter
- the problem reporter to use, may be null
.
|
![]() |
||||||||
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