Class AbstractResourceExtender
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.service.extender.AbstractResourceExtender
-
- All Implemented Interfaces:
IResourceExtender,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
HitResourceExtender
public abstract class AbstractResourceExtender extends java.lang.Object implements IResourceExtender, org.springframework.beans.factory.InitializingBean
AbstractResourceExtender
-
-
Constructor Summary
Constructors Constructor Description AbstractResourceExtender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.lang.StringgetKey()Gets the key.IResourceExtenderComponentgetResourceExtenderComponent()java.lang.StringgetTitle(java.util.Locale locale)Gets the name.booleanisConfigRequired()Checks if is config required.booleanisHistoryEnable()Checks if is history enable.booleanisInvoked(java.lang.String strExtenderType)Checks if is invoked.booleanisStateEnable()voidsetConfigRequired(boolean bIsConfigRequired)voidsetHistoryEnable(boolean bIsHistoryEnable)voidsetI18nTitleKey(java.lang.String strI18nTitleKey)Sets the i18n title key.voidsetKey(java.lang.String strKey)Sets the key.voidsetResourceExtenderComponent(IResourceExtenderComponent resourceExtenderComponent)Sets the resource extender component.voidsetStateEnable(boolean bIsStateEnable)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.extend.service.extender.IResourceExtender
doCreateResourceAddOn, doDeleteResourceAddOn, getContent
-
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Gets the key.- Specified by:
getKeyin interfaceIResourceExtender- Returns:
- the key
-
setKey
public void setKey(java.lang.String strKey)
Sets the key.- Specified by:
setKeyin interfaceIResourceExtender- Parameters:
strKey- the new key
-
getTitle
public java.lang.String getTitle(java.util.Locale locale)
Gets the name.- Specified by:
getTitlein interfaceIResourceExtender- Parameters:
locale- the locale- Returns:
- the name
-
setI18nTitleKey
public void setI18nTitleKey(java.lang.String strI18nTitleKey)
Sets the i18n title key.- Specified by:
setI18nTitleKeyin interfaceIResourceExtender- Parameters:
strI18nTitleKey- the new i18n title key
-
isConfigRequired
public boolean isConfigRequired()
Description copied from interface:IResourceExtenderChecks if is config required.- Specified by:
isConfigRequiredin interfaceIResourceExtender- Returns:
- the bIsConfigRequired
-
setConfigRequired
public void setConfigRequired(boolean bIsConfigRequired)
- Parameters:
bIsConfigRequired- the bIsConfigRequired to set
-
isHistoryEnable
public boolean isHistoryEnable()
Checks if is history enable.- Specified by:
isHistoryEnablein interfaceIResourceExtender- Returns:
- true, if is history enable
-
setHistoryEnable
public void setHistoryEnable(boolean bIsHistoryEnable)
- Parameters:
bIsHistoryEnable- the bIsHistoryEnable to set
-
isStateEnable
public boolean isStateEnable()
- Returns:
- the _bIsStateEnable
-
setStateEnable
public void setStateEnable(boolean bIsStateEnable)
- Parameters:
bIsStateEnable- the _bIsStateEnable to set
-
getResourceExtenderComponent
public IResourceExtenderComponent getResourceExtenderComponent()
- Returns:
- the resourceExtenderComponent
-
setResourceExtenderComponent
public void setResourceExtenderComponent(IResourceExtenderComponent resourceExtenderComponent)
Sets the resource extender component.- Parameters:
resourceExtenderComponent- the new resource extender component
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
isInvoked
public boolean isInvoked(java.lang.String strExtenderType)
Checks if is invoked.- Specified by:
isInvokedin interfaceIResourceExtender- Parameters:
strExtenderType- the str extender type- Returns:
- true, if is invoked
-
-