Class HtmlPageService
java.lang.Object
fr.paris.lutece.plugins.htmlpage.service.HtmlPageService
- All Implemented Interfaces:
IHtmlPageService
HtmlPageService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreation of an instance of htmlpageGet all enabled html pages from databasegetEnableHtmlPage(int nId) Get enabled html page by id from databasegetHtmlPageCache(int nId) Get enabled html page by id from the cache if possible, from database otherwiseGet all enabled html pages from cache if possible, from database otherwisevoidinit()Initializes the Housing servicevoidinitializedService(jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext.voidRemove the Htmlpage whose identifier is specified in parameterUpdate of the htmlpage which is specified in parameter
-
Constructor Details
-
HtmlPageService
public HtmlPageService()
-
-
Method Details
-
init
public void init()Initializes the Housing service -
getHtmlPageCache
Description copied from interface:IHtmlPageServiceGet enabled html page by id from the cache if possible, from database otherwise- Specified by:
getHtmlPageCachein interfaceIHtmlPageService- Returns:
- htmlPage
-
getHtmlPageListCache
Description copied from interface:IHtmlPageServiceGet all enabled html pages from cache if possible, from database otherwise- Specified by:
getHtmlPageListCachein interfaceIHtmlPageService- Returns:
- list of htmlpage
-
getEnableHtmlPage
Description copied from interface:IHtmlPageServiceGet enabled html page by id from database- Specified by:
getEnableHtmlPagein interfaceIHtmlPageService- Returns:
- htmlPage
-
getEnabledHtmlPageList
Description copied from interface:IHtmlPageServiceGet all enabled html pages from database- Specified by:
getEnabledHtmlPageListin interfaceIHtmlPageService- Returns:
- list of htmlpage
-
create
Creation of an instance of htmlpage- Specified by:
createin interfaceIHtmlPageService- Parameters:
htmlpage- The instance of the htmlpage which contains the informations to storeplugin- The Plugin object- Returns:
- The instance of htmlpage which has been created with its primary key.
-
update
Update of the htmlpage which is specified in parameter- Specified by:
updatein interfaceIHtmlPageService- Parameters:
htmlpage- The instance of the htmlpage which contains the data to storeplugin- The Plugin object- Returns:
- The instance of the htmlpage which has been updated
-
remove
Remove the Htmlpage whose identifier is specified in parameter- Specified by:
removein interfaceIHtmlPageService- Parameters:
htmlpage- The Htmlpage object to removeplugin- The Plugin object
-
initializedService
public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext. It ensures that this CDI beans are instantiated at the application startup.This method is triggered automatically by CDI when the
ApplicationScopedcontext is initialized, which typically occurs during the startup of the application server.- Parameters:
context- theServletContextthat is initialized. This parameter is observed and injected automatically by CDI when theApplicationScopedcontext is initialized.
-