public class CourseSynchronizableContentsCollection extends AbstractApogeeSynchronizableContentsWithCatalogCollection
Modifier and Type | Field and Description |
---|---|
protected OdfReferenceTableHelper |
_odfRefTableHelper
The ODF reference table helper
|
protected ShareableCourseHelper |
_shareableCourseHelper
The shareable course helper
|
static String |
MODEL_ID
SCC model id
|
_catalogsManager
__PARAM_COLUMNS, __PARAM_COLUMNS_COLUMN, __PARAM_CRITERIA, __PARAM_CRITERIA_CRITERION, __PARAM_CRITERIA_CRITERION_ID, __PARAM_CRITERIA_CRITERION_LABEL, __PARAM_CRITERIA_CRITERION_TYPE, __PARAM_ID_COLUMN, __PARAM_MAPPING, __PARAM_MAPPING_ATTRIBUTE, __PARAM_MAPPING_METADATA_REF, __PARAM_MAPPING_SYNCHRO, _apogeeDAO, _columns, _context, _criteria, _extFields, _idColumn, _jsonUtils, _mapping, _odfLang, _syncFields, HANDLE_CONTENTS
_contentHelper, _sccHelper, _synchronizingContentOperatorEP
_contentDAO, _contentTypeEP, _currentUserProvider, _hasGlobalError, _i18nUtils, _nbCreatedContents, _nbDeletedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, _resolver, _synchroComponent, SCC_UNIQUE_ID
_contentPrefix, _contentType, _id, _initialActionId, _label, _languages, _modelId, _modelParamValues, _removalSync, _reportMails, _restrictedField, _searchModelConfiguration, _synchronizeActionId, _synchronizeExistingContentsOnly, _synchronizingContentOperator, _validateActionId, _validateAfterImport, _workflowName
COLLECTION_ID_PROPERTY
Constructor and Description |
---|
CourseSynchronizableContentsCollection() |
Modifier and Type | Method and Description |
---|---|
protected List<Map<String,Object>> |
_search(Map<String,Object> searchParams,
Logger logger)
Search the contents with the search parameters.
|
protected boolean |
additionalImportOperations(ModifiableDefaultContent content,
Map<String,List<Object>> remoteValues,
Map<String,Object> importParams,
Logger logger)
Add specific fields to the content.
|
protected String |
getMappingName()
Get the name of the mapping.
|
protected boolean |
handleChildren(ModifiableDefaultContent content,
Logger logger)
Set the children metadata and invert relation, import and synchronize the children too.
|
protected boolean |
handleParent(ModifiableDefaultContent currentContent,
ModifiableDefaultContent parentContent,
Logger logger)
Set the parent metadata and invert relation.
|
protected boolean |
importCourseParts(ModifiableDefaultContent content,
Logger logger)
Set the course parts of the current
Course . |
void |
service(ServiceManager manager) |
_getExpressionsList, _handleAdditionalMetadata
_convertBigDecimal, _convertBigDecimal, _fillContent, _importContent, _importOrSynchronizeContent, _synchronizeContent, _transformClobToString, additionalCommonOperations, addToHandleContents, configureDataSource, configureSearchModel, contextualize, getExternalOnlyFields, getIdColumn, getIdField, getLocalAndExternalFields, getRemoteValues, getRichTextFields, getTotalCount, handleRightAssignmentContext, importContent, importOrSynchronizeChildren, importOrSynchronizeContents, internalSearch, populate, putIdParameter, setAdditionalMetadata, synchronizeContent
_getContentsToRemove, _getIdFieldValue, _handleContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _internalPopulate, _isHandled, additionalSynchronizeOperations, configure, createContentAction, getContent, getTransformedRemoteValues, search, updateSyncInformations, validateContent
_getContentPathQuery, _getMetadataHolder, _isParamNotEmpty, _removeEmptyParameters, _removeMetadataIfExists, _synchronizeMetadata, _updateRelation, _updateRelation, applyChanges, applyChanges, createContentAction, deleteUnexistingContents, sendErrorMail, updateSCCProperty, validateContent
_parseLanguages, _parseParameters, configureStaticParams, getContentPrefix, getContentType, getId, getInitialActionId, getLabel, getLanguages, getParameterValues, getReportMails, getRestrictedField, getSearchModelConfiguration, getSynchronizeActionId, getSynchronizeCollectionModelId, getSynchronizingContentOperator, getValidateActionId, getWorkflowName, removalSync, synchronizeExistingContentsOnly, validateAfterImport
public static final String MODEL_ID
protected OdfReferenceTableHelper _odfRefTableHelper
protected ShareableCourseHelper _shareableCourseHelper
public CourseSynchronizableContentsCollection()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractApogeeSynchronizableContentsWithCatalogCollection
ServiceException
protected List<Map<String,Object>> _search(Map<String,Object> searchParams, Logger logger)
AbstractApogeeSynchronizableContentsCollection
_search
in class AbstractApogeeSynchronizableContentsCollection
searchParams
- Search parameterslogger
- The loggerprotected String getMappingName()
AbstractApogeeSynchronizableContentsCollection
getMappingName
in class AbstractApogeeSynchronizableContentsCollection
protected boolean additionalImportOperations(ModifiableDefaultContent content, Map<String,List<Object>> remoteValues, Map<String,Object> importParams, Logger logger)
AbstractSimpleSynchronizableContentsCollection
additionalImportOperations
in class AbstractSimpleSynchronizableContentsCollection
content
- Content to updateremoteValues
- Values of the contentimportParams
- Import parameterslogger
- The loggertrue
if there are changesprotected boolean handleParent(ModifiableDefaultContent currentContent, ModifiableDefaultContent parentContent, Logger logger)
AbstractApogeeSynchronizableContentsCollection
handleParent
in class AbstractApogeeSynchronizableContentsCollection
currentContent
- Current contentparentContent
- Parent content to setlogger
- The loggertrue
if there are changesprotected boolean handleChildren(ModifiableDefaultContent content, Logger logger)
AbstractApogeeSynchronizableContentsCollection
handleChildren
in class AbstractApogeeSynchronizableContentsCollection
content
- Current contentlogger
- The loggertrue
if there are changesprotected boolean importCourseParts(ModifiableDefaultContent content, Logger logger)
Course
.content
- Current contentlogger
- The loggertrue
if there are changes