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, unregisterExtensionpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic SynchronizeReport synchronizeDocuments(CoreSession session, SynchronizeDetails details, String queryName) throws Exception
SynchronizeServicesynchronizeDocuments in interface SynchronizeServicesession - - the Nuxeo core session received from the web contextdetails - - the details about the synchronization processqueryName - - the query name to use server sideClientExceptionExceptionpublic SynchronizeReport synchronizeRelations(SynchronizeDetails details) throws ClientException
SynchronizeServicesynchronizeRelations in interface SynchronizeServicedetails - - the details about the synchronization processClientExceptionpublic SynchronizeReport synchronizeVocabularies(SynchronizeDetails details) throws ClientException
SynchronizeServicesynchronizeVocabularies in interface SynchronizeServiceClientExceptionpublic SynchronizeReport synchronize(CoreSession session, SynchronizeDetails details, String queryName) throws Exception
SynchronizeServicesynchronize in interface SynchronizeServicesession - - the Nuxeo core session received from the web contextdetails - - the details about the synchronization processExceptionpublic ImportConfiguration getImportConfiguration()
public SynchronizeDetails getDefaultDetails()
SynchronizeServicegetDefaultDetails in interface SynchronizeServicepublic boolean shouldDisableReadSP(String docPath, String permission)
SynchronizeServiceshouldDisableReadSP in interface SynchronizeServicedocPath - the document path to testpermission - the permission to testtrue if the ReadSecurityPolicy must be disabled, false otherwiseCopyright © 2013 Nuxeo SA. All Rights Reserved.