public class AddOrgUnitAction extends InitializeContentWorkflowAction
Modifier and Type | Field and Description |
---|---|
private CurrentUserProvider |
_currentUserProvider |
protected ObservationManager |
_observationManager
Observation manager available to subclasses.
|
protected AmetysObjectResolver |
_resolver
Ametys object resolver available to subclasses.
|
private RootOrgUnitProvider |
_rootOUProvider |
static String |
CONTENT_PARENT_ID
Constant for parent identifier
|
_workflowProvider
manager
EMPTY_MAP
Constructor and Description |
---|
AddOrgUnitAction() |
Modifier and Type | Method and Description |
---|---|
protected Map |
_act(Redirector redirector,
Map objectModel,
String source,
Parameters parameters,
int actionId,
Map inputs)
Initialize or act on a workflow instance.
|
protected void |
applyChangesToParent(OrgUnit ou)
Apply changes to parent
OrgUnit |
void |
service(ServiceManager smanager) |
_getInputs, _getParameters, _getWorkflowName, _processWorkflowException
_getActionResult, _getExceptionContext
_getActionId, _getFailConditions, _getWorkflowErrors, _getWorkflowWarns, _processInvalidActionException, act, initialize
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String CONTENT_PARENT_ID
protected AmetysObjectResolver _resolver
protected ObservationManager _observationManager
private RootOrgUnitProvider _rootOUProvider
private CurrentUserProvider _currentUserProvider
public AddOrgUnitAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
protected Map _act(Redirector redirector, Map objectModel, String source, Parameters parameters, int actionId, Map inputs) throws com.opensymphony.workflow.InvalidInputException, com.opensymphony.workflow.WorkflowException
AbstractWorkflowAction
_act
in class InitializeContentWorkflowAction
redirector
- the redirector.objectModel
- the current object model.source
- the current source.parameters
- the current parameters.actionId
- the action id to use.inputs
- the inputs to usecom.opensymphony.workflow.InvalidInputException
- if the action id is not valid.com.opensymphony.workflow.WorkflowException
- if the action failed.protected void applyChangesToParent(OrgUnit ou) throws com.opensymphony.workflow.WorkflowException
OrgUnit
ou
- The parent orgunitcom.opensymphony.workflow.WorkflowException
- if failed to apply changes to parent