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
IModuleActionprepare in interface IModuleActionctx - the current context.moduleContext - the context of the module.  You can call getCurrentModule for recover the module.Exceptionpublic static DropboxAction.DropboxConfig getConfig(ContentContext ctx)
public static void setConfig(ContentContext ctx, DropboxAction.DropboxConfig config)
public String getActionGroupName()
IActiongetActionGroupName in interface IActionpublic String performSearch(ContentContext ctx, ModulesContext modulesContext, String query) throws Exception
IModuleActionperformSearch in interface IModuleActionquery - the text entered in the search input field.Exceptionpublic Boolean haveRight(javax.servlet.http.HttpSession session, User user) throws ModuleException
IModuleActionhaveRight in interface IModuleActionModuleExceptionpublic static String performConfig(ContentContext ctx, RequestService rs)
public static String performAskToken(javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionpublic static String performBackToken(ContentContext ctx, javax.servlet.http.HttpSession session, RequestService rs, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionpublic 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.