Class MessageAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.bgerp.action.base.BaseAction
org.bgerp.action.MessageAction
Message actions: viewing, listing, linking to processes and process messages
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSpecial action for edit and delete not owned messages.static final StringKey for storing counter in personalization map.Fields inherited from class BaseAction
l, log, MAPPER, PATH_JSP_ADMIN, PATH_JSP_OPEN, PATH_JSP_USER, PATH_JSP_USERMOB, setupFields inherited from class org.apache.struts.actions.DispatchAction
clazz, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardmessage(DynActionForm form, ConnectionSet conSet) Opens a single message, processed or newly loaded by type and system IDorg.apache.struts.action.ActionForwardmessageDelete(DynActionForm form, ConnectionSet conSet) Deletes the selected messages, grouped by type, up to a maximum quantityorg.apache.struts.action.ActionForwardmessageList(DynActionForm form, ConnectionSet conSet) Returns the list of processed or unprocessed messages across the allowed typesorg.apache.struts.action.ActionForwardmessageToggleTags(DynActionForm form, Connection con) Adds or removes the given tags of a messageorg.apache.struts.action.ActionForwardmessageUpdateProcess(DynActionForm form, Connection con) Links a message to a process, optionally saving a contact and notifying.org.apache.struts.action.ActionForwardmessageUpdateProcessToCopy(DynActionForm form, Connection con) Moves a message to a newly created copy of its processorg.apache.struts.action.ActionForwardmessageUpdateRead(DynActionForm form, Connection con) Sets or clears the read mark of a messageorg.apache.struts.action.ActionForwardmessageUpdateTags(DynActionForm form, Connection con) Replaces the set of tags of a messageorg.apache.struts.action.ActionForwardmodifyNotOwned(DynActionForm form, ConnectionSet conSet) Permission marker action for editing messages not owned by the userorg.apache.struts.action.ActionForwardnewMessageLoad(DynActionForm form, ConnectionSet conSet) Loads a new message of the given type from the external systemorg.apache.struts.action.ActionForwardprocessCreate(DynActionForm form, ConnectionSet conSet) Creates a process from a message and links it, then attaches the message to the processorg.apache.struts.action.ActionForwardprocessMessageCreateEdit(DynActionForm form, ConnectionSet conSet) Opens the editor for creating a process messageorg.apache.struts.action.ActionForwardprocessMessageCreateUpdate(DynActionForm form, Connection con) Saves a newly created process messageorg.apache.struts.action.ActionForwardprocessMessageDelete(DynActionForm form, ConnectionSet conSet) Deletes a process messageorg.apache.struts.action.ActionForwardprocessMessageEdit(DynActionForm form, ConnectionSet conSet) Opens the editor for an existing or reply process messageorg.apache.struts.action.ActionForwardprocessMessageList(DynActionForm form, ConnectionSet conSet) Returns the messages of a process and optionally its linked processesorg.apache.struts.action.ActionForwardprocessMessageUpdate(DynActionForm form, Connection con) Creates or updates an outgoing process messageorg.apache.struts.action.ActionForwardtemplate(DynActionForm form, ConnectionSet conSet) Returns a message template by IDorg.apache.struts.action.ActionForwardunspecified(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.Methods inherited from class BaseAction
checkModified, dispatchMethod, getParameter, html, html, json, json, permissionCheck, restoreRequestParams, unspecified, updatePersonalizationMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, execute, getMethod, getMethodName, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
UNPROCESSED_MESSAGES_PERSONAL_KEY
Key for storing counter in personalization map.- See Also:
-
ACTION_MODIFY_NOT_OWNED
Special action for edit and delete not owned messages.
-
-
Constructor Details
-
MessageAction
public MessageAction()Default constructor
-
-
Method Details
-
unspecified
public org.apache.struts.action.ActionForward unspecified(DynActionForm form, ConnectionSet conSet) throws Exception Description copied from class:BaseActionDefault action method if no parameter 'action' passed. Overwrite and implement.- Overrides:
unspecifiedin classBaseAction- Parameters:
form-conSet-- Returns:
- Throws:
Exception
-
message
public org.apache.struts.action.ActionForward message(DynActionForm form, ConnectionSet conSet) throws Exception Opens a single message, processed or newly loaded by type and system ID- Parameters:
form- request formconSet- connection set- Returns:
- HTML view forward
- Throws:
Exception- on any error
-
messageUpdateProcess
public org.apache.struts.action.ActionForward messageUpdateProcess(DynActionForm form, Connection con) throws Exception Links a message to a process, optionally saving a contact and notifying. Important, called also inprocessCreate(DynActionForm, ConnectionSet)- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-
messageUpdateTags
public org.apache.struts.action.ActionForward messageUpdateTags(DynActionForm form, Connection con) throws Exception Replaces the set of tags of a message- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-
messageToggleTags
public org.apache.struts.action.ActionForward messageToggleTags(DynActionForm form, Connection con) throws SQLException Adds or removes the given tags of a message- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
SQLException- on a database error
-
messageUpdateRead
public org.apache.struts.action.ActionForward messageUpdateRead(DynActionForm form, Connection con) throws Exception Sets or clears the read mark of a message- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-
messageUpdateProcessToCopy
public org.apache.struts.action.ActionForward messageUpdateProcessToCopy(DynActionForm form, Connection con) throws Exception Moves a message to a newly created copy of its process- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-
messageDelete
public org.apache.struts.action.ActionForward messageDelete(DynActionForm form, ConnectionSet conSet) throws Exception Deletes the selected messages, grouped by type, up to a maximum quantity- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
- Throws:
Exception- on any error
-
messageList
public org.apache.struts.action.ActionForward messageList(DynActionForm form, ConnectionSet conSet) throws Exception Returns the list of processed or unprocessed messages across the allowed types- Parameters:
form- request formconSet- connection set- Returns:
- HTML view forward
- Throws:
Exception- on any error
-
newMessageLoad
public org.apache.struts.action.ActionForward newMessageLoad(DynActionForm form, ConnectionSet conSet) throws Exception Loads a new message of the given type from the external system- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
- Throws:
Exception- on any error
-
processCreate
public org.apache.struts.action.ActionForward processCreate(DynActionForm form, ConnectionSet conSet) throws Exception Creates a process from a message and links it, then attaches the message to the process- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
- Throws:
Exception- on any error
-
processMessageList
public org.apache.struts.action.ActionForward processMessageList(DynActionForm form, ConnectionSet conSet) throws Exception Returns the messages of a process and optionally its linked processes- Parameters:
form- request formconSet- connection set- Returns:
- HTML view forward
- Throws:
Exception- on any error
-
processMessageCreateEdit
public org.apache.struts.action.ActionForward processMessageCreateEdit(DynActionForm form, ConnectionSet conSet) throws Exception Opens the editor for creating a process message- Parameters:
form- request formconSet- connection set- Returns:
- HTML view forward
- Throws:
Exception- on any error
-
processMessageCreateUpdate
public org.apache.struts.action.ActionForward processMessageCreateUpdate(DynActionForm form, Connection con) throws Exception Saves a newly created process message- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-
processMessageEdit
public org.apache.struts.action.ActionForward processMessageEdit(DynActionForm form, ConnectionSet conSet) throws Exception Opens the editor for an existing or reply process message- Parameters:
form- request formconSet- connection set- Returns:
- HTML view forward
- Throws:
Exception- on any error
-
processMessageUpdate
public org.apache.struts.action.ActionForward processMessageUpdate(DynActionForm form, Connection con) throws Exception Creates or updates an outgoing process message- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-
processMessageDelete
public org.apache.struts.action.ActionForward processMessageDelete(DynActionForm form, ConnectionSet conSet) throws Exception Deletes a process message- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
- Throws:
Exception- on any error
-
modifyNotOwned
public org.apache.struts.action.ActionForward modifyNotOwned(DynActionForm form, ConnectionSet conSet) Permission marker action for editing messages not owned by the user- Parameters:
form- request formconSet- connection set- Returns:
- never returns normally
-
template
Returns a message template by ID- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
-