|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.policy.PolicyImplementation
com.waveset.policy.EchoPolicy
A test policy that prints it's attributes and input arguments to the console.
This was used during very early testing, but isn't used much anymore. We might consider removing it, since it will clutter up the GUI display of available policies.
Field Summary | |
static java.lang.String |
ATT1
An integer policy attribute. |
static java.lang.String |
ATT2
A string policy attribute. |
static java.lang.String |
code_id
|
static java.lang.String |
DESC
The description of this policy. |
static java.lang.String |
PROTONAME
The name of the prototype instance. |
Fields inherited from class com.waveset.policy.PolicyImplementation |
ALL_CHARS, NO_VALUE, trace |
Constructor Summary | |
EchoPolicy()
Construct an empty echo policy. |
Method Summary | |
void |
check(Policy policy,
java.lang.Object value,
java.util.Map params,
java.util.List pwdhistory,
java.lang.String owner)
similar to check, above. |
void |
check(Policy policy,
java.lang.Object value,
java.lang.String owner)
Echos the policy attributes and arguments. |
Policy |
getPrototype()
Returns the prototype instance for this policy. |
Methods inherited from class com.waveset.policy.PolicyImplementation |
checkPolicyArg, generate, generate, generateByteArray, getAllowedAttributeValues, getAttributeFromUser, getBooleanAttribute, getContext, getIntAttribute, getIntAttribute, getObjectAttribute, getStringAttribute, getStringListAttribute, getUserPropertyName, getValue, setAttributeOnUser, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String PROTONAME
public static final java.lang.String DESC
public static final java.lang.String ATT1
public static final java.lang.String ATT2
Constructor Detail |
public EchoPolicy()
Method Detail |
public Policy getPrototype() throws WavesetException
getPrototype
in class PolicyImplementation
WavesetException
public void check(Policy policy, java.lang.Object value, java.lang.String owner) throws PolicyViolation, WavesetException
check
in class PolicyImplementation
PolicyViolation
- if the value violates the policy.
WavesetException
- if an internal error was encountered.public void check(Policy policy, java.lang.Object value, java.util.Map params, java.util.List pwdhistory, java.lang.String owner) throws PolicyViolation, WavesetException
PolicyImplementation
check
in class PolicyImplementation
PolicyViolation
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |