Class UDOrgUnitTypeOperator
- java.lang.Object
-
- org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
-
- org.ametys.plugins.userdirectory.synchronize.UDOrgUnitTypeOperator
-
- All Implemented Interfaces:
SynchronizingContentOperator
,PluginAware
,Configurable
,Serviceable
public class UDOrgUnitTypeOperator extends DefaultSynchronizingContentOperator implements Serviceable
Operator to get UDOrgUnit Type content
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The Ametys resolverprotected static String
UDORGUNIT_METADATA_TYPE
The name of the metadata holding the type of orgunitprotected static String
UDORGUNIT_TYPE_CONTENT_TYPE
The id of orgunit's type content typeprotected static String
UDORGUNIT_TYPE_METADATA_CODE
The name of the metadata holding the code of a Orgunit type-
Fields inherited from class org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
_label, _pluginName
-
-
Constructor Summary
Constructors Constructor Description UDOrgUnitTypeOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Content
_getOrgUnitTypeFromCode(String code)
Get UDOrgUnit Type content from codevoid
service(ServiceManager manager)
Map<String,List<Object>>
transform(ContentType cType, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)
Transforms the remote values of aSynchronizableContentsCollection
before synchronizing metadata.-
Methods inherited from class org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
additionalOperation, configure, getLabel, setPluginInfo
-
-
-
-
Field Detail
-
UDORGUNIT_TYPE_CONTENT_TYPE
protected static final String UDORGUNIT_TYPE_CONTENT_TYPE
The id of orgunit's type content type- See Also:
- Constant Field Values
-
UDORGUNIT_METADATA_TYPE
protected static final String UDORGUNIT_METADATA_TYPE
The name of the metadata holding the type of orgunit- See Also:
- Constant Field Values
-
UDORGUNIT_TYPE_METADATA_CODE
protected static final String UDORGUNIT_TYPE_METADATA_CODE
The name of the metadata holding the code of a Orgunit type- See Also:
- Constant Field Values
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys resolver
-
-
Constructor Detail
-
UDOrgUnitTypeOperator
public UDOrgUnitTypeOperator()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
transform
public Map<String,List<Object>> transform(ContentType cType, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)
Description copied from interface:SynchronizingContentOperator
Transforms the remote values of aSynchronizableContentsCollection
before synchronizing metadata.- Specified by:
transform
in interfaceSynchronizingContentOperator
- Overrides:
transform
in classDefaultSynchronizingContentOperator
- Parameters:
cType
- The content typeremoteValues
- The remote values to transformlogger
- The logger- Returns:
- The transformed remote values
-
_getOrgUnitTypeFromCode
protected Content _getOrgUnitTypeFromCode(String code)
Get UDOrgUnit Type content from code- Parameters:
code
- the code- Returns:
- The UDOrgUnit Type content or
null
if not found
-
-