public interface SynchronizableContentsCollection
Modifier and Type | Field and Description |
---|---|
static String |
COLLECTION_ID_PROPERTY
The name for the metadata indicating the ids of the collections
|
Modifier and Type | Method and Description |
---|---|
ModifiableDefaultContent |
getContent(String lang,
String idValue)
Gets the content in the repository
|
String |
getContentPrefix()
Get the prefix to use for the creation of contents
|
String |
getContentType()
Get the type of content handled by this collection
|
Set<String> |
getExternalOnlyFields(Map<String,Object> additionalParameters)
Get the path of field that are valued externally only.
|
String |
getId()
Get the id of synchronizable collection.
|
String |
getIdField()
Get the path of metadata holding the unique identifier
|
int |
getInitialActionId()
Get the id of the initial action of the workflow
|
I18nizableText |
getLabel()
Get the label of synchronizable collection
|
Set<String> |
getLocalAndExternalFields(Map<String,Object> additionalParameters)
Get the path of tri-state fields (with local and external values)
|
Map<String,Object> |
getParameterValues()
Get the untyped values of parameters for controller
|
String |
getReportMails()
If an exception occurs during synchronization, an error report mail will be sent to those email addresses (separated by new lines)
|
String |
getRestrictedField()
Get the path of boolean metadata for restricted content.
|
SCCSearchModelConfiguration |
getSearchModelConfiguration()
Get the search UI model for search tool (columns, criterias, url for buttons, etc.)
|
String |
getSynchronizeCollectionModelId()
Get the id of controller responsible of synchronization of this collection
|
String |
getSynchronizingContentOperator()
Gets the id of the
SynchronizingContentOperator extension to use during synchronization |
int |
getTotalCount(Map<String,Object> parameters,
Logger logger)
Return the total number of results for the search.
|
int |
getValidateActionId()
Get the id of the validate action of the workflow
|
String |
getWorkflowName()
Get the name of the workflow to use for the synchronized contents
|
default boolean |
handleRightAssignmentContext()
Return true if a
RightAssignmentContext should be automatically generated for the contents of this SCC |
List<ModifiableDefaultContent> |
importContent(String idValue,
Map<String,Object> additionalParameters,
Logger logger)
Import a content from remote values.
|
List<ModifiableDefaultContent> |
populate(Logger logger)
Populates contents
|
boolean |
removalSync()
When returns true, a content created by a previous synchro will be removed if it does not exist anymore during the current synchro.
|
Map<String,Map<String,Object>> |
search(Map<String,Object> parameters,
int offset,
int limit,
List<Object> sort,
Logger logger)
Search the data to import from parameters.
|
void |
synchronizeContent(ModifiableDefaultContent content,
Logger logger)
Synchronize a content with remove values.
|
boolean |
synchronizeExistingContentsOnly()
True to synchronize only existing contents
|
void |
updateSyncInformations(ModifiableDefaultContent content,
String syncCode,
Logger logger)
Method to update the synchronisation informations (collection and value of the ID field).
|
boolean |
validateAfterImport()
True to validate the contents after import
|
static final String COLLECTION_ID_PROPERTY
I18nizableText getLabel()
String getContentType()
String getSynchronizeCollectionModelId()
Map<String,Object> getParameterValues()
boolean removalSync()
String getWorkflowName()
int getInitialActionId()
int getValidateActionId()
String getContentPrefix()
boolean validateAfterImport()
String getReportMails()
String getSynchronizingContentOperator()
SynchronizingContentOperator
extension to use during synchronizationSynchronizingContentOperator
extension to use during synchronizationString getRestrictedField()
String getIdField()
Set<String> getLocalAndExternalFields(Map<String,Object> additionalParameters)
additionalParameters
- Additional parametersSet<String> getExternalOnlyFields(Map<String,Object> additionalParameters)
additionalParameters
- Additional parametersSCCSearchModelConfiguration getSearchModelConfiguration()
SCCSearchModelConfiguration
boolean synchronizeExistingContentsOnly()
List<ModifiableDefaultContent> populate(Logger logger)
logger
- The loggerList<ModifiableDefaultContent> importContent(String idValue, Map<String,Object> additionalParameters, Logger logger) throws Exception
idValue
- Id (for import/synchronization) of the content to importadditionalParameters
- Additional parameterslogger
- The loggerException
- if an error occurs.void synchronizeContent(ModifiableDefaultContent content, Logger logger) throws Exception
content
- The content to synchronizelogger
- The loggerException
- if an error occurs.ModifiableDefaultContent getContent(String lang, String idValue)
lang
- the languageidValue
- the content nameMap<String,Map<String,Object>> search(Map<String,Object> parameters, int offset, int limit, List<Object> sort, Logger logger)
parameters
- Parameters for the searchoffset
- Begin of the searchlimit
- Number of resultssort
- Sort of results (ignored for LDAP results)logger
- The loggervoid updateSyncInformations(ModifiableDefaultContent content, String syncCode, Logger logger) throws Exception
content
- Content to updatesyncCode
- New synchronization codelogger
- The loggerException
- if an error occurs.int getTotalCount(Map<String,Object> parameters, Logger logger)
parameters
- Parameters for the searchlogger
- The loggerdefault boolean handleRightAssignmentContext()
RightAssignmentContext
should be automatically generated for the contents of this SCCRightAssignmentContext
. Return false if the rights of contents of this SCC are handle by its own RightAssignmentContext