Class ResourceExtenderConfigService
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.service.extender.config.ResourceExtenderConfigService
-
- All Implemented Interfaces:
IResourceExtenderConfigService,org.springframework.beans.factory.InitializingBean
public class ResourceExtenderConfigService extends java.lang.Object implements IResourceExtenderConfigService, org.springframework.beans.factory.InitializingBean
ResourceExtenderConfigService
-
-
Constructor Summary
Constructors Constructor Description ResourceExtenderConfigService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidcreate(IExtenderConfig config)Create a new config<T> Tfind(int nIdExtender)Find an extender<T> Tfind(java.lang.String strExtenderType, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Find a resourcestatic <T> TgetConfigBean(IExtenderConfig config)Get the config beanvoidremove(int nIdExtender)Removes.voidsetExtenderConfigDAO(IExtenderConfigDAO<IExtenderConfig> extenderConfigDAO)Set the extender config DAOvoidupdate(IExtenderConfig config)Update a config
-
-
-
Method Detail
-
setExtenderConfigDAO
public void setExtenderConfigDAO(IExtenderConfigDAO<IExtenderConfig> extenderConfigDAO)
Set the extender config DAO- Parameters:
extenderConfigDAO- the extender config DAO
-
create
public void create(IExtenderConfig config)
Create a new config- Specified by:
createin interfaceIResourceExtenderConfigService- Parameters:
config- the config
-
update
public void update(IExtenderConfig config)
Update a config- Specified by:
updatein interfaceIResourceExtenderConfigService- Parameters:
config- the config
-
remove
public void remove(int nIdExtender)
Removes.- Specified by:
removein interfaceIResourceExtenderConfigService- Parameters:
nIdExtender- the n id extender
-
find
public <T> T find(int nIdExtender)
Find an extender- Specified by:
findin interfaceIResourceExtenderConfigService- Type Parameters:
T- The extender type- Parameters:
nIdExtender- The extender ID- Returns:
- The extender
-
find
public <T> T find(java.lang.String strExtenderType, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Find a resource- Specified by:
findin interfaceIResourceExtenderConfigService- Type Parameters:
T- The resource type- Parameters:
strExtenderType- The extenderstrIdExtendableResource- The resource IDstrExtendableResourceType- The resource type- Returns:
- The resource
-
getConfigBean
public static <T> T getConfigBean(IExtenderConfig config)
Get the config bean- Type Parameters:
T- The class of the bean- Parameters:
config- the config- Returns:
- the config bean
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
-