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
-
Constructor Summary
Constructors Constructor Description UserDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmDAO realmDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, PlainAttrDAO plainAttrDAO, 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
-
-
-
Field Detail
-
roleDAO
protected final RoleDAO roleDAO
-
securityQuestionDAO
protected final SecurityQuestionDAO securityQuestionDAO
-
applicationDAO
protected final ApplicationDAO applicationDAO
-
accessTokenDAO
protected final AccessTokenDAO accessTokenDAO
-
delegationDAO
protected final DelegationDAO delegationDAO
-
confParamOps
protected final ConfParamOps confParamOps
-
securityProperties
protected final SecurityProperties securityProperties
-
LOG
protected static final Logger LOG
-
anyTypeDAO
protected final AnyTypeDAO anyTypeDAO
-
realmDAO
protected final RealmDAO realmDAO
-
anyTypeClassDAO
protected final AnyTypeClassDAO anyTypeClassDAO
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
userDAO
protected final UserDAO userDAO
-
groupDAO
protected final GroupDAO groupDAO
-
plainSchemaDAO
protected final PlainSchemaDAO plainSchemaDAO
-
plainAttrDAO
protected final PlainAttrDAO plainAttrDAO
-
plainAttrValueDAO
protected final PlainAttrValueDAO plainAttrValueDAO
-
resourceDAO
protected final ExternalResourceDAO resourceDAO
-
relationshipTypeDAO
protected final RelationshipTypeDAO relationshipTypeDAO
-
entityFactory
protected final EntityFactory entityFactory
-
anyUtilsFactory
protected final AnyUtilsFactory anyUtilsFactory
-
derAttrHandler
protected final DerAttrHandler derAttrHandler
-
virAttrHandler
protected final VirAttrHandler virAttrHandler
-
mappingManager
protected final MappingManager mappingManager
-
intAttrNameParser
protected final IntAttrNameParser intAttrNameParser
-
outboundMatcher
protected final OutboundMatcher outboundMatcher
-
validator
protected final PlainAttrValidationManager validator
-
-
Constructor Detail
-
UserDataBinderImpl
public UserDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmDAO realmDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, PlainAttrDAO plainAttrDAO, 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 Detail
-
getAuthenticatedUserTO
@Transactional(readOnly=true) public UserTO getAuthenticatedUserTO()
- Specified by:
getAuthenticatedUserTO
in interfaceUserDataBinder
-
aggregateException
protected RuntimeException aggregateException(SyncopeClientCompositeException scce, RuntimeException e, ClientExceptionType clientExceptionType)
-
setPassword
protected void setPassword(User user, String password, SyncopeClientCompositeException scce)
-
setSecurityAnswer
protected void setSecurityAnswer(User user, String securityAnswer, SyncopeClientCompositeException scce)
-
setCipherAlgorithm
protected void setCipherAlgorithm(User user)
-
linkedAccount
protected void linkedAccount(User user, LinkedAccountTO accountTO, AnyUtils anyUtils, SyncopeClientException invalidValues)
-
create
public void create(User user, UserCR userCR)
- Specified by:
create
in interfaceUserDataBinder
-
isPasswordMapped
protected boolean isPasswordMapped(ExternalResource resource)
-
update
public Pair<PropagationByResource<String>,PropagationByResource<Pair<String,String>>> update(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:
PropagationByResource
-
getLinkedAccountTO
protected LinkedAccountTO getLinkedAccountTO(LinkedAccount account, boolean returnPasswordValue)
-
getLinkedAccountTO
@Transactional(readOnly=true) public LinkedAccountTO getLinkedAccountTO(LinkedAccount account)
- Specified by:
getLinkedAccountTO
in interfaceUserDataBinder
-
getUserTO
@Transactional(readOnly=true) public UserTO getUserTO(User user, boolean details)
- Specified by:
getUserTO
in interfaceUserDataBinder
-
getUserTO
@Transactional(readOnly=true) public UserTO getUserTO(String key)
- Specified by:
getUserTO
in interfaceUserDataBinder
-
onResources
protected Map<String,ConnObject> onResources(Any<?> any, Collection<String> resources, String password, boolean changePwd)
-
getPlainSchema
protected PlainSchema getPlainSchema(String schemaName)
-
fillAttr
protected void fillAttr(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(Any any, AttrPatch patch, PlainSchema schema, PlainAttr<?> attr, AnyUtils anyUtils, SyncopeClientException invalidValues)
-
fill
protected void fill(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(Any any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce)
-
fill
protected void fill(Any any, Membership membership, MembershipTO membershipTO, AnyUtils anyUtils, SyncopeClientCompositeException scce)
-
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)
-
-