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 final JexlToolsprotected 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, JexlTools jexlTools) -
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 voidfill(AnyTO anyTO, Relatable<?, ?> any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected voidfill(AnyTO anyTO, Relatable<?, ?> any, AnyUR anyUR, PropagationByResource<String> propByRes, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected voidfillAttr(AttributableTO attributableTO, List<String> values, PlainSchema schema, PlainAttr attr, SyncopeClientException invalidValues) protected static voidfillTO(Any any, AnyTO anyTO, Map<String, String> derAttrs, Collection<? extends ExternalResource> resources) getLinkedAccountTO(LinkedAccount account) protected LinkedAccountTOgetLinkedAccountTO(LinkedAccount account, boolean returnPasswordValue) protected static MembershipTOgetMembershipTO(Collection<PlainAttr> plainAttrs, Map<String, String> derAttrs, Membership<? extends Any> membership) protected Optional<PlainSchema> getPlainSchema(String schemaName) protected static RelationshipTOgetRelationshipTO(Collection<PlainAttr> plainAttrs, Map<String, String> derAttrs, String relationshipType, RelationshipTO.End end, Any otherEnd) protected booleanisPasswordMapped(ExternalResource resource) protected voidlinkedAccount(UserTO anyTO, User user, LinkedAccountTO accountTO, SyncopeClientException invalidValues) protected voidmembershipPlainAttrsOnCreate(AnyTO anyTO, Groupable<?, ?, ?> any, Membership<?> membership, MembershipTO membershipTO, SyncopeClientCompositeException scce) protected voidmembershipPlainAttrsOnUpdate(Set<Attr> plainAttrs, AnyTO anyTO, Groupable<?, ?, ?> any, Membership<?> membership, SyncopeClientCompositeException scce) protected voidmemberships(List<MembershipTO> memberships, AnyTO anyTO, Groupable<?, ?, ?> any, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected voidmemberships(Set<MembershipUR> memberships, AnyTO anyTO, Groupable<?, ?, ?> any, Consumer<Group> groupProcessor, PropagationByResource<String> propByRes, AnyUtils anyUtils, SyncopeClientCompositeException scce) 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 voidrelationshipPlainAttrsOnCreate(AnyTO anyTO, Relatable<?, ?> any, Relationship<?, ?> relationship, RelationshipTO relationshipTO, SyncopeClientCompositeException scce) protected voidrelationshipPlainAttrsOnUpdate(Set<Attr> plainAttrs, AnyTO anyTO, Relatable<?, ?> any, Relationship<?, ?> relationship, SyncopeClientCompositeException scce) 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
-
jexlTools
-
-
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, JexlTools jexlTools)
-
-
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
Description copied from interface:UserDataBinderUpdate user, givenUserUR.- Specified by:
updatein interfaceUserDataBinder- Parameters:
toBeUpdated- user to be updateduserUR- bean containing update request- Returns:
- propagation information
-
getLinkedAccountTO
-
getLinkedAccountTO
- Specified by:
getLinkedAccountTOin interfaceUserDataBinder
-
getUserTO
- Specified by:
getUserTOin interfaceUserDataBinder
-
getUserTO
- Specified by:
getUserTOin interfaceUserDataBinder
-
fillTO
protected static void fillTO(Any any, AnyTO anyTO, Map<String, String> derAttrs, Collection<? extends ExternalResource> resources) -
getRelationshipTO
protected static RelationshipTO getRelationshipTO(Collection<PlainAttr> plainAttrs, Map<String, String> derAttrs, String relationshipType, RelationshipTO.End end, Any otherEnd) -
getMembershipTO
protected static MembershipTO getMembershipTO(Collection<PlainAttr> plainAttrs, Map<String, 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, Relatable<?, ?> any, AnyUR anyUR, PropagationByResource<String> propByRes, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
memberships
protected void memberships(Set<MembershipUR> memberships, AnyTO anyTO, Groupable<?, ?, ?> any, Consumer<Group> groupProcessor, PropagationByResource<String> propByRes, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
fill
protected void fill(AnyTO anyTO, Relatable<?, ?> any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
memberships
protected void memberships(List<MembershipTO> memberships, AnyTO anyTO, Groupable<?, ?, ?> any, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
relationshipPlainAttrsOnCreate
protected void relationshipPlainAttrsOnCreate(AnyTO anyTO, Relatable<?, ?> any, Relationship<?, ?> relationship, RelationshipTO relationshipTO, SyncopeClientCompositeException scce) -
membershipPlainAttrsOnCreate
protected void membershipPlainAttrsOnCreate(AnyTO anyTO, Groupable<?, ?, ?> any, Membership<?> membership, MembershipTO membershipTO, SyncopeClientCompositeException scce) -
relationshipPlainAttrsOnUpdate
protected void relationshipPlainAttrsOnUpdate(Set<Attr> plainAttrs, AnyTO anyTO, Relatable<?, ?> any, Relationship<?, ?> relationship, SyncopeClientCompositeException scce) -
membershipPlainAttrsOnUpdate
protected void membershipPlainAttrsOnUpdate(Set<Attr> plainAttrs, AnyTO anyTO, Groupable<?, ?, ?> any, Membership<?> membership, 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) -
propByRes
protected PropagationByResource<String> propByRes(Map<String, ConnObject> before, Map<String, ConnObject> after)
-