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 AnyUtilsFactory
anyUtilsFactory
protected ConnectorManager
connectorManager
protected static Logger
LOG
protected OutboundMatcher
outboundMatcher
protected VirAttrCache
virAttrCache
-
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 allVirSchema
instances in theAnyTypeClass
associated 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 allVirSchema
instances in theAnyTypeClass
associated 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.void
setValues(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:VirAttrHandler
Updates cache with values from external resource.- Specified by:
setValues
in interfaceVirAttrHandler
- Parameters:
any
- any objectconnObj
- connector object from external resource
-
getValues
public List<String> getValues(Any<?> any, VirSchema schema)
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
public List<String> getValues(Any<?> any, Membership<?> membership, VirSchema schema)
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
public Map<VirSchema,List<String>> getValues(Any<?> any)
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
public Map<VirSchema,List<String>> getValues(Any<?> any, Membership<?> membership)
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
-
-