Class UserDataBinderImpl
java.lang.Object
org.apache.syncope.core.provisioning.java.data.UserDataBinderImpl
- All Implemented Interfaces:
UserDataBinder
@Transactional(rollbackFor=java.lang.Throwable.class)
public class UserDataBinderImpl
extends Object
implements UserDataBinder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessTokenDAO
protected final AnyObjectDAO
protected final AnyTypeClassDAO
protected final AnyTypeDAO
protected final AnyUtilsFactory
protected final ApplicationDAO
protected final ConfParamOps
protected final DelegationDAO
protected final DerAttrHandler
protected final Map
<String, DropdownValueProvider> protected final EntityFactory
protected final GroupDAO
protected final IntAttrNameParser
protected static final Logger
protected final MappingManager
protected final OutboundMatcher
protected final PlainAttrValueDAO
protected final PlainSchemaDAO
protected final RealmSearchDAO
protected final RelationshipTypeDAO
protected final ExternalResourceDAO
protected final RoleDAO
protected final SecurityProperties
protected final SecurityQuestionDAO
protected final UserDAO
protected final PlainAttrValidationManager
protected final VirAttrHandler
-
Constructor Summary
ConstructorDescriptionUserDataBinderImpl
(AnyTypeDAO anyTypeDAO, RealmSearchDAO realmSearchDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, PlainAttrValueDAO plainAttrValueDAO, ExternalResourceDAO resourceDAO, RelationshipTypeDAO relationshipTypeDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, DerAttrHandler derAttrHandler, VirAttrHandler virAttrHandler, MappingManager mappingManager, IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, PlainAttrValidationManager validator, RoleDAO roleDAO, SecurityQuestionDAO securityQuestionDAO, ApplicationDAO applicationDAO, AccessTokenDAO accessTokenDAO, DelegationDAO delegationDAO, ConfParamOps confParamOps, SecurityProperties securityProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected RuntimeException
aggregateException
(SyncopeClientCompositeException scce, RuntimeException e, ClientExceptionType clientExceptionType) void
evaluateMandatoryCondition
(ExternalResource resource, Provision provision, Any<?> any) protected void
protected void
protected void
fill
(AnyTO anyTO, Any any, Membership membership, MembershipTO membershipTO, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected void
fillAttr
(AnyTO anyTO, List<String> values, AnyUtils anyUtils, PlainSchema schema, PlainAttr<?> attr, SyncopeClientException invalidValues) protected static void
fillTO
(AnyTO anyTO, String realmFullPath, Collection<? extends AnyTypeClass> auxClasses, Collection<? extends PlainAttr<?>> plainAttrs, Map<DerSchema, String> derAttrs, Map<VirSchema, List<String>> virAttrs, Collection<? extends ExternalResource> resources) getLinkedAccountTO
(LinkedAccount account) protected LinkedAccountTO
getLinkedAccountTO
(LinkedAccount account, boolean returnPasswordValue) protected static MembershipTO
getMembershipTO
(Collection<? extends PlainAttr<?>> plainAttrs, Map<DerSchema, String> derAttrs, Map<VirSchema, List<String>> virAttrs, Membership<? extends Any<?>> membership) protected PlainSchema
getPlainSchema
(String schemaName) protected static RelationshipTO
getRelationshipTO
(String relationshipType, RelationshipTO.End end, Any<?> otherEnd) protected boolean
isPasswordMapped
(ExternalResource resource) protected void
linkedAccount
(UserTO anyTO, User user, LinkedAccountTO accountTO, AnyUtils anyUtils, SyncopeClientException invalidValues) protected Map
<String, ConnObject> onResources
(Any<?> any, Collection<String> resources, String password, boolean changePwd) protected void
processAttrPatch
(AnyTO anyTO, Any any, AttrPatch patch, PlainSchema schema, PlainAttr<?> attr, AnyUtils anyUtils, SyncopeClientException invalidValues) protected PropagationByResource
<String> propByRes
(Map<String, ConnObject> before, Map<String, ConnObject> after) protected void
setCipherAlgorithm
(User user) protected void
setPassword
(User user, String password, SyncopeClientCompositeException scce) protected void
protected void
setSecurityAnswer
(User user, String securityAnswer, SyncopeClientCompositeException scce) Update user, givenUserUR
.
-
Field Details
-
roleDAO
-
securityQuestionDAO
-
applicationDAO
-
accessTokenDAO
-
delegationDAO
-
confParamOps
-
securityProperties
-
LOG
-
anyTypeDAO
-
realmSearchDAO
-
anyTypeClassDAO
-
anyObjectDAO
-
userDAO
-
groupDAO
-
plainSchemaDAO
-
plainAttrValueDAO
-
resourceDAO
-
relationshipTypeDAO
-
entityFactory
-
anyUtilsFactory
-
derAttrHandler
-
virAttrHandler
-
mappingManager
-
intAttrNameParser
-
outboundMatcher
-
validator
-
dropdownValueProviders
-
-
Constructor Details
-
UserDataBinderImpl
public UserDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmSearchDAO realmSearchDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, PlainAttrValueDAO plainAttrValueDAO, ExternalResourceDAO resourceDAO, RelationshipTypeDAO relationshipTypeDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, DerAttrHandler derAttrHandler, VirAttrHandler virAttrHandler, MappingManager mappingManager, IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, PlainAttrValidationManager validator, RoleDAO roleDAO, SecurityQuestionDAO securityQuestionDAO, ApplicationDAO applicationDAO, AccessTokenDAO accessTokenDAO, DelegationDAO delegationDAO, ConfParamOps confParamOps, SecurityProperties securityProperties)
-
-
Method Details
-
getAuthenticatedUserTO
- Specified by:
getAuthenticatedUserTO
in interfaceUserDataBinder
-
aggregateException
protected RuntimeException aggregateException(SyncopeClientCompositeException scce, RuntimeException e, ClientExceptionType clientExceptionType) -
setPassword
-
setSecurityAnswer
protected void setSecurityAnswer(User user, String securityAnswer, SyncopeClientCompositeException scce) -
setCipherAlgorithm
-
linkedAccount
protected void linkedAccount(UserTO anyTO, User user, LinkedAccountTO accountTO, AnyUtils anyUtils, SyncopeClientException invalidValues) -
create
- Specified by:
create
in interfaceUserDataBinder
-
isPasswordMapped
-
update
public Pair<PropagationByResource<String>,PropagationByResource<Pair<String, updateString>>> (User toBeUpdated, UserUR userUR) Description copied from interface:UserDataBinder
Update user, givenUserUR
.- Specified by:
update
in interfaceUserDataBinder
- Parameters:
toBeUpdated
- user to be updateduserUR
- bean containing update request- Returns:
- updated user + propagation by resource
- See Also:
-
getLinkedAccountTO
-
getLinkedAccountTO
- Specified by:
getLinkedAccountTO
in interfaceUserDataBinder
-
getUserTO
- Specified by:
getUserTO
in interfaceUserDataBinder
-
getUserTO
- Specified by:
getUserTO
in interfaceUserDataBinder
-
fillTO
protected static void fillTO(AnyTO anyTO, String realmFullPath, Collection<? extends AnyTypeClass> auxClasses, Collection<? extends PlainAttr<?>> plainAttrs, Map<DerSchema, String> derAttrs, Map<VirSchema, List<String>> virAttrs, Collection<? extends ExternalResource> resources) -
getRelationshipTO
protected static RelationshipTO getRelationshipTO(String relationshipType, RelationshipTO.End end, Any<?> otherEnd) -
getMembershipTO
protected static MembershipTO getMembershipTO(Collection<? extends PlainAttr<?>> plainAttrs, Map<DerSchema, String> derAttrs, Map<VirSchema, List<String>> virAttrs, Membership<? extends Any<?>> membership) -
setRealm
-
onResources
protected Map<String,ConnObject> onResources(Any<?> any, Collection<String> resources, String password, boolean changePwd) -
getPlainSchema
-
fillAttr
protected void fillAttr(AnyTO anyTO, List<String> values, AnyUtils anyUtils, PlainSchema schema, PlainAttr<?> attr, SyncopeClientException invalidValues) -
evaluateMandatoryCondition
protected List<String> evaluateMandatoryCondition(ExternalResource resource, Provision provision, Any<?> any) -
processAttrPatch
protected void processAttrPatch(AnyTO anyTO, Any any, AttrPatch patch, PlainSchema schema, PlainAttr<?> attr, AnyUtils anyUtils, SyncopeClientException invalidValues) -
fill
protected void fill(AnyTO anyTO, Any any, AnyUR anyUR, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
propByRes
protected PropagationByResource<String> propByRes(Map<String, ConnObject> before, Map<String, ConnObject> after) -
fill
protected void fill(AnyTO anyTO, Any any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
fill
protected void fill(AnyTO anyTO, Any any, Membership membership, MembershipTO membershipTO, AnyUtils anyUtils, SyncopeClientCompositeException scce)
-