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 StringgetActionGroupName()the group name of the actionStringgetModalSize()return the popup size. default lgStringgetName()StringgetRenderer()get the renderer for interactive macro (return null if macro is'nt interactive)booleanhaveRight(ContentContext ctx, String action)booleanisAdd()booleanisAdmin()macro for admin >> return true macro for contributor >> retrun falsebooleanisPreview()is this macro can be execute in preview mode.Stringperform(ContentContext ctx, Map<String,Object> params)static StringperformDuplicate(ContentContext ctx, RequestService rs)Stringprepare(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:IInteractiveMacroget the renderer for interactive macro (return null if macro is'nt interactive)- Specified by:
getRendererin interfaceIInteractiveMacro- Returns:
-
isPreview
public boolean isPreview()
Description copied from interface:IMacrois this macro can be execute in preview mode.
-
isAdmin
public boolean isAdmin()
Description copied from interface:IMacromacro for admin >> return true macro for contributor >> retrun false- Specified by:
isAdminin interfaceIMacro- Overrides:
isAdminin classAbstractMacro- Returns:
-
isAdd
public boolean isAdd()
- Specified by:
isAddin interfaceIMacro- Overrides:
isAddin classAbstractMacro
-
prepare
public String prepare(ContentContext ctx)
- Specified by:
preparein interfaceIInteractiveMacro
-
getModalSize
public String getModalSize()
Description copied from interface:IInteractiveMacroreturn the popup size. default lg- Specified by:
getModalSizein 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:IActionthe group name of the action- Specified by:
getActionGroupNamein interfaceIAction- Returns:
- a group name.
-
haveRight
public boolean haveRight(ContentContext ctx, String action)
-
-