Class ResourceExtenderConfigService
java.lang.Object
fr.paris.lutece.plugins.extend.service.extender.config.ResourceExtenderConfigService
- All Implemented Interfaces:
IResourceExtenderConfigService
@Named("extend.resourceExtenderConfigService")
public class ResourceExtenderConfigService
extends Object
implements IResourceExtenderConfigService
ResourceExtenderConfigService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(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.voidsetExtenderCache(fr.paris.lutece.portal.service.cache.Lutece107Cache<String, Object> extendConfigCache) voidsetExtenderConfigDAO(IExtenderConfigDAO<IExtenderConfig> extenderConfigDAO) Set the extender config DAOvoidsetExtenderService(IResourceExtenderService extenderService) Set the extender servicevoidupdate(IExtenderConfig config) Update a config
-
Constructor Details
-
ResourceExtenderConfigService
public ResourceExtenderConfigService()
-
-
Method Details
-
setExtenderConfigDAO
Set the extender config DAO- Parameters:
extenderConfigDAO- the extender config DAO
-
setExtenderCache
-
setExtenderService
Set the extender service- Parameters:
extenderService- the extender service
-
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
-