public class CreatePressReleaseTodayMacro extends AbstractMacro
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger
create a static logger.
|
Constructor and Description |
---|
CreatePressReleaseTodayMacro() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getPageStructureName() |
boolean |
isAdmin()
macro for admin >> return true macro for contributor >> retrun false
|
boolean |
isPreview()
is this macro can be execute in preview mode.
|
String |
perform(ContentContext ctx,
Map<String,Object> params) |
getAllComponent, getInfo, getMacroProperties, isAdd, isInterative, toString
protected static Logger logger
public String getName()
public String getPageStructureName()
public String perform(ContentContext ctx, Map<String,Object> params) throws Exception
Exception
public boolean isAdmin()
IMacro
isAdmin
in interface IMacro
isAdmin
in class AbstractMacro
public boolean isPreview()
IMacro
Copyright © 2012-2018. All Rights Reserved.