Package org.javlo.module.ticket
Class TicketAction
- java.lang.Object
-
- org.javlo.actions.AbstractModuleAction
-
- org.javlo.module.ticket.TicketAction
-
- All Implemented Interfaces:
IAction
,IModuleAction
public class TicketAction extends AbstractModuleAction
-
-
Field Summary
Fields Modifier and Type Field Description static String
MODULE_NAME
-
Constructor Summary
Constructors Constructor Description TicketAction()
-
Method Summary
-
Methods inherited from class org.javlo.actions.AbstractModuleAction
getModuleContext, haveRight, haveRight, isLightInterface, performChangeRenderer, performSearch, performWizard
-
-
-
-
Field Detail
-
MODULE_NAME
public static final String MODULE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IAction
the group name of the action- Returns:
- a group name.
-
getMyTicket
public static Map<String,TicketUserWrapper> getMyTicket(ContentContext ctx) throws Exception
- Throws:
Exception
-
prepare
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
Description copied from interface:IModuleAction
method called before module rendering- Specified by:
prepare
in interfaceIModuleAction
- Overrides:
prepare
in classAbstractModuleAction
- Parameters:
ctx
- the current context.modulesContext
- the context of the module. You can call getCurrentModule for recover the module.- Returns:
- eventually the error message
- Throws:
Exception
-
performUpload
public static String performUpload(RequestService rs, ContentContext ctx, GlobalContext globalContext, User user, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performUpdate
public static String performUpdate(RequestService rs, ContentContext ctx, GlobalContext globalContext, User user, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
computeChangesAndSendNotifications
public static String computeChangesAndSendNotifications(ContentContext ctx, GlobalContext globalContext)
Send notifications for tickets modified since the last notification time ONLY if there is no modification since 5 min (defined inStaticConfig.getTimeBetweenChangeNotification()
) Not a webaction, called fromViewActions.performSendTicketChangeNotifications(ContentContext, GlobalContext)
- Parameters:
ctx
-globalContext
-- Returns:
- null
-
computeOpenAndSendNotifications
public static String computeOpenAndSendNotifications(ContentContext ctx, GlobalContext globalContext)
Send notifications for tickets modified since the last notification time ONLY if there is no modification since 5 min (defined inStaticConfig.getTimeBetweenChangeNotification()
) Not a webaction, called fromViewActions.performSendTicketChangeNotifications(ContentContext, GlobalContext)
- Parameters:
ctx
-globalContext
-- Returns:
- null
-
-