Package org.javlo.macro
Class DuplicatePageIndexed
- java.lang.Object
-
- org.javlo.macro.AbstractMacro
-
- org.javlo.macro.DuplicatePageIndexed
-
- All Implemented Interfaces:
IAction
,IInteractiveMacro
,IMacro
public class DuplicatePageIndexed extends AbstractMacro implements IInteractiveMacro, IAction
-
-
Field Summary
-
Fields inherited from interface org.javlo.macro.core.IMacro
DEFAULT_MAX_MODAL_SIZE, DEFAULT_PRIORITY, LARGE_MODAL_SIZE, MIDDEL_MODAL_SIZE, SMALL_MODAL_SIZE
-
-
Constructor Summary
Constructors Constructor Description DuplicatePageIndexed()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionGroupName()
the group name of the actionString
getModalSize()
return the popup size. default lgString
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 falseboolean
isPreview()
is this macro can be execute in preview mode.String
perform(ContentContext ctx, Map<String,Object> params)
static String
performDuplicate(ContentContext ctx, RequestService rs)
String
prepare(ContentContext ctx)
-
Methods inherited from class org.javlo.macro.AbstractMacro
getAllComponent, getIcon, getInfo, getMacroProperties, getPriority, getUrl, init, isActive, isInterative, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javlo.macro.core.IMacro
getIcon, getInfo, getPriority, getUrl, init, isActive, isInterative
-
-
-
-
Method Detail
-
getRenderer
public String getRenderer()
Description copied from interface:IInteractiveMacro
get the renderer for interactive macro (return null if macro is'nt interactive)- Specified by:
getRenderer
in interfaceIInteractiveMacro
- Returns:
-
isPreview
public boolean isPreview()
Description copied from interface:IMacro
is this macro can be execute in preview mode.
-
isAdmin
public boolean isAdmin()
Description copied from interface:IMacro
macro for admin >> return true macro for contributor >> retrun false- Specified by:
isAdmin
in interfaceIMacro
- Overrides:
isAdmin
in classAbstractMacro
- Returns:
-
isAdd
public boolean isAdd()
- Specified by:
isAdd
in interfaceIMacro
- Overrides:
isAdd
in classAbstractMacro
-
prepare
public String prepare(ContentContext ctx)
- Specified by:
prepare
in interfaceIInteractiveMacro
-
getModalSize
public String getModalSize()
Description copied from interface:IInteractiveMacro
return the popup size. default lg- Specified by:
getModalSize
in interfaceIInteractiveMacro
- Returns:
- "lg", "md", "sm", "xs"
-
performDuplicate
public static String performDuplicate(ContentContext ctx, RequestService rs) throws Exception
- Throws:
Exception
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IAction
the group name of the action- Specified by:
getActionGroupName
in interfaceIAction
- Returns:
- a group name.
-
haveRight
public boolean haveRight(ContentContext ctx, String action)
-
-