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 Object
implements IResourceExtenderConfigService, org.springframework.beans.factory.InitializingBean
ResourceExtenderConfigService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreate(IExtenderConfig config) Create a new config<T> Tfind(int nIdExtender) Find an extender<T> TFind 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
-
Constructor Details
-
ResourceExtenderConfigService
public ResourceExtenderConfigService()
-
-
Method Details
-
setExtenderConfigDAO
Set the extender config DAO- Parameters:
extenderConfigDAO- the extender config DAO
-
create
Create a new config- Specified by:
createin interfaceIResourceExtenderConfigService- Parameters:
config- the config
-
update
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(String strExtenderType, String strIdExtendableResource, 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
Get the config bean- Type Parameters:
T- The class of the bean- Parameters:
config- the config- Returns:
- the config bean
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-