public class DropboxAction extends Object implements IModuleAction
Modifier and Type | Class and Description |
---|---|
static class |
DropboxAction.DropboxConfig |
Constructor and Description |
---|
DropboxAction() |
Modifier and Type | Method and Description |
---|---|
String |
getActionGroupName()
the group name of the action
|
static DropboxAction.DropboxConfig |
getConfig(ContentContext ctx) |
boolean |
haveRight(ContentContext ctx,
String action) |
Boolean |
haveRight(javax.servlet.http.HttpSession session,
User user)
check if a specific user can use the module.
|
static String |
performAskToken(javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response) |
static String |
performBackToken(ContentContext ctx,
javax.servlet.http.HttpSession session,
RequestService rs,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static String |
performConfig(ContentContext ctx,
RequestService rs)
action
|
String |
performSearch(ContentContext ctx,
ModulesContext modulesContext,
String query)
method called when a seach in lauched from search form.
|
static String |
performToDropbox(RequestService rs,
ContentContext ctx) |
static String |
performToLocal(RequestService rs,
ContentContext ctx) |
String |
prepare(ContentContext ctx,
ModulesContext moduleContext)
method called before module rendering
|
static void |
setConfig(ContentContext ctx,
DropboxAction.DropboxConfig config) |
public String prepare(ContentContext ctx, ModulesContext moduleContext) throws Exception
IModuleAction
prepare
in interface IModuleAction
ctx
- the current context.moduleContext
- the context of the module. You can call getCurrentModule for recover the module.Exception
public static DropboxAction.DropboxConfig getConfig(ContentContext ctx)
public static void setConfig(ContentContext ctx, DropboxAction.DropboxConfig config)
public String getActionGroupName()
IAction
getActionGroupName
in interface IAction
public String performSearch(ContentContext ctx, ModulesContext modulesContext, String query) throws Exception
IModuleAction
performSearch
in interface IModuleAction
query
- the text entered in the search input field.Exception
public Boolean haveRight(javax.servlet.http.HttpSession session, User user) throws ModuleException
IModuleAction
haveRight
in interface IModuleAction
ModuleException
public static String performConfig(ContentContext ctx, RequestService rs)
public static String performAskToken(javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
public static String performBackToken(ContentContext ctx, javax.servlet.http.HttpSession session, RequestService rs, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
public static String performToLocal(RequestService rs, ContentContext ctx)
public static String performToDropbox(RequestService rs, ContentContext ctx)
public boolean haveRight(ContentContext ctx, String action)
Copyright © 2012-2018. All Rights Reserved.