Class ContainerSynchronizableContentsCollection
- 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.ContainerSynchronizableContentsCollection
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- SynchronizableContentsCollection,- ApogeeSynchronizableContentsCollection,- Configurable,- Contextualizable,- Serviceable
 
 public class ContainerSynchronizableContentsCollection extends AbstractApogeeSynchronizableContentsWithCatalogCollection SCC for container contents.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringMODEL_IDSCC model id- 
Fields inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsWithCatalogCollection_catalogsManager
 - 
Fields 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, _apogeeDAO, _apogeeSCCHelper, _columns, _context, _criteria, _idColumn, _jsonUtils, _mapping, _odfHelper, _odfLang, _sccDAO, _syncFields, PARAM_ADD_UNEXISTING_CHILDREN, PARAM_DATASOURCE_ID, PARAM_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_contentDAO, _contentPrefix, _contentType, _contentTypeEP, _id, _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.SynchronizableContentsCollectionCOLLECTION_ID_DATA_NAME, RESULT_NB_CREATED_CONTENTS, RESULT_NB_DELETED_CONTENTS, RESULT_NB_NOT_CHANGED_CONTENTS, RESULT_NB_SYNCHRONIZED_CONTENTS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ContainerSynchronizableContentsCollection()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Map<String,Object>>_search(Map<String,Object> searchParams, org.slf4j.Logger logger)Search the contents with the search parameters.protected StringgetChildrenAttributeName()Get the attribute name to get childrenprotected StringgetChildrenSCCModelId()Get the children SCC model id.protected StringgetMappingName()Get the name of the mapping.protected Pair<String,Object>getParentAttribute(ModifiableContent parent)Retrieves the attribute to synchronize for the given parent (as aPairof name and value)- 
Methods inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsWithCatalogCollection_getAdditionalInputsForContentCreation, _getExpressionsList, service
 - 
Methods inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsCollection_addUnexistingChildren, _convertBigDecimal, _convertBigDecimal, _getChildrenRemoteSyncCode, _getSort, _importChildren, _importContent, _importUnexistingChildren, _internalPopulate, _isChildWillBeRemoved, _synchronizeChildren, _synchronizeContent, _transformClobToString, _transformListOfMap2MapOfList, addUnexistingChildren, configureDataSource, configureSearchModel, contextualize, getAdditionalAttributeValues, getClobColumns, getDataSourceId, getIdColumn, getIdField, getLanguages, getLocalAndExternalFields, getNotSynchronizedRelatedContentIds, getParentFromAdditionalParameters, getParentIdFromAdditionalParameters, getRemoteValues, getRichTextFields, getTotalCount, getYear, handleChildren, handleRightAssignmentContext, importContent, importOrSynchronizeChildren, importOrSynchronizeContents, internalSearch, populate, putIdParameter, synchronizeContent
 - 
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection_editContent, _fillContent, _getContentsToRemove, _handleContent, _importOrSynchronizeContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _isHandled, _transformRemoteValues, configure, createContentAction, getContent, getTransformedRemoteValues, search, updateSyncInformations, validateContent
 - 
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection_deleteContents, _getContentPathQuery, _hasSomethingChanged, _isParamNotEmpty, _logSynchronizationResult, _removeEmptyParameters, createContentAction, deleteUnexistingContents, empty, getSynchronizationResult, sendErrorMail, validateContent
 - 
Methods 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, removalSync, synchronizeExistingContentsOnly, validateAfterImport
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollectionadditionalCommonOperations, additionalImportOperations, additionalSynchronizeOperations
 
- 
 
- 
- 
- 
Field Detail- 
MODEL_IDpublic static final String MODEL_ID SCC model id- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ContainerSynchronizableContentsCollectionpublic ContainerSynchronizableContentsCollection() 
 
- 
 - 
Method Detail- 
_searchprotected List<Map<String,Object>> _search(Map<String,Object> searchParams, org.slf4j.Logger logger) Description copied from class:AbstractApogeeSynchronizableContentsCollectionSearch the contents with the search parameters. Use id parameter to search an unique content.- Specified by:
- _searchin class- AbstractApogeeSynchronizableContentsCollection
- Parameters:
- searchParams- Search parameters
- logger- The logger
- Returns:
- A Map of mapped metadatas extract from Apogée database ordered by content unique Apogée ID
 
 - 
getMappingNameprotected String getMappingName() Description copied from class:AbstractApogeeSynchronizableContentsCollectionGet the name of the mapping.- Specified by:
- getMappingNamein class- AbstractApogeeSynchronizableContentsCollection
- Returns:
- the mapping name
 
 - 
getParentAttributeprotected Pair<String,Object> getParentAttribute(ModifiableContent parent) Description copied from class:AbstractApogeeSynchronizableContentsCollectionRetrieves the attribute to synchronize for the given parent (as aPairof name and value)- Overrides:
- getParentAttributein class- AbstractApogeeSynchronizableContentsCollection
- Parameters:
- parent- the parent content
- Returns:
- the parent attribute
 
 - 
getChildrenSCCModelIdprotected String getChildrenSCCModelId() Description copied from class:AbstractApogeeSynchronizableContentsCollectionGet the children SCC model id. Can be null if no implementation is defined.- Overrides:
- getChildrenSCCModelIdin class- AbstractApogeeSynchronizableContentsCollection
- Returns:
- the children SCC model id
 
 - 
getChildrenAttributeNameprotected String getChildrenAttributeName() Description copied from class:AbstractApogeeSynchronizableContentsCollectionGet the attribute name to get children- Specified by:
- getChildrenAttributeNamein class- AbstractApogeeSynchronizableContentsCollection
- Returns:
- the attribute name to get children
 
 
- 
 
-