public class SynchronizeServiceImpl extends DefaultComponent implements SynchronizeService
Constructor and Description |
---|
SynchronizeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
SynchronizeDetails |
getDefaultDetails()
Return the pre-configured connection parameters
|
ImportConfiguration |
getImportConfiguration() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
boolean |
shouldDisableReadSP(String docPath,
String permission)
Test if the ReadSecurityPolicy should be disabled or not.
|
SynchronizeReport |
synchronize(CoreSession session,
SynchronizeDetails details,
String queryName)
Performs the whole synchronization process including the documents
relations and vocabularies synchronizations.
|
SynchronizeReport |
synchronizeDocuments(CoreSession session,
SynchronizeDetails details,
String queryName)
Synchronizes all the documents by using the synchronization details.
|
SynchronizeReport |
synchronizeRelations(SynchronizeDetails details)
Synchronizes all the relations defined on the documents by using the
synchronization details.This should happen after the documents
synchronization.
|
SynchronizeReport |
synchronizeVocabularies(SynchronizeDetails details)
Synchronizes all the vocabularies by using the synchronization
details.This should happen after the documents synchronization.
|
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public SynchronizeReport synchronizeDocuments(CoreSession session, SynchronizeDetails details, String queryName) throws Exception
SynchronizeService
synchronizeDocuments
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextdetails
- - the details about the synchronization processqueryName
- - the query name to use server sideClientException
Exception
public SynchronizeReport synchronizeRelations(SynchronizeDetails details) throws ClientException
SynchronizeService
synchronizeRelations
in interface SynchronizeService
details
- - the details about the synchronization processClientException
public SynchronizeReport synchronizeVocabularies(SynchronizeDetails details) throws ClientException
SynchronizeService
synchronizeVocabularies
in interface SynchronizeService
ClientException
public SynchronizeReport synchronize(CoreSession session, SynchronizeDetails details, String queryName) throws Exception
SynchronizeService
synchronize
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextdetails
- - the details about the synchronization processException
public ImportConfiguration getImportConfiguration()
public SynchronizeDetails getDefaultDetails()
SynchronizeService
getDefaultDetails
in interface SynchronizeService
public boolean shouldDisableReadSP(String docPath, String permission)
SynchronizeService
shouldDisableReadSP
in interface SynchronizeService
docPath
- the document path to testpermission
- the permission to testtrue
if the ReadSecurityPolicy must be disabled, false otherwise
Copyright © 2013 Nuxeo SA. All Rights Reserved.