Package org.javlo.actions
Class DataAction
- java.lang.Object
-
- org.javlo.actions.DataAction
-
-
Field Summary
Fields Modifier and Type Field Description static StringSYNCHRO_CODE_PARAM
-
Constructor Summary
Constructors Constructor Description DataAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static FilecreateImage(ContentContext ctx, String importFolder, org.apache.commons.fileupload.FileItem imageItem, ImportConfigBean config, boolean content, String previousId, boolean rename)upload image and return the local file.static StringcreateImportFolder(String pageName)static StringcreateImportFolder(MenuElement inPage)protected static FilecreateOrUpdateGallery(ContentContext ctx, File targetFolder, String importFolder, Collection<org.apache.commons.fileupload.FileItem> imageItem, ImportConfigBean config, boolean content, String previousId)create image and return the local folder.StringgetActionGroupName()the group name of the actionbooleanhaveRight(ContentContext ctx, String action)static StringperformCreateFileName(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformDate(ContentContext ctx, User user)static StringperformFileExist(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformFileExistShared(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformLocation(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformMemory(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformNotifications(RequestService rs, ContentContext ctx, GlobalContext globalContext, NotificationService notif, User user, javax.servlet.http.HttpSession session)get the list of modification. option for request : markread=true, mark all notification returned as read. this method need user logger.static StringperformNotificationsAsRead(RequestService rs, ContentContext ctx, GlobalContext globalContext, NotificationService notif, User user, javax.servlet.http.HttpSession session)static StringperformOneTimeToken(ContentContext ctx, User user)static StringperformServerInfo(javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService requestService, GlobalContext globalContext, StaticConfig staticConfig, javax.servlet.http.HttpServletResponse response)static StringperformSessionId(ContentContext ctx, javax.servlet.http.HttpSession session, User user)static StringperformTab(RequestService rs, javax.servlet.http.HttpSession session)static StringperformTickets(ContentContext ctx)static StringperformToken(ContentContext ctx, User user)static StringperformUpdateAllArea(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformUpdateArea(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformUpload(RequestService rs, ContentContext ctx, GlobalContext gc, ContentService cs, User user, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformUploadscreenshot(RequestService rs, ContentContext ctx, GlobalContext globalContext, User user, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformUploadShared(RequestService rs, ContentContext ctx, GlobalContext gc, ContentService cs, User user, MessageRepository messageRepository, I18nAccess i18nAccess)static voidupdateAreaAjax(ContentContext ctx, String area)static StringuploadContent(RequestService rs, ContentContext ctx, GlobalContext gc, ContentService cs, User user, MessageRepository messageRepository, I18nAccess i18nAccess, ImportConfigBean config, boolean rename)
-
-
-
Field Detail
-
SYNCHRO_CODE_PARAM
public static final String SYNCHRO_CODE_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IActionthe group name of the action- Specified by:
getActionGroupNamein interfaceIAction- Returns:
- a group name.
-
performNotificationsAsRead
public static String performNotificationsAsRead(RequestService rs, ContentContext ctx, GlobalContext globalContext, NotificationService notif, User user, javax.servlet.http.HttpSession session) throws ParseException
- Throws:
ParseException
-
performNotifications
public static String performNotifications(RequestService rs, ContentContext ctx, GlobalContext globalContext, NotificationService notif, User user, javax.servlet.http.HttpSession session) throws ParseException
get the list of modification. option for request : markread=true, mark all notification returned as read. this method need user logger.- Returns:
- Throws:
ParseException
-
performToken
public static String performToken(ContentContext ctx, User user)
-
performDate
public static String performDate(ContentContext ctx, User user)
-
performServerInfo
public static String performServerInfo(javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService requestService, GlobalContext globalContext, StaticConfig staticConfig, javax.servlet.http.HttpServletResponse response)
-
performOneTimeToken
public static String performOneTimeToken(ContentContext ctx, User user)
-
updateAreaAjax
public static void updateAreaAjax(ContentContext ctx, String area) throws Exception
- Throws:
Exception
-
performUpdateArea
public static String performUpdateArea(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performUpdateAllArea
public static String performUpdateAllArea(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performTickets
public static String performTickets(ContentContext ctx) throws Exception
- Throws:
Exception
-
performUpload
public static String performUpload(RequestService rs, ContentContext ctx, GlobalContext gc, ContentService cs, User user, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performUploadShared
public static String performUploadShared(RequestService rs, ContentContext ctx, GlobalContext gc, ContentService cs, User user, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
createImage
protected static File createImage(ContentContext ctx, String importFolder, org.apache.commons.fileupload.FileItem imageItem, ImportConfigBean config, boolean content, String previousId, boolean rename) throws Exception
upload image and return the local file.- Parameters:
ctx-importFolder-imageItem-config-- Returns:
- the local file
- Throws:
Exception
-
createOrUpdateGallery
protected static File createOrUpdateGallery(ContentContext ctx, File targetFolder, String importFolder, Collection<org.apache.commons.fileupload.FileItem> imageItem, ImportConfigBean config, boolean content, String previousId) throws Exception
create image and return the local folder.- Parameters:
ctx-targetFolder-importFolder-imageItem-config-- Returns:
- Throws:
Exception
-
createImportFolder
public static final String createImportFolder(String pageName) throws Exception
- Throws:
Exception
-
createImportFolder
public static final String createImportFolder(MenuElement inPage) throws Exception
- Throws:
Exception
-
uploadContent
public static String uploadContent(RequestService rs, ContentContext ctx, GlobalContext gc, ContentService cs, User user, MessageRepository messageRepository, I18nAccess i18nAccess, ImportConfigBean config, boolean rename) throws Exception
- Throws:
Exception
-
performSessionId
public static String performSessionId(ContentContext ctx, javax.servlet.http.HttpSession session, User user)
-
performTab
public static String performTab(RequestService rs, javax.servlet.http.HttpSession session)
-
performMemory
public static String performMemory(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws NumberFormatException, IOException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
-
performLocation
public static String performLocation(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws NumberFormatException, IOException
- Throws:
NumberFormatExceptionIOException
-
performCreateFileName
public static String performCreateFileName(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
-
performFileExist
public static String performFileExist(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performFileExistShared
public static String performFileExistShared(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performUploadscreenshot
public static String performUploadscreenshot(RequestService rs, ContentContext ctx, GlobalContext globalContext, User user, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
haveRight
public boolean haveRight(ContentContext ctx, String action)
-
-