public abstract class AbstractActionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
aaKey
Action name in a Additional Action dictionary
|
protected COSDictionary |
actionDictionnary
The action dictionary checked by this class
|
private ActionManagerFactory |
actionFact
ActionManager factory used to create new ActionManager
|
protected PreflightContext |
context
The validation context
|
Constructor and Description |
---|
AbstractActionManager(ActionManagerFactory amFact,
COSDictionary adict,
PreflightContext ctx,
java.lang.String aaKey) |
Modifier and Type | Method and Description |
---|---|
COSDictionary |
getActionDictionnary() |
java.lang.String |
getAdditionalActionKey() |
protected abstract boolean |
innerValid()
This method must be implemented by inherited classes to process specific validation.
|
boolean |
isAdditionalAction() |
boolean |
valid()
Call the
valid(boolean) method with the additionalActionAuth set to false. |
boolean |
valid(boolean additionalActionAuth)
Validate an Action dictionary.
|
protected boolean |
validNextActions()
This method create a list of Action Managers which represent actions in the Next entry of the current action
dictionary.
|
private ActionManagerFactory actionFact
private java.lang.String aaKey
protected COSDictionary actionDictionnary
protected PreflightContext context
AbstractActionManager(ActionManagerFactory amFact, COSDictionary adict, PreflightContext ctx, java.lang.String aaKey)
amFact
- Instance of ActionManagerFactory used to create ActionManager to check Next actions.adict
- the COSDictionary of the action wrapped by this class.ctx
- the validation context .aaKey
- The name of the key which identify the action in a additional action dictionary.public boolean isAdditionalAction()
public COSDictionary getActionDictionnary()
public java.lang.String getAdditionalActionKey()
protected boolean validNextActions() throws ValidationException
ValidationException
public boolean valid() throws ValidationException
valid(boolean)
method with the additionalActionAuth set to false.ValidationException
public boolean valid(boolean additionalActionAuth) throws ValidationException
additionalActionAuth
- boolean to know if an additional action is authorized.ValidationException
protected abstract boolean innerValid() throws ValidationException
ValidationException