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
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The Ametys resolverprotected static final String
The name of the attribute holding the type of orgunitprotected static final String
The name of the attribute holding the code of a Orgunit typeprotected static final String
The id of orgunit's type content typeFields inherited from class org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
_label, _pluginName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Content
Get UDOrgUnit Type content from codevoid
service
(ServiceManager manager) Transforms the remote values of aSynchronizableContentsCollection
before synchronizing attributes.Methods inherited from class org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
additionalOperation, configure, getLabel, setPluginInfo
-
Field Details
-
UDORGUNIT_TYPE_CONTENT_TYPE
The id of orgunit's type content type- See Also:
-
UDORGUNIT_ATTRIBUTE_TYPE
The name of the attribute holding the type of orgunit- See Also:
-
UDORGUNIT_TYPE_ATTRIBUTE_CODE
The name of the attribute holding the code of a Orgunit type- See Also:
-
_resolver
The Ametys resolver
-
-
Constructor Details
-
UDOrgUnitTypeOperator
public UDOrgUnitTypeOperator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
transform
public Map<String,List<Object>> transform(ContentType cType, Map<String, List<Object>> remoteValues, Logger logger) Description copied from interface:SynchronizingContentOperator
Transforms the remote values of aSynchronizableContentsCollection
before synchronizing attributes.- 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
Get UDOrgUnit Type content from code- Parameters:
code
- the code- Returns:
- The UDOrgUnit Type content or
null
if not found
-