Package org.javlo.actions
Class ViewActions
- java.lang.Object
-
- org.javlo.actions.ViewActions
-
-
Constructor Summary
Constructors Constructor Description ViewActions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionGroupName()
the group name of the actionboolean
haveRight(ContentContext ctx, String action)
static void
main(String[] args)
static String
performAcceptCookies(ContentContext ctx)
static String
performAcceptCookiesType(ContentContext ctx, RequestService rs)
static String
performCheckChangesAndNotify(ContentContext ctx, GlobalContext globalContext, ContentService content)
Send notifications for pages modified between TimeA and TimeB.static String
performCheckChangesAndNotifyDynamicComponent(ContentContext ctx, GlobalContext globalContext, ContentService content)
Send notifications for pages modified between TimeA and TimeB.static String
performDisabledalternativetemplate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static String
performForcedefaultdevice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static String
performLanguage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static String
performPagination(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static String
performRefuseCookies(ContentContext ctx)
static String
performReloadconfig(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static String
performSendTicketChangeNotifications(ContentContext ctx, GlobalContext globalContext)
static String
performTest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestService rs, ContentContext ctx)
static String
performUnabledalternativetemplate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
String
performUpdateFocus(RequestService rs, ContentContext ctx, GlobalContext globalContext, FileModuleContext fileModuleContext, I18nAccess i18nAccess, MessageRepository messageRepository)
-
-
-
Field Detail
-
logger
protected static Logger logger
create a static logger.
-
-
Method Detail
-
performLanguage
public static String performLanguage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
performReloadconfig
public static String performReloadconfig(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
performTest
public static String performTest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestService rs, ContentContext ctx) throws Exception
- Throws:
Exception
-
performUnabledalternativetemplate
public static String performUnabledalternativetemplate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
performDisabledalternativetemplate
public static String performDisabledalternativetemplate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
performForcedefaultdevice
public static String performForcedefaultdevice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
performPagination
public static String performPagination(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
performCheckChangesAndNotify
public static String performCheckChangesAndNotify(ContentContext ctx, GlobalContext globalContext, ContentService content)
Send notifications for pages modified between TimeA and TimeB. The timeline is TimeB -> TimeA -> Now .
After the process: TimeA become TimeB and Now become TimeA.- Parameters:
ctx
-globalContext
-content
-- Returns:
-
performCheckChangesAndNotifyDynamicComponent
public static String performCheckChangesAndNotifyDynamicComponent(ContentContext ctx, GlobalContext globalContext, ContentService content)
Send notifications for pages modified between TimeA and TimeB. The timeline is TimeB -> TimeA -> Now .
After the process: TimeA become TimeB and Now become TimeA.- Parameters:
ctx
-globalContext
-content
-- Returns:
-
performSendTicketChangeNotifications
public static String performSendTicketChangeNotifications(ContentContext ctx, GlobalContext globalContext)
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IAction
the group name of the action- Specified by:
getActionGroupName
in interfaceIAction
- Returns:
- a group name.
-
performAcceptCookies
public static String performAcceptCookies(ContentContext ctx) throws Exception
- Throws:
Exception
-
performAcceptCookiesType
public static String performAcceptCookiesType(ContentContext ctx, RequestService rs) throws Exception
- Throws:
Exception
-
performUpdateFocus
public String performUpdateFocus(RequestService rs, ContentContext ctx, GlobalContext globalContext, FileModuleContext fileModuleContext, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
- Throws:
Exception
-
performRefuseCookies
public static String performRefuseCookies(ContentContext ctx) throws Exception
- Throws:
Exception
-
haveRight
public boolean haveRight(ContentContext ctx, String action)
-
main
public static void main(String[] args)
-
-