Class CourseSynchronizableContentsCollection
java.lang.Object
org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsCollection
org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsWithCatalogCollection
org.ametys.plugins.odfsync.apogee.scc.impl.CourseSynchronizableContentsCollection
- All Implemented Interfaces:
SynchronizableContentsCollection,ApogeeSynchronizableContentsCollection,Configurable,Contextualizable,Serviceable
public class CourseSynchronizableContentsCollection
extends AbstractApogeeSynchronizableContentsWithCatalogCollection
SCC for course contents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OdfReferenceTableHelperThe ODF reference table helperprotected ShareableCourseHelperThe shareable course helperstatic final StringSCC model idFields inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsCollection
__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, _addExistingChildren, _addUnexistingChildren, _apogeeDAO, _apogeeSCCHelper, _columns, _context, _criteria, _idColumn, _jsonUtils, _mapping, _odfHelper, _sccDAO, _syncFields, PARAM_ADD_EXISTING_CHILDREN, PARAM_ADD_UNEXISTING_CHILDREN, PARAM_DATASOURCE_ID, PARAM_YEARFields inherited from class org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
_contentHelper, _synchronizingContentOperatorEPFields inherited from class org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
_contentWorkflowHelper, _currentUserProvider, _hasGlobalError, _i18nUtils, _nbCreatedContents, _nbDeletedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, SCC_UNIQUE_IDFields inherited from class org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
_contentDAO, _contentPrefix, _contentType, _contentTypeEP, _id, _ignoreRestrictions, _initialActionId, _label, _languages, _modelId, _modelParamValues, _removalSync, _reportMails, _resolver, _restrictedField, _sccHelper, _searchModelConfiguration, _synchronizeActionId, _synchronizeExistingContentsOnly, _synchronizingContentOperator, _validateActionId, _validateAfterImport, _workflowNameFields inherited from interface org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollection
COLLECTION_ID_DATA_NAME, LAST_SYNCHRONIZATION_DATA_NAME, LAST_SYNCHRONIZATION_USER_DATA_NAME, RESULT_NB_CREATED_CONTENTS, RESULT_NB_DELETED_CONTENTS, RESULT_NB_NOT_CHANGED_CONTENTS, RESULT_NB_SYNCHRONIZED_CONTENTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSearch the contents with the search parameters.additionalImportOperations(ModifiableContent content, Map<String, Object> additionalParameters, Logger logger) Add specific fields to the content.getAdditionalAttributeValues(String idValue, Content content, Map<String, Object> additionalParameters, boolean create, Logger logger) Retrieves additional values to synchronize for a contentprotected StringGet the attribute name to get childrenprotected StringGet the children SCC model id.protected StringGet the name of the mapping.getParentAttribute(ModifiableContent parent) Retrieves the attribute to synchronize for the given parent (as aPairof name and value)voidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsWithCatalogCollection
_addContentAttributes, _getAdditionalInputsForContentCreation, _getExpressionsList, _removeContentAttributesMethods inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsCollection
_convertBigDecimal, _convertBigDecimal, _getChildrenRemoteSyncCode, _getChildrenSearchParametersWithParent, _getSort, _importChildren, _importContent, _importUnexistingChildren, _internalPopulate, _isChildWillBeRemoved, _synchronizeChildren, _synchronizeContent, _transformClobToString, _transformListOfMap2MapOfList, addExistingChildren, addUnexistingChildren, configureDataSource, configureSearchModel, contextualize, getClobColumns, getDataSourceId, getIdColumn, getIdField, getLanguages, getLocalAndExternalFields, getNotSynchronizedRelatedContentIds, getParentFromAdditionalParameters, getParentIdFromAdditionalParameters, getRemoteValues, getTotalCount, getYear, handleChildren, handleRightAssignmentContext, importContent, importOrSynchronizeChildren, importOrSynchronizeContents, internalSearch, populate, putIdParameter, synchronizeContentMethods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
_addEditInputsForSCC, _editContent, _fillContent, _getContentsToRemove, _getEditInputs, _getEditInputsContextParameters, _handleContent, _importOrSynchronizeContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _importOrSynchronizeContents, _isHandled, _transformRemoteValues, configure, createContentAction, getContent, getTransformedRemoteValues, search, updateSyncInformations, validateContentMethods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
_deleteContents, _getContentPathQuery, _hasSomethingChanged, _internalPopulate, _isParamNotEmpty, _logSynchronizationResult, _removeEmptyParameters, createContentAction, deleteUnexistingContents, empty, getSynchronizationResult, sendErrorMail, validateContentMethods inherited from class org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
_parseLanguages, _parseParameters, _transformRemoteValuesCardinality, configureStaticParams, getContentPrefix, getContentType, getId, getInitialActionId, getLabel, getParameterValues, getReportMails, getRestrictedField, getSearchModelConfiguration, getSynchronizeActionId, getSynchronizeCollectionModelId, getSynchronizingContentOperator, getValidateActionId, getWorkflowName, ignoreRestrictions, removalSync, synchronizeExistingContentsOnly, validateAfterImportMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollection
additionalCommonOperations, additionalSynchronizeOperations
-
Field Details
-
MODEL_ID
SCC model id- See Also:
-
_odfRefTableHelper
The ODF reference table helper
-
-
Constructor Details
-
CourseSynchronizableContentsCollection
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractApogeeSynchronizableContentsCollection- Throws:
ServiceException
-
_search
Description copied from class:AbstractApogeeSynchronizableContentsCollectionSearch the contents with the search parameters. Use id parameter to search an unique content.- Specified by:
_searchin classAbstractApogeeSynchronizableContentsCollection- Parameters:
searchParameters- Search parameterslogger- The logger- Returns:
- A Map of mapped metadatas extract from Apogée database ordered by content unique Apogée ID
-
getMappingName
Description copied from class:AbstractApogeeSynchronizableContentsCollectionGet the name of the mapping.- Specified by:
getMappingNamein classAbstractApogeeSynchronizableContentsCollection- Returns:
- the mapping name
-
getAdditionalAttributeValues
protected Map<String,Object> getAdditionalAttributeValues(String idValue, Content content, Map<String, Object> additionalParameters, boolean create, Logger logger) Description copied from class:AbstractSimpleSynchronizableContentsCollectionRetrieves additional values to synchronize for a content- Overrides:
getAdditionalAttributeValuesin classAbstractApogeeSynchronizableContentsCollection- Parameters:
idValue- id value of the contentcontent- The contentadditionalParameters- Additional parameterscreate-trueif the content has been newly created,falseotherwiselogger- The logger- Returns:
- the values to add
-
getParentAttribute
Description copied from class:AbstractApogeeSynchronizableContentsCollectionRetrieves the attribute to synchronize for the given parent (as aPairof name and value)- Overrides:
getParentAttributein classAbstractApogeeSynchronizableContentsCollection- Parameters:
parent- the parent content- Returns:
- the parent attribute
-
additionalImportOperations
public ContentSynchronizationResult additionalImportOperations(ModifiableContent content, Map<String, Object> additionalParameters, Logger logger) Description copied from interface:SynchronizableContentsCollectionAdd specific fields to the content.- Parameters:
content- Content to updateadditionalParameters- Additional parameterslogger- The logger- Returns:
- The synchronization result of the import additional operations
-
getChildrenSCCModelId
Description copied from class:AbstractApogeeSynchronizableContentsCollectionGet the children SCC model id. Can be null if no implementation is defined.- Overrides:
getChildrenSCCModelIdin classAbstractApogeeSynchronizableContentsCollection- Returns:
- the children SCC model id
-
getChildrenAttributeName
Description copied from class:AbstractApogeeSynchronizableContentsCollectionGet the attribute name to get children- Specified by:
getChildrenAttributeNamein classAbstractApogeeSynchronizableContentsCollection- Returns:
- the attribute name to get children
-