|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.dialog.BaseDialogBean
org.alfresco.web.bean.wizard.BaseWizardBean
org.alfresco.web.bean.actions.BaseActionWizard
public abstract class BaseActionWizard
Base class for the "Run Action" and "Create Rule" wizards.
Nested Class Summary | |
---|---|
static class |
BaseActionWizard.RecipientWrapper
Simple wrapper class for email recipient fields |
Field Summary | |
---|---|
protected java.lang.String |
action
|
protected java.util.Map |
actionHandlers
|
protected java.util.List |
actions
|
protected java.util.List |
addableAspects
|
protected javax.faces.model.DataModel |
allActionsDataModel
|
protected java.util.List |
allActionsProperties
|
protected java.util.List |
commonAspects
|
protected java.util.Map |
currentActionProperties
|
protected javax.faces.model.DataModel |
currentEmailRecipientsDataModel
|
protected boolean |
editingAction
|
protected java.util.List |
encodings
|
protected static java.lang.String |
ERROR_ACTION_CANNOT_BE_EXECUTE_REPEATEDLY
|
protected java.util.List |
imageTransformers
|
protected static java.lang.String |
NO_PARAMS_MARKER
|
protected java.util.List |
objectTypes
|
protected static java.lang.String |
PROP_ACTION_EMAIL_RECIPIENTS
|
protected static java.lang.String |
PROP_ACTION_NAME
|
protected static java.lang.String |
PROP_ACTION_SUMMARY
|
protected java.util.List |
removableAspects
|
protected java.lang.String |
returnViewId
|
protected java.util.List |
testableAspects
|
protected java.util.List |
transformers
|
protected java.util.List |
users
|
protected java.lang.String |
usingTemplate
|
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
BaseActionWizard()
|
Method Summary | |
---|---|
void |
addAction()
Adds the action just setup by the user to the list of actions for the rule |
void |
addRecipient(javax.faces.event.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(javax.faces.event.ActionEvent event)
Action handler called to discard the template from the email body |
java.lang.String |
displayLabelForAuthority(java.lang.String authority)
|
void |
editAction()
Sets up the context for editing existing action values |
java.lang.String |
getAction()
|
java.util.Map |
getActionProperties()
|
java.util.List |
getActions()
|
protected org.alfresco.service.cmr.action.ActionService |
getActionService()
|
java.util.List |
getAddableAspects()
Returns a list of aspects that can be added |
javax.faces.model.DataModel |
getAllActionsDataModel()
Returns the properties for all the actions as a JSF DataModel |
protected org.alfresco.service.cmr.security.AuthorityService |
getAuthorityService()
|
protected java.util.List |
getCommonAspects()
Returns the aspects that are available in all scenarios i.e. |
java.util.List |
getEmailRecipients(java.util.Map actionProperties)
Returns the current list of email recipients |
javax.faces.model.DataModel |
getEmailRecipientsDataModel()
Returns the properties for email recipients JSF DataModel |
java.util.List |
getImageTransformers()
Returns the image transformers that are available |
protected org.alfresco.service.cmr.repository.MimetypeService |
getMimetypeService()
|
java.util.List |
getObjectTypes()
|
protected org.alfresco.service.cmr.security.PersonService |
getPersonService()
|
java.util.List |
getRemovableAspects()
Returns a list of aspects that can be removed |
java.util.List |
getTestableAspects()
Returns a list of aspects that can be tested i.e. |
java.util.List |
getTransformers()
Returns the transformers that are available |
java.util.List |
getUsers()
|
java.lang.String |
getUsingTemplate()
|
protected void |
goToPage(javax.faces.context.FacesContext context,
java.lang.String viewId)
Navigates to the given page, used to go back and forth between the wizard and the actions settings pages |
void |
init(java.util.Map parameters)
Initialises the dialog bean |
protected void |
initialiseActionHandlers()
Initialises the action handlers from the current configuration. |
void |
insertTemplate(javax.faces.event.ActionEvent event)
Action handler called to insert a template as the email body |
protected boolean |
isActionPresent(java.lang.String actionName)
|
boolean |
isFinishButtonDisabled()
|
void |
promptForActionValues()
Displays the settings page for the current action being added |
protected java.util.List |
readAspectsConfig(javax.faces.context.FacesContext context,
org.springframework.extensions.config.ConfigElement aspectsCfg)
|
void |
removeAction()
Removes the requested action from the list |
void |
removeRecipient(javax.faces.event.ActionEvent event)
Action handler called when the Remove icon is pressed to remove an email recipient |
void |
setAction(java.lang.String action)
|
void |
setActionService(org.alfresco.service.cmr.action.ActionService actionService)
Sets the action service |
void |
setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
|
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the mimetype service |
void |
setPersonService(org.alfresco.service.cmr.security.PersonService personService)
|
void |
setUsingTemplate(java.lang.String usingTemplate)
|
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean |
---|
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle, next |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.web.bean.dialog.IDialogBean |
---|
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getFinishButtonDisabled, getMoreActionsConfigId, isFinished, restored |
Field Detail |
---|
protected static final java.lang.String PROP_ACTION_NAME
protected static final java.lang.String PROP_ACTION_SUMMARY
protected static final java.lang.String PROP_ACTION_EMAIL_RECIPIENTS
protected static final java.lang.String NO_PARAMS_MARKER
protected static final java.lang.String ERROR_ACTION_CANNOT_BE_EXECUTE_REPEATEDLY
protected java.util.List actions
protected java.util.List transformers
protected java.util.List imageTransformers
protected java.util.List commonAspects
protected java.util.List removableAspects
protected java.util.List addableAspects
protected java.util.List testableAspects
protected java.util.List users
protected java.util.List encodings
protected java.util.List objectTypes
protected transient javax.faces.model.DataModel allActionsDataModel
protected transient javax.faces.model.DataModel currentEmailRecipientsDataModel
protected boolean editingAction
protected java.lang.String action
protected java.lang.String usingTemplate
protected java.lang.String returnViewId
protected java.util.Map currentActionProperties
protected java.util.List allActionsProperties
protected java.util.Map actionHandlers
Constructor Detail |
---|
public BaseActionWizard()
Method Detail |
---|
public void init(java.util.Map parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic java.lang.String getAction()
public void setAction(java.lang.String action)
action
- Sets the selected actionpublic java.lang.String getUsingTemplate()
public void setUsingTemplate(java.lang.String usingTemplate)
usingTemplate
- Template that has been inserted by a user for the email body.public javax.faces.model.DataModel getAllActionsDataModel()
public javax.faces.model.DataModel getEmailRecipientsDataModel()
public java.util.Map getActionProperties()
public java.util.List getActions()
public java.util.List getRemovableAspects()
public java.util.List getAddableAspects()
public java.util.List getTestableAspects()
public java.util.List getObjectTypes()
public java.util.List getUsers()
public java.util.List getTransformers()
public java.util.List getImageTransformers()
public java.util.List getEmailRecipients(java.util.Map actionProperties)
public void promptForActionValues()
public void editAction()
public void addAction()
public void removeAction()
public void cancelAddAction()
public void addRecipient(javax.faces.event.ActionEvent event)
public void removeRecipient(javax.faces.event.ActionEvent event)
public void insertTemplate(javax.faces.event.ActionEvent event)
public void discardTemplate(javax.faces.event.ActionEvent event)
public void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
actionService
- the action serviceprotected org.alfresco.service.cmr.action.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(org.alfresco.service.cmr.security.PersonService personService)
personService
- The personService to set.protected org.alfresco.service.cmr.security.PersonService getPersonService()
public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
authorityService
- The authorityService to set.protected org.alfresco.service.cmr.security.AuthorityService getAuthorityService()
public java.lang.String displayLabelForAuthority(java.lang.String authority)
protected void goToPage(javax.faces.context.FacesContext context, java.lang.String viewId)
context
- FacesContextviewId
- The viewId to go toprotected void initialiseActionHandlers()
protected java.util.List getCommonAspects()
protected java.util.List readAspectsConfig(javax.faces.context.FacesContext context, org.springframework.extensions.config.ConfigElement aspectsCfg)
public boolean isFinishButtonDisabled()
protected boolean isActionPresent(java.lang.String actionName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |