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
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenDAOprotected final AnyObjectDAOprotected final AnyTypeClassDAOprotected final AnyTypeDAOprotected final AnyUtilsFactoryprotected final ConfParamOpsprotected final DelegationDAOprotected final DerAttrHandlerprotected final EntityFactoryprotected final GroupDAOprotected final IntAttrNameParserprotected static final Loggerprotected final MappingManagerprotected final OutboundMatcherprotected final PlainSchemaDAOprotected final RealmSearchDAOprotected final RelationshipTypeDAOprotected final ExternalResourceDAOprotected final RoleDAOprotected final SecurityPropertiesprotected final SecurityQuestionDAOprotected final UserDAOprotected final PlainAttrValidationManager -
Constructor Summary
ConstructorsConstructorDescriptionUserDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmSearchDAO realmSearchDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, ExternalResourceDAO resourceDAO, RelationshipTypeDAO relationshipTypeDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, DerAttrHandler derAttrHandler, MappingManager mappingManager, IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, PlainAttrValidationManager validator, RoleDAO roleDAO, SecurityQuestionDAO securityQuestionDAO, AccessTokenDAO accessTokenDAO, DelegationDAO delegationDAO, ConfParamOps confParamOps, SecurityProperties securityProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected SyncopeClientExceptionprotected SyncopeClientExceptioncheckMandatory(Any any, AnyUtils anyUtils) protected voidcheckMandatory(PlainSchema schema, PlainAttr attr, Attributable attributable, SyncopeClientException reqValMissing) protected SyncopeClientExceptioncheckMandatoryOnResources(Any any, Collection<? extends ExternalResource> resources) voidevaluateMandatoryCondition(ExternalResource resource, Provision provision, Any any) protected voidprotected voidprotected voidfill(AnyTO anyTO, Any any, Membership<?> membership, MembershipTO membershipTO, SyncopeClientCompositeException scce) protected voidfillAttr(AttributableTO attributableTO, List<String> values, PlainSchema schema, PlainAttr attr, SyncopeClientException invalidValues) protected static voidfillTO(AnyTO anyTO, String realmFullPath, Collection<? extends AnyTypeClass> auxClasses, Collection<PlainAttr> plainAttrs, Map<DerSchema, String> derAttrs, Collection<? extends ExternalResource> resources) getLinkedAccountTO(LinkedAccount account) protected LinkedAccountTOgetLinkedAccountTO(LinkedAccount account, boolean returnPasswordValue) protected static MembershipTOgetMembershipTO(Collection<PlainAttr> plainAttrs, Map<DerSchema, String> derAttrs, Membership<? extends Any> membership) protected Optional<PlainSchema> getPlainSchema(String schemaName) protected static RelationshipTOgetRelationshipTO(String relationshipType, RelationshipTO.End end, Any otherEnd) protected booleanisPasswordMapped(ExternalResource resource) protected voidlinkedAccount(UserTO anyTO, User user, LinkedAccountTO accountTO, SyncopeClientException invalidValues) protected Map<String, ConnObject> onResources(Any any, Collection<String> resources, String password, Set<String> changePwdRes) protected voidprocessAttrPatch(AnyTO anyTO, Any any, AttrPatch patch, PlainSchema schema, PlainAttr attr, SyncopeClientException invalidValues) protected PropagationByResource<String> propByRes(Map<String, ConnObject> before, Map<String, ConnObject> after) protected voidsetCipherAlgorithm(User user) protected voidsetPassword(User user, String password, SyncopeClientCompositeException scce) protected voidprotected voidsetSecurityAnswer(User user, String securityAnswer, SyncopeClientCompositeException scce) Update user, givenUserUR.
-
Field Details
-
roleDAO
-
securityQuestionDAO
-
accessTokenDAO
-
delegationDAO
-
confParamOps
-
securityProperties
-
anyTypeDAO
-
realmSearchDAO
-
anyTypeClassDAO
-
anyObjectDAO
-
userDAO
-
groupDAO
-
resourceDAO
-
relationshipTypeDAO
-
entityFactory
-
anyUtilsFactory
-
outboundMatcher
-
LOG
-
plainSchemaDAO
-
validator
-
derAttrHandler
-
mappingManager
-
intAttrNameParser
-
-
Constructor Details
-
UserDataBinderImpl
public UserDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmSearchDAO realmSearchDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, ExternalResourceDAO resourceDAO, RelationshipTypeDAO relationshipTypeDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, DerAttrHandler derAttrHandler, MappingManager mappingManager, IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, PlainAttrValidationManager validator, RoleDAO roleDAO, SecurityQuestionDAO securityQuestionDAO, AccessTokenDAO accessTokenDAO, DelegationDAO delegationDAO, ConfParamOps confParamOps, SecurityProperties securityProperties)
-
-
Method Details
-
getAuthenticatedUserTO
- Specified by:
getAuthenticatedUserTOin interfaceUserDataBinder
-
addToSyncopeClientException
protected SyncopeClientException addToSyncopeClientException(SyncopeClientCompositeException scce, RuntimeException e) -
setPassword
-
setSecurityAnswer
protected void setSecurityAnswer(User user, String securityAnswer, SyncopeClientCompositeException scce) -
setCipherAlgorithm
-
linkedAccount
protected void linkedAccount(UserTO anyTO, User user, LinkedAccountTO accountTO, SyncopeClientException invalidValues) -
create
- Specified by:
createin interfaceUserDataBinder
-
isPasswordMapped
-
update
public Pair<PropagationByResource<String>,PropagationByResource<Pair<String, updateString>>> (User toBeUpdated, UserUR userUR) Description copied from interface:UserDataBinderUpdate user, givenUserUR.- Specified by:
updatein interfaceUserDataBinder- Parameters:
toBeUpdated- user to be updateduserUR- bean containing update request- Returns:
- updated user + propagation by resource
- See Also:
-
getLinkedAccountTO
-
getLinkedAccountTO
- Specified by:
getLinkedAccountTOin interfaceUserDataBinder
-
getUserTO
- Specified by:
getUserTOin interfaceUserDataBinder
-
getUserTO
- Specified by:
getUserTOin interfaceUserDataBinder
-
fillTO
protected static void fillTO(AnyTO anyTO, String realmFullPath, Collection<? extends AnyTypeClass> auxClasses, Collection<PlainAttr> plainAttrs, Map<DerSchema, String> derAttrs, Collection<? extends ExternalResource> resources) -
getRelationshipTO
protected static RelationshipTO getRelationshipTO(String relationshipType, RelationshipTO.End end, Any otherEnd) -
getMembershipTO
protected static MembershipTO getMembershipTO(Collection<PlainAttr> plainAttrs, Map<DerSchema, String> derAttrs, Membership<? extends Any> membership) -
setRealm
-
onResources
protected Map<String,ConnObject> onResources(Any any, Collection<String> resources, String password, Set<String> changePwdRes) -
evaluateMandatoryCondition
protected List<String> evaluateMandatoryCondition(ExternalResource resource, Provision provision, Any any) -
checkMandatoryOnResources
protected SyncopeClientException checkMandatoryOnResources(Any any, Collection<? extends ExternalResource> resources) -
checkMandatory
-
processAttrPatch
protected void processAttrPatch(AnyTO anyTO, Any any, AttrPatch patch, PlainSchema schema, PlainAttr attr, 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, SyncopeClientCompositeException scce) -
getPlainSchema
-
checkMandatory
protected void checkMandatory(PlainSchema schema, PlainAttr attr, Attributable attributable, SyncopeClientException reqValMissing) -
fillAttr
protected void fillAttr(AttributableTO attributableTO, List<String> values, PlainSchema schema, PlainAttr attr, SyncopeClientException invalidValues)
-