|
![]() |
||||||||
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.BasicAction
public class BasicAction
Basic implementation of an ActionBean
.
Constructor Summary | |
---|---|
protected |
BasicAction(SerialNumber serialNumber,
String name)
Creates an action without parameters. |
protected |
BasicAction(SerialNumber serialNumber,
String name,
ParameterList parameters)
Creates an action with the specified parameters. |
Method Summary | |
---|---|
protected void |
appendPartDetails(StringBuilder sb)
Appends the details of this extended part for the string representation of this part. |
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. |
ParameterList |
getParameters()
Returns a parameter list. |
protected String |
getSimpleClassName()
Returns the simple implementation class name of this class. |
Map<String,?> |
mapArguments(List<?> arguments)
Returns a mapping of argument name to argument. |
boolean |
matches(String actionName,
List<?> arguments)
Returns whether this action matches an action name and a list of arguments. |
protected int |
partHashCode()
Returns the hash code of the extended part state. |
void |
setParameters(ParameterList parameters)
Sets parameter list. |
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, equals, getIdentity, getName, hashCode, hasPartIdentity, hasPartName, isChildCollectionValid, isChildNotNull, isChildNullOrValid, isChildValid, isIdentityValid, isNameValid, isPartValid, isValid, 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.Nameable |
---|
getName |
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.NameableBean |
---|
setName |
Methods inherited from interface org.openpermis.policy.Nameable |
---|
getName |
Constructor Detail |
---|
protected BasicAction(SerialNumber serialNumber, String name)
serialNumber
- the serial number of this part.name
- the name of the action.protected BasicAction(SerialNumber serialNumber, String name, ParameterList parameters)
serialNumber
- the serial number of this part.name
- the name of the action.parameters
- the ParameterList
.Method Detail |
---|
public boolean matches(String actionName, List<?> arguments)
Action
This action will match if its name matches the specified action name and if all arguments are assignable to the action's argument types.
matches
in interface Action
actionName
- the name to match.arguments
- an optional list of arguments to match.
true
if this action matches the specified name and arguments.public Map<String,?> mapArguments(List<?> arguments)
Action
mapArguments
in interface Action
arguments
- a list of arguments.
public ParameterList getParameters()
ActionBean
getParameters
in interface ActionBean
ParameterList
.public void setParameters(ParameterList parameters)
ActionBean
setParameters
in interface ActionBean
parameters
- the parameter list to set.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)
|
![]() |
||||||||
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