Class DefaultVirAttrHandler
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.DefaultVirAttrHandler
-
- All Implemented Interfaces:
VirAttrHandler
@Transactional(readOnly=true) public class DefaultVirAttrHandler extends Object implements VirAttrHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyUtilsFactoryanyUtilsFactoryprotected ConnectorManagerconnectorManagerprotected static LoggerLOGprotected OutboundMatcheroutboundMatcherprotected VirAttrCachevirAttrCache
-
Constructor Summary
Constructors Constructor Description DefaultVirAttrHandler(ConnectorManager connectorManager, VirAttrCache virAttrCache, OutboundMatcher outboundMatcher, AnyUtilsFactory anyUtilsFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<VirSchema,List<String>>getValues(Any<?> any)Query external resources (or cache, if configured) associated to the given any for values associated to allVirSchemainstances in theAnyTypeClassassociated to the given any, with no membership.protected Map<VirSchema,List<String>>getValues(Any<?> any, Set<VirSchema> schemas)Map<VirSchema,List<String>>getValues(Any<?> any, Membership<?> membership)Query external resources (or cache, if configured) associated to the given any for values associated to allVirSchemainstances in theAnyTypeClassassociated to the given any, for the given membership.List<String>getValues(Any<?> any, Membership<?> membership, VirSchema schema)Query external resource (or cache, if configured) associated to the given any for values associated to the given virtual schema, for the given membership.List<String>getValues(Any<?> any, VirSchema schema)Query external resource (or cache, if configured) associated to the given any for values associated to the given virtual schema, not related to any membership.voidsetValues(Any<?> any, ConnectorObject connObj)Updates cache with values from external resource.
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
connectorManager
protected final ConnectorManager connectorManager
-
virAttrCache
protected final VirAttrCache virAttrCache
-
outboundMatcher
protected final OutboundMatcher outboundMatcher
-
anyUtilsFactory
protected final AnyUtilsFactory anyUtilsFactory
-
-
Constructor Detail
-
DefaultVirAttrHandler
public DefaultVirAttrHandler(ConnectorManager connectorManager, VirAttrCache virAttrCache, OutboundMatcher outboundMatcher, AnyUtilsFactory anyUtilsFactory)
-
-
Method Detail
-
setValues
public void setValues(Any<?> any, ConnectorObject connObj)
Description copied from interface:VirAttrHandlerUpdates cache with values from external resource.- Specified by:
setValuesin interfaceVirAttrHandler- Parameters:
any- any objectconnObj- connector object from external resource
-
getValues
public List<String> getValues(Any<?> any, VirSchema schema)
Description copied from interface:VirAttrHandlerQuery external resource (or cache, if configured) associated to the given any for values associated to the given virtual schema, not related to any membership.- Specified by:
getValuesin interfaceVirAttrHandler- Parameters:
any- any objectschema- virtual schema- Returns:
- virtual attribute values, either for local cache or external resource, if resource is owned by the given any and associated to the given virtual schema; empty list otherwise.
-
getValues
public List<String> getValues(Any<?> any, Membership<?> membership, VirSchema schema)
Description copied from interface:VirAttrHandlerQuery external resource (or cache, if configured) associated to the given any for values associated to the given virtual schema, for the given membership.- Specified by:
getValuesin interfaceVirAttrHandler- Parameters:
any- any objectmembership- membershipschema- virtual schema- Returns:
- virtual attribute values, either for local cache or external resource, if resource is owned by the given any and associated to the given virtual schema; empty list otherwise.
-
getValues
public Map<VirSchema,List<String>> getValues(Any<?> any)
Description copied from interface:VirAttrHandlerQuery external resources (or cache, if configured) associated to the given any for values associated to allVirSchemainstances in theAnyTypeClassassociated to the given any, with no membership.- Specified by:
getValuesin interfaceVirAttrHandler- Parameters:
any- any object- Returns:
- virtual attribute values, either for local cache or external resources
-
getValues
public Map<VirSchema,List<String>> getValues(Any<?> any, Membership<?> membership)
Description copied from interface:VirAttrHandlerQuery external resources (or cache, if configured) associated to the given any for values associated to allVirSchemainstances in theAnyTypeClassassociated to the given any, for the given membership.- Specified by:
getValuesin interfaceVirAttrHandler- Parameters:
any- any objectmembership- membership- Returns:
- virtual attribute values, either for local cache or external resources
-
-