Class ApogeeSynchronizableContentsCollectionHelper
java.lang.Object
org.ametys.plugins.odfsync.apogee.scc.ApogeeSynchronizableContentsCollectionHelper
- All Implemented Interfaces:
Component,Contextualizable,Serviceable
public class ApogeeSynchronizableContentsCollectionHelper
extends Object
implements Serviceable, Component, Contextualizable
Helper for Apogee Synchronizable Contents Collections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentDAOContent DAOprotected ContextContextprotected ODFHelperThe ODF Helperprotected SynchronizableContentsCollectionDAOSCC DAOprotected SynchronizableContentsCollectionHelperSCC DAOstatic final StringRequest attribute name to store handle contents during import or synchronization.static final StringThe Avalon Role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddToHandleContents(String contentId) Add the content ID to the handle contents list.voidcontextualize(Context context) getContentSCC(Content content, Logger logger) Get the Apogee SCC for the content if it existsvoidservice(ServiceManager smanager) voidsynchronizeContent(ModifiableContent content, Logger logger) Synchronize the content or its children if the content has no Apogee SCC
-
Field Details
-
ROLE
The Avalon Role -
HANDLE_CONTENTS
Request attribute name to store handle contents during import or synchronization. -
_sccHelper
SCC DAO -
_odfHelper
The ODF Helper -
_sccDAO
SCC DAO -
_contentDAO
Content DAO -
_context
Context
-
-
Constructor Details
-
ApogeeSynchronizableContentsCollectionHelper
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
synchronizeContent
Synchronize the content or its children if the content has no Apogee SCC- Parameters:
content- the contentlogger- the logger
-
getContentSCC
public Optional<AbstractApogeeSynchronizableContentsCollection> getContentSCC(Content content, Logger logger) Get the Apogee SCC for the content if it exists- Parameters:
content- The content to search onlogger- the logger- Returns:
- the Apogee SCC
-
addToHandleContents
Add the content ID to the handle contents list.- Parameters:
contentId- Content ID- Returns:
trueif the content ID have been added,falseis returned if the content ID already exists in the handle contents list.
-