Class AnyObjectDataBinderImpl

  • All Implemented Interfaces:
    org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder

    @Transactional(rollbackFor=java.lang.Throwable.class)
    public class AnyObjectDataBinderImpl
    extends Object
    implements org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      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.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.UserDAO userDAO  
      protected org.apache.syncope.core.persistence.api.attrvalue.validation.PlainAttrValidationManager validator  
      protected org.apache.syncope.core.provisioning.api.VirAttrHandler virAttrHandler  
    • Constructor Summary

      Constructors 
      Constructor Description
      AnyObjectDataBinderImpl​(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.attrvalue.validation.PlainAttrValidationManager validator)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void create​(org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject anyObject, org.apache.syncope.common.lib.request.AnyObjectCR anyObjectCR)  
      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.AnyObjectTO getAnyObjectTO​(String key)  
      org.apache.syncope.common.lib.to.AnyObjectTO getAnyObjectTO​(org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject anyObject, boolean details)  
      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)  
      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.syncope.core.provisioning.api.PropagationByResource<String> update​(org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject toBeUpdated, org.apache.syncope.common.lib.request.AnyObjectUR anyObjectUR)  
    • Field Detail

      • 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
      • validator

        protected final org.apache.syncope.core.persistence.api.attrvalue.validation.PlainAttrValidationManager validator
    • Constructor Detail

      • AnyObjectDataBinderImpl

        public AnyObjectDataBinderImpl​(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.attrvalue.validation.PlainAttrValidationManager validator)
    • Method Detail

      • getAnyObjectTO

        @Transactional(readOnly=true)
        public org.apache.syncope.common.lib.to.AnyObjectTO getAnyObjectTO​(String key)
        Specified by:
        getAnyObjectTO in interface org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder
      • getAnyObjectTO

        @Transactional(readOnly=true)
        public org.apache.syncope.common.lib.to.AnyObjectTO getAnyObjectTO​(org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject anyObject,
                                                                           boolean details)
        Specified by:
        getAnyObjectTO in interface org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder
      • create

        public void create​(org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject anyObject,
                           org.apache.syncope.common.lib.request.AnyObjectCR anyObjectCR)
        Specified by:
        create in interface org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder
      • update

        public org.apache.syncope.core.provisioning.api.PropagationByResource<String> update​(org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject toBeUpdated,
                                                                                             org.apache.syncope.common.lib.request.AnyObjectUR anyObjectUR)
        Specified by:
        update in interface org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder
      • 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)