public class SynchronizableContentsCollectionHelper extends Object implements Serviceable, Component
Modifier and Type | Field and Description |
---|---|
protected SynchronizableContentsCollectionDAO |
_sccDAO
SCC DAO
|
static String |
ROLE
The Avalon Role
|
Constructor and Description |
---|
SynchronizableContentsCollectionHelper() |
Modifier and Type | Method and Description |
---|---|
SynchronizableContentsCollection |
getSCCFromModelId(String modelId)
Get the first
SynchronizableContentsCollection found for the given SCC model id. |
Map<String,Map<String,List<Object>>> |
organizeRemoteValuesByMetadata(Map<String,Map<String,Object>> searchResult,
Map<String,List<String>> mapping)
Transform results to be organized by metadata, and remove the null values.
|
void |
service(ServiceManager smanager) |
protected SynchronizableContentsCollectionDAO _sccDAO
public SynchronizableContentsCollectionHelper()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public SynchronizableContentsCollection getSCCFromModelId(String modelId)
SynchronizableContentsCollection
found for the given SCC model id.modelId
- Id of the SCC modelpublic Map<String,Map<String,List<Object>>> organizeRemoteValuesByMetadata(Map<String,Map<String,Object>> searchResult, Map<String,List<String>> mapping)
searchResult
- Remote values from a search by content and column or attributemapping
- Mapping between metadata and columns/attributesMap
of possible metadata values organized by content synchronization key and metadata name