public abstract class BaseActionWizard extends BaseWizardBean
Modifier and Type | Class and Description |
---|---|
static class |
BaseActionWizard.RecipientWrapper
Simple wrapper class for email recipient fields
|
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
BaseActionWizard() |
Modifier and Type | Method and Description |
---|---|
void |
addAction()
Adds the action just setup by the user to the list of actions for the rule
|
void |
addRecipient(ActionEvent event)
Action handler called when the Add button is pressed to add an email recipient
|
void |
cancelAddAction()
Cancels the addition of the action
|
void |
discardTemplate(ActionEvent event)
Action handler called to discard the template from the email body
|
String |
displayLabelForAuthority(String authority) |
void |
editAction()
Sets up the context for editing existing action values
|
String |
getAction() |
Map<String,Serializable> |
getActionProperties() |
List<SelectItem> |
getActions() |
protected ActionService |
getActionService() |
List<SelectItem> |
getAddableAspects()
Returns a list of aspects that can be added
|
DataModel |
getAllActionsDataModel()
Returns the properties for all the actions as a JSF DataModel
|
protected AuthorityService |
getAuthorityService() |
protected List<SelectItem> |
getCommonAspects()
Returns the aspects that are available in all scenarios i.e.
|
List<BaseActionWizard.RecipientWrapper> |
getEmailRecipients(Map<String,Serializable> actionProperties)
Returns the current list of email recipients
|
DataModel |
getEmailRecipientsDataModel()
Returns the properties for email recipients JSF DataModel
|
List<SelectItem> |
getImageTransformers()
Returns the image transformers that are available
|
protected org.alfresco.service.cmr.repository.MimetypeService |
getMimetypeService() |
List<SelectItem> |
getObjectTypes() |
protected PersonService |
getPersonService() |
List<SelectItem> |
getRemovableAspects()
Returns a list of aspects that can be removed
|
List<SelectItem> |
getTestableAspects()
Returns a list of aspects that can be tested i.e.
|
List<SelectItem> |
getTransformers()
Returns the transformers that are available
|
List<SelectItem> |
getUsers() |
String |
getUsingTemplate() |
protected void |
goToPage(FacesContext context,
String viewId)
Navigates to the given page, used to go back and forth between the
wizard and the actions settings pages
|
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
protected void |
initialiseActionHandlers()
Initialises the action handlers from the current configuration.
|
void |
insertTemplate(ActionEvent event)
Action handler called to insert a template as the email body
|
protected boolean |
isActionPresent(String actionName) |
boolean |
isFinishButtonDisabled() |
void |
promptForActionValues()
Displays the settings page for the current action being added
|
protected List<SelectItem> |
readAspectsConfig(FacesContext context,
org.springframework.extensions.config.ConfigElement aspectsCfg) |
void |
removeAction()
Removes the requested action from the list
|
void |
removeRecipient(ActionEvent event)
Action handler called when the Remove icon is pressed to remove an email recipient
|
void |
setAction(String action) |
void |
setActionService(ActionService actionService)
Sets the action service
|
void |
setAuthorityService(AuthorityService authorityService) |
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the mimetype service
|
void |
setPersonService(PersonService personService) |
void |
setUsingTemplate(String usingTemplate) |
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle, next
cancel, doPostCommitProcessing, finish, finishImpl, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getFinishButtonDisabled, getMoreActionsConfigId, isFinished, restored
protected static final String PROP_ACTION_NAME
protected static final String PROP_ACTION_SUMMARY
protected static final String PROP_ACTION_EMAIL_RECIPIENTS
protected static final String NO_PARAMS_MARKER
protected static final String ERROR_ACTION_CANNOT_BE_EXECUTE_REPEATEDLY
protected List<SelectItem> actions
protected List<SelectItem> transformers
protected List<SelectItem> imageTransformers
protected List<SelectItem> commonAspects
protected List<SelectItem> removableAspects
protected List<SelectItem> addableAspects
protected List<SelectItem> testableAspects
protected List<SelectItem> users
protected List<SelectItem> encodings
protected List<SelectItem> objectTypes
protected transient DataModel allActionsDataModel
protected transient DataModel currentEmailRecipientsDataModel
protected boolean editingAction
protected String action
protected String usingTemplate
protected String returnViewId
protected Map<String,Serializable> currentActionProperties
protected List<Map<String,Serializable>> allActionsProperties
public void init(Map<String,String> parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic String getAction()
public void setAction(String action)
action
- Sets the selected actionpublic String getUsingTemplate()
public void setUsingTemplate(String usingTemplate)
usingTemplate
- Template that has been inserted by a user for the email body.public DataModel getAllActionsDataModel()
public DataModel getEmailRecipientsDataModel()
public Map<String,Serializable> getActionProperties()
public List<SelectItem> getActions()
public List<SelectItem> getRemovableAspects()
public List<SelectItem> getAddableAspects()
public List<SelectItem> getTestableAspects()
public List<SelectItem> getObjectTypes()
public List<SelectItem> getUsers()
public List<SelectItem> getTransformers()
public List<SelectItem> getImageTransformers()
public List<BaseActionWizard.RecipientWrapper> getEmailRecipients(Map<String,Serializable> actionProperties)
public void promptForActionValues()
public void editAction()
public void addAction()
public void removeAction()
public void cancelAddAction()
public void addRecipient(ActionEvent event)
public void removeRecipient(ActionEvent event)
public void insertTemplate(ActionEvent event)
public void discardTemplate(ActionEvent event)
public void setActionService(ActionService actionService)
actionService
- the action serviceprotected ActionService getActionService()
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
mimetypeService
- The mimetype serviceprotected org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()
public void setPersonService(PersonService personService)
personService
- The personService to set.protected PersonService getPersonService()
public void setAuthorityService(AuthorityService authorityService)
authorityService
- The authorityService to set.protected AuthorityService getAuthorityService()
protected void goToPage(FacesContext context, String viewId)
context
- FacesContextviewId
- The viewId to go toprotected void initialiseActionHandlers()
protected List<SelectItem> getCommonAspects()
protected List<SelectItem> readAspectsConfig(FacesContext context, org.springframework.extensions.config.ConfigElement aspectsCfg)
public boolean isFinishButtonDisabled()
protected boolean isActionPresent(String actionName)
Copyright © 2005–2017 Alfresco Software. All rights reserved.