Class DocumentAttributesService
java.lang.Object
fr.paris.lutece.plugins.document.service.attributes.DocumentAttributesService
@ApplicationScoped
@Named("document.DocumentAttributesService")
public class DocumentAttributesService
extends Object
Document Attributes management Service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentAttributesServiceDeprecated, for removal: This API element is subject to removal in a future version.getXmlAttributesList(String strCodeType) Gets attributes list of a type of document as an XML documentvoidinitializedService(jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext.
-
Constructor Details
-
DocumentAttributesService
public DocumentAttributesService()Creates a new instance of DocumentSpacesService
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theDocumentAttributesServiceinstance. This method will be removed in future versions.Returns the unique instance of theDocumentAttributesServiceservice.This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theDocumentAttributesServiceinstance instead.- Returns:
- The unique instance of
DocumentAttributesService.
-
getXmlAttributesList
Gets attributes list of a type of document as an XML document- Parameters:
strCodeType- The code for the document type- Returns:
- An XML document containing attributes list
-
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.
-
@Injectto obtain theDocumentAttributesServiceinstance.