Class ProgramSynchronizableContentsCollection
- 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.ProgramSynchronizableContentsCollection
-
- All Implemented Interfaces:
SynchronizableContentsCollection
,ApogeeSynchronizableContentsCollection
,Configurable
,Contextualizable
,Serviceable
public class ProgramSynchronizableContentsCollection extends AbstractApogeeSynchronizableContentsWithCatalogCollection
SCC for program contents.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MODEL_ID
SCC 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, _extFields, _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
_contentTypeEP, _currentUserProvider, _hasGlobalError, _i18nUtils, _nbCreatedContents, _nbDeletedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, _synchroComponent, SCC_UNIQUE_ID
-
Fields inherited from class org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
_contentDAO, _contentPrefix, _contentType, _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.SynchronizableContentsCollection
COLLECTION_ID_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description ProgramSynchronizableContentsCollection()
-
Method Summary
All 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 String
getChildrenInvertMetadataName()
Get the metadata name to get parent from childrenprotected String
getChildrenMetadataName()
Get the metadata name to get childrenprotected Set<String>
getClobColumns()
Get the list of CLOB column's names.protected String
getMappingName()
Get the name of the mapping.protected Set<String>
getRichTextFields()
Get the list of rich text fields of the imported content.protected boolean
setAdditionalMetadata(ModifiableDefaultContent content, Map<String,List<Object>> remoteValues, boolean create, org.slf4j.Logger logger)
Set the additional metadata.-
Methods inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsWithCatalogCollection
_getExpressionsList, _handleAdditionalMetadata, service
-
Methods inherited from class org.ametys.plugins.odfsync.apogee.scc.AbstractApogeeSynchronizableContentsCollection
_addUnexistingChildren, _convertBigDecimal, _convertBigDecimal, _fillContent, _fillRichTexts, _getChildrenRemoteSyncCode, _getSort, _importChildren, _importContent, _importOrSynchronizeContent, _importUnexistingChildren, _internalPopulate, _isChildWillBeRemoved, _resetChildren, _setRichTextValue, _synchronizeChildren, _synchronizeContent, _transformClobToString, _transformListOfMap2MapOfList, additionalCommonOperations, addUnexistingChildren, configureDataSource, configureSearchModel, contextualize, getChildrenSCCModelId, getDataSourceId, getExternalOnlyFields, getIdColumn, getIdField, getLocalAndExternalFields, getRemoteValues, getTotalCount, getYear, handleChildren, handleParent, handleRightAssignmentContext, importContent, importOrSynchronizeChildren, importOrSynchronizeContents, internalSearch, populate, putIdParameter, synchronizeContent
-
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
_getContentsToRemove, _getIdFieldValue, _handleContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _isHandled, additionalImportOperations, additionalSynchronizeOperations, configure, createContentAction, getContent, getTransformedRemoteValues, search, updateSyncInformations, validateContent
-
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
_deleteContents, _getContentPathQuery, _getMetadataHolder, _isParamNotEmpty, _removeEmptyParameters, _removeMetadataIfExists, _synchronizeMetadata, _updateRelation, _updateRelation, applyChanges, applyChanges, createContentAction, deleteUnexistingContents, empty, sendErrorMail, updateSCCProperty, validateContent
-
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
_parseLanguages, _parseParameters, configureStaticParams, getContentPrefix, getContentType, getId, getInitialActionId, getLabel, getLanguages, getParameterValues, getReportMails, getRestrictedField, getSearchModelConfiguration, getSynchronizeActionId, getSynchronizeCollectionModelId, getSynchronizingContentOperator, getValidateActionId, getWorkflowName, removalSync, synchronizeExistingContentsOnly, validateAfterImport
-
-
-
-
Field Detail
-
MODEL_ID
public static final String MODEL_ID
SCC model id- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProgramSynchronizableContentsCollection
public ProgramSynchronizableContentsCollection()
-
-
Method Detail
-
_search
protected List<Map<String,Object>> _search(Map<String,Object> searchParams, org.slf4j.Logger logger)
Description copied from class:AbstractApogeeSynchronizableContentsCollection
Search the contents with the search parameters. Use id parameter to search an unique content.- Specified by:
_search
in classAbstractApogeeSynchronizableContentsCollection
- Parameters:
searchParams
- Search parameterslogger
- The logger- Returns:
- A Map of mapped metadatas extract from Apogée database ordered by content unique Apogée ID
-
getMappingName
protected String getMappingName()
Description copied from class:AbstractApogeeSynchronizableContentsCollection
Get the name of the mapping.- Specified by:
getMappingName
in classAbstractApogeeSynchronizableContentsCollection
- Returns:
- the mapping name
-
setAdditionalMetadata
protected boolean setAdditionalMetadata(ModifiableDefaultContent content, Map<String,List<Object>> remoteValues, boolean create, org.slf4j.Logger logger)
Description copied from class:AbstractApogeeSynchronizableContentsCollection
Set the additional metadata.- Overrides:
setAdditionalMetadata
in classAbstractApogeeSynchronizableContentsCollection
- Parameters:
content
- Current contentremoteValues
- Values of the contentcreate
- true if the content has been newly createdlogger
- The logger- Returns:
true
if there are changes
-
getClobColumns
protected Set<String> getClobColumns()
Description copied from class:AbstractApogeeSynchronizableContentsCollection
Get the list of CLOB column's names.- Overrides:
getClobColumns
in classAbstractApogeeSynchronizableContentsCollection
- Returns:
- The list of the CLOB column's names to transform to
String
-
getRichTextFields
protected Set<String> getRichTextFields()
Description copied from class:AbstractApogeeSynchronizableContentsCollection
Get the list of rich text fields of the imported content.- Overrides:
getRichTextFields
in classAbstractApogeeSynchronizableContentsCollection
- Returns:
- The list of the rich text fields metadata name
-
getChildrenMetadataName
protected String getChildrenMetadataName()
Description copied from class:AbstractApogeeSynchronizableContentsCollection
Get the metadata name to get children- Specified by:
getChildrenMetadataName
in classAbstractApogeeSynchronizableContentsCollection
- Returns:
- the metadata name to get children
-
getChildrenInvertMetadataName
protected String getChildrenInvertMetadataName()
Description copied from class:AbstractApogeeSynchronizableContentsCollection
Get the metadata name to get parent from children- Specified by:
getChildrenInvertMetadataName
in classAbstractApogeeSynchronizableContentsCollection
- Returns:
- the metadata name to get parent from children
-
-