Class DefaultDerAttrHandler
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.DefaultDerAttrHandler
-
- All Implemented Interfaces:
DerAttrHandler
@Transactional(readOnly=true) public class DefaultDerAttrHandler extends Object implements DerAttrHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyUtilsFactory
anyUtilsFactory
protected static Logger
LOG
-
Constructor Summary
Constructors Constructor Description DefaultDerAttrHandler(AnyUtilsFactory anyUtilsFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue(Any<?> any, DerSchema schema)
Calculates derived attribute value associated to the given any, for the given derived schema.String
getValue(Any<?> any, Membership<?> membership, DerSchema schema)
Calculates derived attribute value associated to the given any, for the given membership and derived schema.Map<DerSchema,String>
getValues(Any<?> any)
Calculates derived attributes values associated to the given any.protected static Map<DerSchema,String>
getValues(Any<?> any, Set<DerSchema> schemas)
Map<DerSchema,String>
getValues(GroupableRelatable<?,?,?,?,?> any, Membership<?> membership)
Calculates derived attributes values associated to the given any, for the given membership.protected static Map<DerSchema,String>
getValues(GroupableRelatable<?,?,?,?,?> any, Membership<?> membership, Set<DerSchema> schemas)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
anyUtilsFactory
protected final AnyUtilsFactory anyUtilsFactory
-
-
Constructor Detail
-
DefaultDerAttrHandler
public DefaultDerAttrHandler(AnyUtilsFactory anyUtilsFactory)
-
-
Method Detail
-
getValue
public String getValue(Any<?> any, DerSchema schema)
Description copied from interface:DerAttrHandler
Calculates derived attribute value associated to the given any, for the given derived schema.- Specified by:
getValue
in interfaceDerAttrHandler
- Parameters:
any
- any objectschema
- derived schema- Returns:
- derived attribute value
-
getValue
public String getValue(Any<?> any, Membership<?> membership, DerSchema schema)
Description copied from interface:DerAttrHandler
Calculates derived attribute value associated to the given any, for the given membership and derived schema.- Specified by:
getValue
in interfaceDerAttrHandler
- Parameters:
any
- any objectmembership
- membershipschema
- derived schema- Returns:
- derived attribute value
-
getValues
public Map<DerSchema,String> getValues(Any<?> any)
Description copied from interface:DerAttrHandler
Calculates derived attributes values associated to the given any.- Specified by:
getValues
in interfaceDerAttrHandler
- Parameters:
any
- any object- Returns:
- derived attribute values
-
getValues
protected static Map<DerSchema,String> getValues(GroupableRelatable<?,?,?,?,?> any, Membership<?> membership, Set<DerSchema> schemas)
-
getValues
public Map<DerSchema,String> getValues(GroupableRelatable<?,?,?,?,?> any, Membership<?> membership)
Description copied from interface:DerAttrHandler
Calculates derived attributes values associated to the given any, for the given membership.- Specified by:
getValues
in interfaceDerAttrHandler
- Parameters:
any
- any objectmembership
- membership- Returns:
- derived attribute values
-
-