Package org.javlo.macro
Class ImportAndTranslateDefaultLanguageMacro
- java.lang.Object
-
- org.javlo.macro.AbstractMacro
-
- org.javlo.macro.ImportAndTranslateDefaultLanguageMacro
-
- All Implemented Interfaces:
IMacro
public class ImportAndTranslateDefaultLanguageMacro extends AbstractMacro
-
-
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 ImportAndTranslateDefaultLanguageMacro()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIcon()
String
getName()
void
init(ContentContext ctx)
boolean
isActive()
is macro active in current contextboolean
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)
-
Methods inherited from class org.javlo.macro.AbstractMacro
getAllComponent, getInfo, getMacroProperties, getPriority, getUrl, isAdd, isInterative, toString
-
-
-
-
Method Detail
-
getName
public String getName()
-
perform
public String perform(ContentContext ctx, Map<String,Object> params) throws Exception
- Throws:
Exception
-
isPreview
public boolean isPreview()
Description copied from interface:IMacro
is this macro can be execute in preview mode.- Returns:
-
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:
-
init
public void init(ContentContext ctx)
- Specified by:
init
in interfaceIMacro
- Overrides:
init
in classAbstractMacro
-
isActive
public boolean isActive()
Description copied from interface:IMacro
is macro active in current context- Specified by:
isActive
in interfaceIMacro
- Overrides:
isActive
in classAbstractMacro
- Returns:
-
getIcon
public String getIcon()
- Specified by:
getIcon
in interfaceIMacro
- Overrides:
getIcon
in classAbstractMacro
-
-