Package org.apache.syncope.core.logic
Class SCIMDataBinder
java.lang.Object
org.apache.syncope.core.logic.SCIMDataBinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AuthDataAccessor
protected final SCIMConfManager
protected final GroupDAO
protected static final Logger
protected final UserLogic
-
Constructor Summary
ConstructorsConstructorDescriptionSCIMDataBinder
(SCIMConfManager confManager, UserLogic userLogic, AuthDataAccessor authDataAccessor, GroupDAO groupDAO) -
Method Summary
Modifier and TypeMethodDescriptionprotected <E extends Enum<?>>
voidfill
(Map<String, Attr> attrs, List<SCIMComplexConf<E>> confs, List<SCIMComplexValue> values) static String
filter2JexlExpression
(String filter) Translates the given SCIM filter into the equivalent JEXL expression.protected boolean
protected <T> T
protected <E extends Enum<?>>
voidsetAttribute
(Set<Attr> attrs, List<SCIMComplexConf<E>> confs, List<SCIMComplexValue> values) protected void
setAttribute
(Set<AttrPatch> attrs, String schema, SCIMPatchOperation op) protected <E extends Enum<?>>
voidsetAttribute
(Set<AttrPatch> attrs, List<SCIMComplexConf<E>> confs, List<SCIMComplexValue> values, PatchOp patchOp) protected <E extends Enum<?>>
voidsetAttribute
(Set<AttrPatch> attrs, List<SCIMComplexConf<E>> confs, SCIMPatchOperation op) protected void
setAttribute
(Set<AttrPatch> attrs, SCIMUserAddressConf conf, SCIMPatchOperation op) protected void
setAttribute
(AnyObjectTO anyObjectTO, String schema, String value) protected void
setAttribute
(GroupTO groupTO, String schema, String value) protected void
setAttribute
(UserTO userTO, String schema, String value) toAnyObjectCR
(SCIMAnyObject anyObject) toAnyObjectTO
(SCIMAnyObject anyObject, boolean checkSchemas) toAnyObjectUR
(AnyObjectTO before, SCIMPatchOperation op) toGroupUR
(GroupTO before, SCIMPatchOperation op) toSCIMAnyObject
(AnyObjectTO anyObjectTO, String location, List<String> attributes, List<String> excludedAttributes) toSCIMGroup
(GroupTO groupTO, String location, List<String> attributes, List<String> excludedAttributes) toSCIMUser
(UserTO userTO, String location, List<String> attributes, List<String> excludedAttributes) toUserUpdate
(UserTO before, Collection<String> resources, SCIMPatchOperation op)
-
Field Details
-
LOG
-
confManager
-
userLogic
-
authDataAccessor
-
groupDAO
-
-
Constructor Details
-
SCIMDataBinder
public SCIMDataBinder(SCIMConfManager confManager, UserLogic userLogic, AuthDataAccessor authDataAccessor, GroupDAO groupDAO)
-
-
Method Details
-
filter2JexlExpression
Translates the given SCIM filter into the equivalent JEXL expression.- Parameters:
filter
- SCIM filter according to https://www.rfc-editor.org/rfc/rfc7644#section-3.4.2.2- Returns:
- translated JEXL expression; see https://commons.apache.org/proper/commons-jexl/reference/syntax.html
-
fill
protected <E extends Enum<?>> void fill(Map<String, Attr> attrs, List<SCIMComplexConf<E>> confs, List<SCIMComplexValue> values) -
output
-
output
-
toSCIMUser
-
setAttribute
-
setAttribute
-
setAttribute
-
setAttribute
protected <E extends Enum<?>> void setAttribute(Set<Attr> attrs, List<SCIMComplexConf<E>> confs, List<SCIMComplexValue> values) -
toUserTO
-
toUserCR
-
setAttribute
-
setAttribute
protected <E extends Enum<?>> void setAttribute(Set<AttrPatch> attrs, List<SCIMComplexConf<E>> confs, SCIMPatchOperation op) -
setAttribute
protected <E extends Enum<?>> void setAttribute(Set<AttrPatch> attrs, List<SCIMComplexConf<E>> confs, List<SCIMComplexValue> values, PatchOp patchOp) -
setAttribute
-
toUserUpdate
public Pair<UserUR,StatusR> toUserUpdate(UserTO before, Collection<String> resources, SCIMPatchOperation op) -
toSCIMGroup
-
toGroupTO
-
toGroupCR
-
toGroupUR
-
toSCIMAnyObject
public SCIMAnyObject toSCIMAnyObject(AnyObjectTO anyObjectTO, String location, List<String> attributes, List<String> excludedAttributes) -
toAnyObjectTO
-
toAnyObjectCR
-
toAnyObjectUR
-