Package org.apache.syncope.core.logic
Class SCIMDataBinder
java.lang.Object
org.apache.syncope.core.logic.SCIMDataBinder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AuthDataAccessor
protected final SCIMConfManager
protected static final Logger
protected final UserLogic
-
Constructor Summary
ConstructorDescriptionSCIMDataBinder
(SCIMConfManager confManager, UserLogic userLogic, AuthDataAccessor authDataAccessor) -
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
(UserTO userTO, String schema, String value) toGroupUR
(GroupTO before, SCIMPatchOperation op) 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
-
GROUP_SCHEMAS
-
confManager
-
userLogic
-
authDataAccessor
-
-
Constructor Details
-
SCIMDataBinder
public SCIMDataBinder(SCIMConfManager confManager, UserLogic userLogic, AuthDataAccessor authDataAccessor)
-
-
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
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
-