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.IMacroDEFAULT_MAX_MODAL_SIZE, DEFAULT_PRIORITY, LARGE_MODAL_SIZE, MIDDEL_MODAL_SIZE, SMALL_MODAL_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DuplicatePageIndexed()
 - 
Method SummaryAll 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.AbstractMacrogetAllComponent, getIcon, getInfo, getMacroProperties, getPriority, getUrl, init, isActive, isInterative, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.javlo.macro.core.IMacrogetIcon, getInfo, getPriority, getUrl, init, isActive, isInterative
 
- 
 
- 
- 
- 
Method Detail- 
getRendererpublic String getRenderer() Description copied from interface:IInteractiveMacroget the renderer for interactive macro (return null if macro is'nt interactive)- Specified by:
- getRendererin interface- IInteractiveMacro
- Returns:
 
 - 
isPreviewpublic boolean isPreview() Description copied from interface:IMacrois this macro can be execute in preview mode.
 - 
isAdminpublic boolean isAdmin() Description copied from interface:IMacromacro for admin >> return true macro for contributor >> retrun false- Specified by:
- isAdminin interface- IMacro
- Overrides:
- isAdminin class- AbstractMacro
- Returns:
 
 - 
isAddpublic boolean isAdd() - Specified by:
- isAddin interface- IMacro
- Overrides:
- isAddin class- AbstractMacro
 
 - 
preparepublic String prepare(ContentContext ctx) - Specified by:
- preparein interface- IInteractiveMacro
 
 - 
getModalSizepublic String getModalSize() Description copied from interface:IInteractiveMacroreturn the popup size. default lg- Specified by:
- getModalSizein interface- IInteractiveMacro
- Returns:
- "lg", "md", "sm", "xs"
 
 - 
performDuplicatepublic static String performDuplicate(ContentContext ctx, RequestService rs) throws Exception - Throws:
- Exception
 
 - 
getActionGroupNamepublic String getActionGroupName() Description copied from interface:IActionthe group name of the action- Specified by:
- getActionGroupNamein interface- IAction
- Returns:
- a group name.
 
 - 
haveRightpublic boolean haveRight(ContentContext ctx, String action) 
 
- 
 
-