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 StringgetActionGroupName()the group name of the actionbooleanhaveRight(ContentContext ctx, String action)static voidmain(String[] args)static StringperformAcceptCookies(ContentContext ctx)static StringperformAcceptCookiesType(ContentContext ctx, RequestService rs)static StringperformCheckChangesAndNotify(ContentContext ctx, GlobalContext globalContext, ContentService content)Send notifications for pages modified between TimeA and TimeB.static StringperformCheckChangesAndNotifyDynamicComponent(ContentContext ctx, GlobalContext globalContext, ContentService content)Send notifications for pages modified between TimeA and TimeB.static StringperformDisabledalternativetemplate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)static StringperformForcedefaultdevice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)static StringperformLanguage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)static StringperformPagination(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)static StringperformRefuseCookies(ContentContext ctx)static StringperformReloadconfig(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)static StringperformSendTicketChangeNotifications(ContentContext ctx, GlobalContext globalContext)static StringperformTest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestService rs, ContentContext ctx)static StringperformUnabledalternativetemplate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)StringperformUpdateFocus(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:IActionthe group name of the action- Specified by:
getActionGroupNamein 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)
-
-