Class UserDataBinderImpl
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.data.UserDataBinderImpl
-
- All Implemented Interfaces:
org.apache.syncope.core.provisioning.api.data.UserDataBinder
@Transactional(rollbackFor=java.lang.Throwable.class) public class UserDataBinderImpl extends Object implements org.apache.syncope.core.provisioning.api.data.UserDataBinder
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.syncope.core.persistence.api.dao.AccessTokenDAO
accessTokenDAO
protected org.apache.syncope.core.persistence.api.dao.AnyObjectDAO
anyObjectDAO
protected org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO
anyTypeClassDAO
protected org.apache.syncope.core.persistence.api.dao.AnyTypeDAO
anyTypeDAO
protected org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory
anyUtilsFactory
protected org.apache.syncope.core.persistence.api.dao.ApplicationDAO
applicationDAO
protected org.apache.syncope.common.keymaster.client.api.ConfParamOps
confParamOps
protected org.apache.syncope.core.persistence.api.dao.DelegationDAO
delegationDAO
protected org.apache.syncope.core.provisioning.api.DerAttrHandler
derAttrHandler
protected org.apache.syncope.core.persistence.api.entity.EntityFactory
entityFactory
protected org.apache.syncope.core.persistence.api.dao.GroupDAO
groupDAO
protected org.apache.syncope.core.provisioning.api.IntAttrNameParser
intAttrNameParser
protected static org.slf4j.Logger
LOG
protected org.apache.syncope.core.provisioning.api.MappingManager
mappingManager
protected OutboundMatcher
outboundMatcher
protected org.apache.syncope.core.persistence.api.dao.PlainAttrDAO
plainAttrDAO
protected org.apache.syncope.core.persistence.api.dao.PlainAttrValueDAO
plainAttrValueDAO
protected org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO
plainSchemaDAO
protected org.apache.syncope.core.persistence.api.dao.RealmDAO
realmDAO
protected org.apache.syncope.core.persistence.api.dao.RelationshipTypeDAO
relationshipTypeDAO
protected org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO
resourceDAO
protected org.apache.syncope.core.persistence.api.dao.RoleDAO
roleDAO
protected SecurityProperties
securityProperties
protected org.apache.syncope.core.persistence.api.dao.SecurityQuestionDAO
securityQuestionDAO
protected org.apache.syncope.core.persistence.api.dao.UserDAO
userDAO
protected org.apache.syncope.core.provisioning.api.VirAttrHandler
virAttrHandler
-
Constructor Summary
Constructors Constructor Description UserDataBinderImpl(org.apache.syncope.core.persistence.api.dao.AnyTypeDAO anyTypeDAO, org.apache.syncope.core.persistence.api.dao.RealmDAO realmDAO, org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO anyTypeClassDAO, org.apache.syncope.core.persistence.api.dao.AnyObjectDAO anyObjectDAO, org.apache.syncope.core.persistence.api.dao.UserDAO userDAO, org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO, org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO plainSchemaDAO, org.apache.syncope.core.persistence.api.dao.PlainAttrDAO plainAttrDAO, org.apache.syncope.core.persistence.api.dao.PlainAttrValueDAO plainAttrValueDAO, org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO, org.apache.syncope.core.persistence.api.dao.RelationshipTypeDAO relationshipTypeDAO, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory, org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler, org.apache.syncope.core.provisioning.api.VirAttrHandler virAttrHandler, org.apache.syncope.core.provisioning.api.MappingManager mappingManager, org.apache.syncope.core.provisioning.api.IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, org.apache.syncope.core.persistence.api.dao.RoleDAO roleDAO, org.apache.syncope.core.persistence.api.dao.SecurityQuestionDAO securityQuestionDAO, org.apache.syncope.core.persistence.api.dao.ApplicationDAO applicationDAO, org.apache.syncope.core.persistence.api.dao.AccessTokenDAO accessTokenDAO, org.apache.syncope.core.persistence.api.dao.DelegationDAO delegationDAO, org.apache.syncope.common.keymaster.client.api.ConfParamOps confParamOps, SecurityProperties securityProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(org.apache.syncope.core.persistence.api.entity.user.User user, org.apache.syncope.common.lib.request.UserCR userCR)
protected List<String>
evaluateMandatoryCondition(org.apache.syncope.core.persistence.api.entity.ExternalResource resource, org.apache.syncope.common.lib.to.Provision provision, org.apache.syncope.core.persistence.api.entity.Any<?> any)
protected void
fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AnyCR anyCR, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
protected void
fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AnyUR anyUR, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
protected void
fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.core.persistence.api.entity.Membership membership, org.apache.syncope.common.lib.to.MembershipTO membershipTO, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
protected void
fillAttr(List<String> values, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttr<?> attr, org.apache.syncope.common.lib.SyncopeClientException invalidValues)
protected static void
fillTO(org.apache.syncope.common.lib.to.AnyTO anyTO, String realmFullPath, Collection<? extends org.apache.syncope.core.persistence.api.entity.AnyTypeClass> auxClasses, Collection<? extends org.apache.syncope.core.persistence.api.entity.PlainAttr<?>> plainAttrs, Map<org.apache.syncope.core.persistence.api.entity.DerSchema,String> derAttrs, Map<org.apache.syncope.core.persistence.api.entity.VirSchema,List<String>> virAttrs, Collection<? extends org.apache.syncope.core.persistence.api.entity.ExternalResource> resources)
org.apache.syncope.common.lib.to.UserTO
getAuthenticatedUserTO()
org.apache.syncope.common.lib.to.LinkedAccountTO
getLinkedAccountTO(org.apache.syncope.core.persistence.api.entity.user.LinkedAccount account)
protected static org.apache.syncope.common.lib.to.MembershipTO
getMembershipTO(Collection<? extends org.apache.syncope.core.persistence.api.entity.PlainAttr<?>> plainAttrs, Map<org.apache.syncope.core.persistence.api.entity.DerSchema,String> derAttrs, Map<org.apache.syncope.core.persistence.api.entity.VirSchema,List<String>> virAttrs, org.apache.syncope.core.persistence.api.entity.Membership<? extends org.apache.syncope.core.persistence.api.entity.Any<?>> membership)
protected org.apache.syncope.core.persistence.api.entity.PlainSchema
getPlainSchema(String schemaName)
protected static org.apache.syncope.common.lib.to.RelationshipTO
getRelationshipTO(String relationshipType, org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject otherEnd)
org.apache.syncope.common.lib.to.UserTO
getUserTO(String key)
org.apache.syncope.common.lib.to.UserTO
getUserTO(org.apache.syncope.core.persistence.api.entity.user.User user, boolean details)
protected Map<String,org.apache.syncope.common.lib.to.ConnObject>
onResources(org.apache.syncope.core.persistence.api.entity.Any<?> any, Collection<String> resources, String password, boolean changePwd)
protected void
processAttrPatch(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AttrPatch patch, org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttr<?> attr, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientException invalidValues)
protected org.apache.syncope.core.provisioning.api.PropagationByResource<String>
propByRes(Map<String,org.apache.syncope.common.lib.to.ConnObject> before, Map<String,org.apache.syncope.common.lib.to.ConnObject> after)
protected void
setRealm(org.apache.syncope.core.persistence.api.entity.Any<?> any, org.apache.syncope.common.lib.request.AnyUR anyUR)
org.apache.commons.lang3.tuple.Pair<org.apache.syncope.core.provisioning.api.PropagationByResource<String>,org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>>>
update(org.apache.syncope.core.persistence.api.entity.user.User toBeUpdated, org.apache.syncope.common.lib.request.UserUR userUR)
-
-
-
Field Detail
-
roleDAO
protected final org.apache.syncope.core.persistence.api.dao.RoleDAO roleDAO
-
securityQuestionDAO
protected final org.apache.syncope.core.persistence.api.dao.SecurityQuestionDAO securityQuestionDAO
-
applicationDAO
protected final org.apache.syncope.core.persistence.api.dao.ApplicationDAO applicationDAO
-
accessTokenDAO
protected final org.apache.syncope.core.persistence.api.dao.AccessTokenDAO accessTokenDAO
-
delegationDAO
protected final org.apache.syncope.core.persistence.api.dao.DelegationDAO delegationDAO
-
confParamOps
protected final org.apache.syncope.common.keymaster.client.api.ConfParamOps confParamOps
-
securityProperties
protected final SecurityProperties securityProperties
-
LOG
protected static final org.slf4j.Logger LOG
-
anyTypeDAO
protected final org.apache.syncope.core.persistence.api.dao.AnyTypeDAO anyTypeDAO
-
realmDAO
protected final org.apache.syncope.core.persistence.api.dao.RealmDAO realmDAO
-
anyTypeClassDAO
protected final org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO anyTypeClassDAO
-
anyObjectDAO
protected final org.apache.syncope.core.persistence.api.dao.AnyObjectDAO anyObjectDAO
-
userDAO
protected final org.apache.syncope.core.persistence.api.dao.UserDAO userDAO
-
groupDAO
protected final org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO
-
plainSchemaDAO
protected final org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO plainSchemaDAO
-
plainAttrDAO
protected final org.apache.syncope.core.persistence.api.dao.PlainAttrDAO plainAttrDAO
-
plainAttrValueDAO
protected final org.apache.syncope.core.persistence.api.dao.PlainAttrValueDAO plainAttrValueDAO
-
resourceDAO
protected final org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO
-
relationshipTypeDAO
protected final org.apache.syncope.core.persistence.api.dao.RelationshipTypeDAO relationshipTypeDAO
-
entityFactory
protected final org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory
-
anyUtilsFactory
protected final org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory
-
derAttrHandler
protected final org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler
-
virAttrHandler
protected final org.apache.syncope.core.provisioning.api.VirAttrHandler virAttrHandler
-
mappingManager
protected final org.apache.syncope.core.provisioning.api.MappingManager mappingManager
-
intAttrNameParser
protected final org.apache.syncope.core.provisioning.api.IntAttrNameParser intAttrNameParser
-
outboundMatcher
protected final OutboundMatcher outboundMatcher
-
-
Constructor Detail
-
UserDataBinderImpl
public UserDataBinderImpl(org.apache.syncope.core.persistence.api.dao.AnyTypeDAO anyTypeDAO, org.apache.syncope.core.persistence.api.dao.RealmDAO realmDAO, org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO anyTypeClassDAO, org.apache.syncope.core.persistence.api.dao.AnyObjectDAO anyObjectDAO, org.apache.syncope.core.persistence.api.dao.UserDAO userDAO, org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO, org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO plainSchemaDAO, org.apache.syncope.core.persistence.api.dao.PlainAttrDAO plainAttrDAO, org.apache.syncope.core.persistence.api.dao.PlainAttrValueDAO plainAttrValueDAO, org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO, org.apache.syncope.core.persistence.api.dao.RelationshipTypeDAO relationshipTypeDAO, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory, org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler, org.apache.syncope.core.provisioning.api.VirAttrHandler virAttrHandler, org.apache.syncope.core.provisioning.api.MappingManager mappingManager, org.apache.syncope.core.provisioning.api.IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, org.apache.syncope.core.persistence.api.dao.RoleDAO roleDAO, org.apache.syncope.core.persistence.api.dao.SecurityQuestionDAO securityQuestionDAO, org.apache.syncope.core.persistence.api.dao.ApplicationDAO applicationDAO, org.apache.syncope.core.persistence.api.dao.AccessTokenDAO accessTokenDAO, org.apache.syncope.core.persistence.api.dao.DelegationDAO delegationDAO, org.apache.syncope.common.keymaster.client.api.ConfParamOps confParamOps, SecurityProperties securityProperties)
-
-
Method Detail
-
getAuthenticatedUserTO
@Transactional(readOnly=true) public org.apache.syncope.common.lib.to.UserTO getAuthenticatedUserTO()
- Specified by:
getAuthenticatedUserTO
in interfaceorg.apache.syncope.core.provisioning.api.data.UserDataBinder
-
create
public void create(org.apache.syncope.core.persistence.api.entity.user.User user, org.apache.syncope.common.lib.request.UserCR userCR)
- Specified by:
create
in interfaceorg.apache.syncope.core.provisioning.api.data.UserDataBinder
-
update
public org.apache.commons.lang3.tuple.Pair<org.apache.syncope.core.provisioning.api.PropagationByResource<String>,org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>>> update(org.apache.syncope.core.persistence.api.entity.user.User toBeUpdated, org.apache.syncope.common.lib.request.UserUR userUR)
- Specified by:
update
in interfaceorg.apache.syncope.core.provisioning.api.data.UserDataBinder
-
getLinkedAccountTO
@Transactional(readOnly=true) public org.apache.syncope.common.lib.to.LinkedAccountTO getLinkedAccountTO(org.apache.syncope.core.persistence.api.entity.user.LinkedAccount account)
- Specified by:
getLinkedAccountTO
in interfaceorg.apache.syncope.core.provisioning.api.data.UserDataBinder
-
getUserTO
@Transactional(readOnly=true) public org.apache.syncope.common.lib.to.UserTO getUserTO(org.apache.syncope.core.persistence.api.entity.user.User user, boolean details)
- Specified by:
getUserTO
in interfaceorg.apache.syncope.core.provisioning.api.data.UserDataBinder
-
getUserTO
@Transactional(readOnly=true) public org.apache.syncope.common.lib.to.UserTO getUserTO(String key)
- Specified by:
getUserTO
in interfaceorg.apache.syncope.core.provisioning.api.data.UserDataBinder
-
setRealm
protected void setRealm(org.apache.syncope.core.persistence.api.entity.Any<?> any, org.apache.syncope.common.lib.request.AnyUR anyUR)
-
onResources
protected Map<String,org.apache.syncope.common.lib.to.ConnObject> onResources(org.apache.syncope.core.persistence.api.entity.Any<?> any, Collection<String> resources, String password, boolean changePwd)
-
getPlainSchema
protected org.apache.syncope.core.persistence.api.entity.PlainSchema getPlainSchema(String schemaName)
-
fillAttr
protected void fillAttr(List<String> values, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttr<?> attr, org.apache.syncope.common.lib.SyncopeClientException invalidValues)
-
evaluateMandatoryCondition
protected List<String> evaluateMandatoryCondition(org.apache.syncope.core.persistence.api.entity.ExternalResource resource, org.apache.syncope.common.lib.to.Provision provision, org.apache.syncope.core.persistence.api.entity.Any<?> any)
-
processAttrPatch
protected void processAttrPatch(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AttrPatch patch, org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttr<?> attr, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientException invalidValues)
-
fill
protected void fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AnyUR anyUR, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
-
propByRes
protected org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes(Map<String,org.apache.syncope.common.lib.to.ConnObject> before, Map<String,org.apache.syncope.common.lib.to.ConnObject> after)
-
fill
protected void fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AnyCR anyCR, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
-
fill
protected void fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.core.persistence.api.entity.Membership membership, org.apache.syncope.common.lib.to.MembershipTO membershipTO, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
-
fillTO
protected static void fillTO(org.apache.syncope.common.lib.to.AnyTO anyTO, String realmFullPath, Collection<? extends org.apache.syncope.core.persistence.api.entity.AnyTypeClass> auxClasses, Collection<? extends org.apache.syncope.core.persistence.api.entity.PlainAttr<?>> plainAttrs, Map<org.apache.syncope.core.persistence.api.entity.DerSchema,String> derAttrs, Map<org.apache.syncope.core.persistence.api.entity.VirSchema,List<String>> virAttrs, Collection<? extends org.apache.syncope.core.persistence.api.entity.ExternalResource> resources)
-
getRelationshipTO
protected static org.apache.syncope.common.lib.to.RelationshipTO getRelationshipTO(String relationshipType, org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject otherEnd)
-
getMembershipTO
protected static org.apache.syncope.common.lib.to.MembershipTO getMembershipTO(Collection<? extends org.apache.syncope.core.persistence.api.entity.PlainAttr<?>> plainAttrs, Map<org.apache.syncope.core.persistence.api.entity.DerSchema,String> derAttrs, Map<org.apache.syncope.core.persistence.api.entity.VirSchema,List<String>> virAttrs, org.apache.syncope.core.persistence.api.entity.Membership<? extends org.apache.syncope.core.persistence.api.entity.Any<?>> membership)
-
-