public class ImportGalleryMacro extends Object implements IInteractiveMacro, IAction
| Constructor and Description |
|---|
ImportGalleryMacro() |
| Modifier and Type | Method and Description |
|---|---|
String |
getActionGroupName()
the group name of the action
|
String |
getInfo(ContentContext ctx) |
String |
getName() |
String |
getRenderer()
get the renderer for interactive macro (return null if macro is'nt interactive)
|
boolean |
haveRight(ContentContext ctx,
String action) |
boolean |
isAdd() |
boolean |
isAdmin()
macro for admin >> return true macro for contributor >> retrun false
|
boolean |
isInterative() |
boolean |
isPreview()
is this macro can be execute in preview mode.
|
String |
perform(ContentContext ctx,
Map<String,Object> params) |
static String |
performImport(RequestService rs,
ContentContext ctx,
GlobalContext globalContext,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
String |
prepare(ContentContext ctx) |
public boolean isAdmin()
IMacropublic String getRenderer()
IInteractiveMacrogetRenderer in interface IInteractiveMacropublic String getActionGroupName()
IActiongetActionGroupName in interface IActionpublic String getInfo(ContentContext ctx)
public static String performImport(RequestService rs, ContentContext ctx, GlobalContext globalContext, MessageRepository messageRepository, I18nAccess i18nAccess) throws MalformedURLException, Exception
MalformedURLExceptionExceptionpublic String prepare(ContentContext ctx)
prepare in interface IInteractiveMacropublic boolean isPreview()
IMacropublic boolean isInterative()
isInterative in interface IMacropublic boolean haveRight(ContentContext ctx, String action)
Copyright © 2012-2018. All Rights Reserved.