public class UDOrgUnitTypeOperator extends DefaultSynchronizingContentOperator implements Serviceable
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The Ametys resolver
|
protected static String |
UDORGUNIT_METADATA_TYPE
The name of the metadata holding the type of orgunit
|
protected static String |
UDORGUNIT_TYPE_CONTENT_TYPE
The id of orgunit's type content type
|
protected static String |
UDORGUNIT_TYPE_METADATA_CODE
The name of the metadata holding the code of a Orgunit type
|
_label, _pluginName
Constructor and Description |
---|
UDOrgUnitTypeOperator() |
Modifier and Type | Method and Description |
---|---|
protected Content |
_getOrgUnitTypeFromCode(String code)
Get UDOrgUnit Type content from code
|
void |
service(ServiceManager manager) |
Map<String,List<Object>> |
transform(Map<String,List<Object>> remoteValues,
Logger logger)
Transforms the remote values of a
SynchronizableContentsCollection before synchronizing metadata. |
additionalOperation, configure, getLabel, setPluginInfo
protected static final String UDORGUNIT_TYPE_CONTENT_TYPE
protected static final String UDORGUNIT_METADATA_TYPE
protected static final String UDORGUNIT_TYPE_METADATA_CODE
protected AmetysObjectResolver _resolver
public UDOrgUnitTypeOperator()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Map<String,List<Object>> transform(Map<String,List<Object>> remoteValues, Logger logger)
SynchronizingContentOperator
SynchronizableContentsCollection
before synchronizing metadata.transform
in interface SynchronizingContentOperator
transform
in class DefaultSynchronizingContentOperator
remoteValues
- The remote values to transformlogger
- The loggerprotected Content _getOrgUnitTypeFromCode(String code)
code
- the codenull
if not found