public class SynchronizeServiceImpl extends DefaultComponent implements SynchronizeService
Constructor and Description |
---|
SynchronizeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
doSynchronize(CoreSession session)
Performs the whole synchronization process including the documents
relations and vocabularies synchronizations using the default
synchronization details.
|
void |
doSynchronize(CoreSession session,
String queryName)
Performs the whole synchronization process including the documents
relations and vocabularies synchronizations using the default
synchronization details.
|
void |
doSynchronize(CoreSession session,
SynchronizeDetails details)
Performs the whole synchronization process including the documents
relations and vocabularies synchronizations.
|
void |
doSynchronize(CoreSession session,
SynchronizeDetails details,
String queryName)
Performs the whole synchronization process including the documents
relations and vocabularies synchronizations.
|
void |
doSynchronizeDocuments(CoreSession session)
Synchronizes all the documents by using the default synchronization
details.
|
void |
doSynchronizeDocuments(CoreSession session,
String queryName)
Synchronizes all the documents by using the default synchronization
details.
|
void |
doSynchronizeDocuments(CoreSession session,
SynchronizeDetails details)
Synchronizes all the documents by using the synchronization details.
|
void |
doSynchronizeDocuments(CoreSession session,
SynchronizeDetails details,
String queryName)
Synchronizes all the documents by using the synchronization details.
|
void |
doSynchronizeRelations()
Synchronizes all the relations defined on the documents by using the
default synchronization details.This should happen after the documents
synchronization.
|
void |
doSynchronizeRelations(SynchronizeDetails details)
Synchronizes all the relations defined on the documents by using the
synchronization details.This should happen after the documents
synchronization.
|
void |
doSynchronizeVocabularies()
Synchronizes all the vocabularies by using the default synchronization
details.This should happen after the documents synchronization.
|
void |
doSynchronizeVocabularies(SynchronizeDetails details)
Synchronizes all the vocabularies by using the synchronization
details.This should happen after the documents synchronization.
|
SynchronizeDetails |
getDefaultSynchronizeDetails() |
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.
|
activate, applicationStarted, deactivate, getAdapter, registerExtension, unregisterContribution, unregisterExtension
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void doSynchronizeDocuments(CoreSession session, SynchronizeDetails details) throws Exception
SynchronizeService
doSynchronizeDocuments
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextdetails
- - the details about the synchronization processClientException
Exception
public void doSynchronizeDocuments(CoreSession session) throws Exception
SynchronizeService
doSynchronizeDocuments
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextClientException
Exception
public void doSynchronizeDocuments(CoreSession session, SynchronizeDetails details, String queryName) throws Exception
SynchronizeService
doSynchronizeDocuments
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 void doSynchronizeDocuments(CoreSession session, String queryName) throws Exception
SynchronizeService
doSynchronizeDocuments
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextqueryName
- - the query name to use server sideClientException
Exception
public void doSynchronizeRelations(SynchronizeDetails details) throws ClientException
SynchronizeService
doSynchronizeRelations
in interface SynchronizeService
details
- - the details about the synchronization processClientException
public void doSynchronizeRelations() throws ClientException
SynchronizeService
doSynchronizeRelations
in interface SynchronizeService
ClientException
public void doSynchronizeVocabularies(SynchronizeDetails details) throws ClientException
SynchronizeService
doSynchronizeVocabularies
in interface SynchronizeService
ClientException
public void doSynchronizeVocabularies() throws ClientException
SynchronizeService
doSynchronizeVocabularies
in interface SynchronizeService
ClientException
public void doSynchronize(CoreSession session, SynchronizeDetails details) throws Exception
SynchronizeService
doSynchronize
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextdetails
- - the details about the synchronization processException
public void doSynchronize(CoreSession session) throws Exception
SynchronizeService
doSynchronize
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextException
public void doSynchronize(CoreSession session, SynchronizeDetails details, String queryName) throws Exception
SynchronizeService
doSynchronize
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextdetails
- - the details about the synchronization processException
public void doSynchronize(CoreSession session, String queryName) throws Exception
SynchronizeService
doSynchronize
in interface SynchronizeService
session
- - the Nuxeo core session received from the web contextException
public ImportConfiguration getImportConfiguration()
public SynchronizeDetails getDefaultSynchronizeDetails()
getDefaultSynchronizeDetails
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 © 2011 Nuxeo SA. All Rights Reserved.