Package org.javlo.macro
Class CreateChildrenStructureMacro
- java.lang.Object
-
- org.javlo.macro.AbstractMacro
-
- org.javlo.macro.CreateChildrenStructureMacro
-
- All Implemented Interfaces:
IMacro
public class CreateChildrenStructureMacro extends AbstractMacro
create a children page structure under the current page. the structure is defined in the template in macro forder in children-structure.txt. sample file structure :
>[parent]-general
=[parent]-technical
=[parent]-tech-agri
=[parent]-[random]
<[parent]-financial
- > : for create a child of the previous page
- < : for create a parent of the previous page
- = : for create a brother of the previous page
- c: : for content of the previous page. (format:
MacroHelper.insertContent(ContentContext, MenuElement, String)) - [parent] : replace with the name of the parent.
- [random] : replace with random id.
- [root] : the root page (current page when macro is executed.
- [CR] : carriage return.
- Author:
- Patrick Vandermaesen
-
-
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 CreateChildrenStructureMacro()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()booleanisAdd()booleanisPreview()is this macro can be execute in preview mode.Stringperform(ContentContext inCtx, Map<String,Object> params)-
Methods inherited from class org.javlo.macro.AbstractMacro
getAllComponent, getIcon, getInfo, getMacroProperties, getPriority, getUrl, init, isActive, isAdmin, isInterative, toString
-
-
-
-
Method Detail
-
getName
public String getName()
-
perform
public String perform(ContentContext inCtx, Map<String,Object> params) throws Exception
- Throws:
Exception
-
isPreview
public boolean isPreview()
Description copied from interface:IMacrois this macro can be execute in preview mode.- Returns:
-
isAdd
public boolean isAdd()
- Specified by:
isAddin interfaceIMacro- Overrides:
isAddin classAbstractMacro
-
-