Class AutoPublicationService
java.lang.Object
fr.paris.lutece.plugins.document.service.autopublication.AutoPublicationService
@ApplicationScoped
@Named("document.AutoPublicationService")
public class AutoPublicationService
extends Object
AutoPublication Service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfindCountByPortletAndSpace(int nPortletId, int nSpaceId) Returns count of published documents of a portlet and spacestatic AutoPublicationServiceDeprecated, for removal: This API element is subject to removal in a future version.voidinit()Initialize theDocumentAutoPublicationserviceProcess auto publication
-
Constructor Details
-
AutoPublicationService
public AutoPublicationService()
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theAutoPublicationServiceinstance. This method will be removed in future versions.Returns the unique instance of theAutoPublicationServiceservice.This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theAutoPublicationServiceinstance instead.- Returns:
- The unique instance of
AutoPublicationService.
-
init
public void init()Initialize theDocumentAutoPublicationservice -
processAutoPublishing
Process auto publication- Returns:
- The log of the process
-
findCountByPortletAndSpace
public int findCountByPortletAndSpace(int nPortletId, int nSpaceId) Returns count of published documents of a portlet and space- Parameters:
nPortletId- the identifier of the portletnSpaceId- the identifier of the space- Returns:
- number of documents
-
@Injectto obtain theAutoPublicationServiceinstance.