Class CoursePartGroupsSynchronizableContentsCollection
java.lang.Object
org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
org.ametys.plugins.contentio.synchronize.impl.AbstractDefaultSynchronizableContentsCollection
org.ametys.plugins.odfsync.apogee.scc.AbstractPreviousYearsSynchronizableContentsCollection
org.ametys.plugins.odfsync.apogee.scc.impl.CoursePartGroupsSynchronizableContentsCollection
- All Implemented Interfaces:
SynchronizableContentsCollection
,Configurable
,Serviceable
public class CoursePartGroupsSynchronizableContentsCollection
extends AbstractPreviousYearsSynchronizableContentsCollection
SCC for nbStudents fields for container contents.
-
Field Summary
Fields inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractPreviousYearsSynchronizableContentsCollection
_apogeePreviousYearsFieldsDAO, _apogeeSCCHelper, _cdmfrHandler, PARAM_CURRENT_YEAR, PARAM_DATASOURCE_ID, PARAM_PRECEDING_YEAR
Fields inherited from class org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
_contentHelper, _synchronizingContentOperatorEP
Fields inherited from class org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
_contentWorkflowHelper, _currentUserProvider, _hasGlobalError, _i18nUtils, _nbCreatedContents, _nbDeletedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, SCC_UNIQUE_ID
Fields inherited from class org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
_checkCollection, _compatibleSCC, _contentDAO, _contentPrefix, _contentType, _contentTypeEP, _id, _ignoreRestrictions, _initialActionId, _label, _languages, _modelId, _modelParamValues, _removalSync, _reportMails, _resolver, _restrictedField, _sccHelper, _searchModelConfiguration, _synchronizeActionId, _synchronizeExistingContentsOnly, _synchronizingContentOperator, _validateActionId, _validateAfterImport, _workflowName
Fields 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 TypeMethodDescriptionexecuteApogeeRequest
(Map<String, Object> parameters) Execute the corresponding apogee request to retrieve the values from Apogeeprotected String
Get the attribute name for current year data.Get the path of metadata holding the unique identifierprotected String
Get the attribute name for preceding year data.protected String
Get the item name that contains the synchronization code, it can be an attribute or a property.Methods inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractPreviousYearsSynchronizableContentsCollection
_endHandleCDMFR, _getExpressionsList, _importContent, _startHandleCDMFR, checkCollection, ensureTitleIsPresent, getContents, getCurrentYear, getDataSourceId, getIdColumn, getLanguages, getLocalAndExternalFields, getPrecedingYear, getSyncCode, internalSearch, populate, searchByYear, service, updateSyncInformations
Methods inherited from class org.ametys.plugins.contentio.synchronize.impl.AbstractDefaultSynchronizableContentsCollection
_getMapping, configureDataSource, configureSearchModel, getRemoteValues, putIdParameter, search
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
_addEditInputsForSCC, _editContent, _fillContent, _getContentsToRemove, _getEditInputs, _getEditInputsContextParameters, _handleContent, _importOrSynchronizeContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _importOrSynchronizeContents, _internalPopulate, _isHandled, _synchronizeContent, _transformRemoteValues, configure, createContentAction, getAdditionalAttributeValues, getContent, getNotSynchronizedRelatedContentIds, getTotalCount, getTransformedRemoteValues, importContent, synchronizeContent, validateContent
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
_deleteContents, _getAdditionalInputsForContentCreation, _getContentPathQuery, _hasSomethingChanged, _internalPopulate, _isParamNotEmpty, _logSynchronizationResult, _removeEmptyParameters, _removeSCCOrDeleteContents, createContentAction, deleteUnexistingContents, empty, getSynchronizationResult, sendErrorMail, validateContent
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
_parseMultipleValuesConf, _parseParameters, _transformRemoteValuesCardinality, configureStaticParams, getCompatibleSCC, getContentPrefix, getContentType, getId, getInitialActionId, getLabel, getParameterValues, getReportMails, getRestrictedField, getSearchModelConfiguration, getSynchronizeActionId, getSynchronizeCollectionModelId, getSynchronizingContentOperator, getValidateActionId, getWorkflowName, ignoreRestrictions, removalSync, synchronizeExistingContentsOnly, validateAfterImport
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollection
additionalCommonOperations, additionalImportOperations, additionalSynchronizeOperations, handleRightAssignmentContext
-
Constructor Details
-
CoursePartGroupsSynchronizableContentsCollection
-
-
Method Details
-
getIdField
Description copied from interface:SynchronizableContentsCollection
Get the path of metadata holding the unique identifier- Returns:
- the path to the metadata. Can be null.
-
getCurrentYearAttributeName
Description copied from class:AbstractPreviousYearsSynchronizableContentsCollection
Get the attribute name for current year data.- Specified by:
getCurrentYearAttributeName
in classAbstractPreviousYearsSynchronizableContentsCollection
- Returns:
- the attribute name
-
getPrecedingYearAttributeName
Description copied from class:AbstractPreviousYearsSynchronizableContentsCollection
Get the attribute name for preceding year data.- Specified by:
getPrecedingYearAttributeName
in classAbstractPreviousYearsSynchronizableContentsCollection
- Returns:
- the attribute name
-
getSyncCodeItemName
Description copied from class:AbstractPreviousYearsSynchronizableContentsCollection
Get the item name that contains the synchronization code, it can be an attribute or a property.- Specified by:
getSyncCodeItemName
in classAbstractPreviousYearsSynchronizableContentsCollection
- Returns:
- the synchronization code item name
-
executeApogeeRequest
Description copied from class:AbstractPreviousYearsSynchronizableContentsCollection
Execute the corresponding apogee request to retrieve the values from Apogee- Specified by:
executeApogeeRequest
in classAbstractPreviousYearsSynchronizableContentsCollection
- Parameters:
parameters
- The parameters of the request- Returns:
- The results of the request
-