Package org.javlo.actions
Class DataAction
- java.lang.Object
-
- org.javlo.actions.DataAction
-
-
Field Summary
Fields Modifier and Type Field Description static String
SYNCHRO_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 File
createImage(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 String
createImportFolder(String pageName)
static String
createImportFolder(MenuElement inPage)
protected static File
createOrUpdateGallery(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.String
getActionGroupName()
the group name of the actionboolean
haveRight(ContentContext ctx, String action)
static String
performCreateFileName(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performDate(ContentContext ctx, User user)
static String
performFileExist(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performFileExistShared(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performLocation(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performMemory(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performNotifications(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 String
performNotificationsAsRead(RequestService rs, ContentContext ctx, GlobalContext globalContext, NotificationService notif, User user, javax.servlet.http.HttpSession session)
static String
performOneTimeToken(ContentContext ctx, User user)
static String
performServerInfo(javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService requestService, GlobalContext globalContext, StaticConfig staticConfig, javax.servlet.http.HttpServletResponse response)
static String
performSessionId(ContentContext ctx, javax.servlet.http.HttpSession session, User user)
static String
performTab(RequestService rs, javax.servlet.http.HttpSession session)
static String
performTickets(ContentContext ctx)
static String
performToken(ContentContext ctx, User user)
static String
performUpdateAllArea(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performUpdateArea(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performUpload(RequestService rs, ContentContext ctx, GlobalContext gc, ContentService cs, User user, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performUploadscreenshot(RequestService rs, ContentContext ctx, GlobalContext globalContext, User user, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performUploadShared(RequestService rs, ContentContext ctx, GlobalContext gc, ContentService cs, User user, MessageRepository messageRepository, I18nAccess i18nAccess)
static void
updateAreaAjax(ContentContext ctx, String area)
static String
uploadContent(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:IAction
the group name of the action- Specified by:
getActionGroupName
in 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:
NumberFormatException
IOException
-
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)
-
-