|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.internet2.middleware.grouper.hooks.logic.HookVeto
public class HookVeto
base class for grouper hook veto. Throw this or a subclass to veto an action (needs to be thrown before a commit)
Constructor Summary | |
---|---|
HookVeto(java.lang.String theReasonKey,
java.lang.String theReason)
construct a veto |
Method Summary | |
---|---|
void |
assignVetoType(VetoType vetoType1,
boolean overwriteIfExisting)
veto type. |
java.util.Set<java.lang.String> |
attributeKeySet()
return the keyset of attributes, but never return null. |
java.lang.Object |
getAttribute(java.lang.String key)
get the value of a key or null if not there |
java.lang.String |
getReason()
default text that would be shown to user if there is no externalized string available. |
java.lang.String |
getReasonKey()
key of the reason, e.g. something that could be used in an externalized string file e.g. for the UI. |
VetoType |
getVetoType()
veto type. |
void |
putAttribute(java.lang.String key,
java.lang.Object value)
put an attribute |
void |
setVetoType(VetoType vetoType1)
veto type. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HookVeto(java.lang.String theReasonKey, java.lang.String theReason)
theReasonKey
- key of the reason, e.g. something that could be used in an
externalized string file e.g. for the UI. e.g. hook.veto.group.invalidExtensiontheReason
- default text that would be shown to user if there is no externalized
string available. e.g. 'Invalid ID for group. ID must be less than
20 characters.Method Detail |
---|
public VetoType getVetoType()
public void setVetoType(VetoType vetoType1)
vetoType1
- the vetoType to setpublic void assignVetoType(VetoType vetoType1, boolean overwriteIfExisting)
vetoType1
- the vetoType to setoverwriteIfExisting
- true to overwrite if existingpublic java.lang.Object getAttribute(java.lang.String key)
key
-
public void putAttribute(java.lang.String key, java.lang.Object value)
key
- value
- public java.util.Set<java.lang.String> attributeKeySet()
public java.lang.String getReasonKey()
public java.lang.String getReason()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |