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
Modifier and TypeFieldDescriptionprotected final AnyUtilsFactory
protected final ConnectorManager
protected static final Logger
protected final OutboundMatcher
protected final javax.cache.Cache
<VirAttrCacheKey, VirAttrCacheValue> Fields inherited from interface org.apache.syncope.core.provisioning.api.VirAttrHandler
CACHE
-
Constructor Summary
ConstructorDescriptionDefaultVirAttrHandler
(ConnectorManager connectorManager, javax.cache.Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache, OutboundMatcher outboundMatcher, AnyUtilsFactory anyUtilsFactory) -
Method Summary
Modifier and TypeMethodDescriptionQuery external resources (or cache, if configured) associated to the given any for values associated to allVirSchema
instances in theAnyTypeClass
associated to the given any, with no membership.getValues
(Any<?> any, Membership<?> membership) Query external resources (or cache, if configured) associated to the given any for values associated to allVirSchema
instances in theAnyTypeClass
associated to the given any, for the given membership.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.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.void
setValues
(Any<?> any, ConnectorObject connObj) Updates cache with values from external resource.
-
Field Details
-
LOG
-
connectorManager
-
virAttrCache
-
outboundMatcher
-
anyUtilsFactory
-
-
Constructor Details
-
DefaultVirAttrHandler
public DefaultVirAttrHandler(ConnectorManager connectorManager, javax.cache.Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache, OutboundMatcher outboundMatcher, AnyUtilsFactory anyUtilsFactory)
-
-
Method Details
-
setValues
Description copied from interface:VirAttrHandler
Updates cache with values from external resource.- Specified by:
setValues
in interfaceVirAttrHandler
- Parameters:
any
- any objectconnObj
- connector object from external resource
-
getValues
-
getValues
Description copied from interface:VirAttrHandler
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.- Specified by:
getValues
in 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
Description copied from interface:VirAttrHandler
Query 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:
getValues
in 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
Description copied from interface:VirAttrHandler
Query external resources (or cache, if configured) associated to the given any for values associated to allVirSchema
instances in theAnyTypeClass
associated to the given any, with no membership.- Specified by:
getValues
in interfaceVirAttrHandler
- Parameters:
any
- any object- Returns:
- virtual attribute values, either for local cache or external resources
-
getValues
Description copied from interface:VirAttrHandler
Query external resources (or cache, if configured) associated to the given any for values associated to allVirSchema
instances in theAnyTypeClass
associated to the given any, for the given membership.- Specified by:
getValues
in interfaceVirAttrHandler
- Parameters:
any
- any objectmembership
- membership- Returns:
- virtual attribute values, either for local cache or external resources
-