public class ImportJCRPageMacro extends Object implements IInteractiveMacro, IAction
Modifier and Type | Class and Description |
---|---|
static class |
ImportJCRPageMacro.Config |
static class |
ImportJCRPageMacro.Page |
Constructor and Description |
---|
ImportJCRPageMacro() |
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) |
static String |
importFile(ContentContext ctx,
InputStream in,
String name,
MenuElement page) |
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.
|
static void |
main(String[] args) |
String |
perform(ContentContext ctx,
Map<String,Object> params) |
static String |
performImport(RequestService rs,
ContentContext ctx,
GlobalContext globalContext,
ModulesContext modulesContext,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
String |
prepare(ContentContext ctx) |
public boolean isAdmin()
IMacro
public String getRenderer()
IInteractiveMacro
getRenderer
in interface IInteractiveMacro
public String getActionGroupName()
IAction
getActionGroupName
in interface IAction
public static String performImport(RequestService rs, ContentContext ctx, GlobalContext globalContext, ModulesContext modulesContext, MessageRepository messageRepository, I18nAccess i18nAccess) throws MalformedURLException, Exception
MalformedURLException
Exception
public static String importFile(ContentContext ctx, InputStream in, String name, MenuElement page) throws ZipException, IOException
ZipException
IOException
public String prepare(ContentContext ctx)
prepare
in interface IInteractiveMacro
public boolean isPreview()
IMacro
public boolean isInterative()
isInterative
in interface IMacro
public boolean haveRight(ContentContext ctx, String action)
public String getInfo(ContentContext ctx)
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.