Package org.javlo.macro
Class AbstractMacro
- java.lang.Object
-
- org.javlo.macro.AbstractMacro
-
- All Implemented Interfaces:
IMacro
- Direct Known Subclasses:
ActiveAllChildren
,AddChildMacro
,CleanDuplicatedId
,CleanImportFolder
,CleanPersistenceFolder
,CleanResourceImageMacro
,CleanResourceNameMacro
,CleanStaticInfoPersistence
,ClearContext
,ClearDataAccessCount
,ClearImageCache
,ClearTransformURLCache
,CommitTemplate
,ConvertUserForComansys
,CopyCurrentPageToOtherLanguages
,CopyLanguageStructureHereMacro
,CopyLanguageStructureMacro
,CreateAllContentSample
,CreateAlphabeticChildrenHereMacro
,CreateBaseStructureMacro
,CreateChildrenStructureMacro
,CreateDefaultPageStructure
,CreateExternalNewsMacro
,CreateFakeUsers
,CreateMonthHereMacro
,CreateMonthStructureMacro
,CreatePressReleaseHereMacro
,CreatePressReleaseStructure2007HereMacro
,CreatePressReleaseStructure2007Macro
,CreatePressReleaseTodayHereMacro
,CreatePressReleaseTodayMacro
,CreateRolesFromUserList
,CreateWeekHereMacro
,CurrentLgExpandMacro
,DashOnImageMacro
,DefaultLgExpandMacro
,DeleteBadTemplate
,DeleteChildren
,DeleteChildrenAndContent
,DeleteChildrenContent
,DeleteComponentBadArea
,DeleteComponentWithBadResourceReference
,DeleteContentFiles
,DeletePageFromSpecificUser
,DeleteSameComponent
,DeleteSmartExternalLinkMacro
,DeleteTestPage
,DeleteTrackerCache
,DetectAllComponentsType
,DownDateMacro
,DuplicateChildren
,DuplicatePage
,DuplicatePageIndexed
,EncryptPasswordComponent
,EncryptVisitorsPasswordMacro
,FileInListMacro
,ImageAfterDescriptionMacro
,ImportAndTranslateDefaultLanguageMacro
,ImportDataBase
,ImportDefaultLanguageMacro
,IncreaseSubtitleLevelMacro
,InitContentMacro
,JekaConvert
,MacroRendererCorrection
,MergeDynamicComponent
,MergeGalleryAndGalleries
,MergeImagesInGallery
,NoClickableImageMacro
,NoDashOnImageMacro
,PasteCopiedElementInAllLanguageMacro
,PublishMacro
,RebuitTemplate
,RebuitTemplateHtml
,ReduceSubtitleLevelMacro
,ResetRecaptcha
,SortChildren
,StaticInfoAutoFill
,TransfertComponentBadAreaToContent
,UnlinkMirrorComponent
,UpDateMacro
,UpdateTemplate
,ValidAllChildren
public abstract class AbstractMacro extends Object implements IMacro
-
-
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 AbstractMacro()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IContentVisualComponent>
getAllComponent(ContentContext ctx)
String
getIcon()
String
getInfo(ContentContext ctx)
protected Properties
getMacroProperties(ContentContext ctx)
int
getPriority()
String
getUrl()
force url of the macrovoid
init(ContentContext ctx)
boolean
isActive()
is macro active in current contextboolean
isAdd()
boolean
isAdmin()
macro for admin >> return true macro for contributor >> retrun falseboolean
isInterative()
String
toString()
-
-
-
Method Detail
-
getMacroProperties
protected Properties getMacroProperties(ContentContext ctx) throws IOException, Exception
- Throws:
IOException
Exception
-
getAllComponent
public List<IContentVisualComponent> getAllComponent(ContentContext ctx) throws Exception
- Throws:
Exception
-
getInfo
public String getInfo(ContentContext ctx)
-
isAdmin
public boolean isAdmin()
Description copied from interface:IMacro
macro for admin >> return true macro for contributor >> retrun false
-
isInterative
public boolean isInterative()
- Specified by:
isInterative
in interfaceIMacro
-
isActive
public boolean isActive()
Description copied from interface:IMacro
is macro active in current context
-
init
public void init(ContentContext ctx)
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfaceIMacro
-
-