|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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(String theReasonKey,
String theReason)
construct a veto |
Method Summary | |
---|---|
void |
assignVetoType(VetoType vetoType1,
boolean overwriteIfExisting)
veto type. |
Set<String> |
attributeKeySet()
return the keyset of attributes, but never return null. |
Object |
getAttribute(String key)
get the value of a key or null if not there |
String |
getReason()
default text that would be shown to user if there is no externalized string available. |
String |
getReasonKey()
key of the reason, e.g. |
VetoType |
getVetoType()
veto type. |
void |
putAttribute(String key,
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(String theReasonKey, 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 Object getAttribute(String key)
key
-
public void putAttribute(String key, Object value)
key
- value
- public Set<String> attributeKeySet()
public String getReasonKey()
public String getReason()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |