Class AnyObjectDataBinderImpl
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.data.AnyObjectDataBinderImpl
-
- All Implemented Interfaces:
AnyObjectDataBinder
@Transactional(rollbackFor=java.lang.Throwable.class) public class AnyObjectDataBinderImpl extends Object implements AnyObjectDataBinder
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyObjectDAO
anyObjectDAO
protected AnyTypeClassDAO
anyTypeClassDAO
protected AnyTypeDAO
anyTypeDAO
protected AnyUtilsFactory
anyUtilsFactory
protected DerAttrHandler
derAttrHandler
protected EntityFactory
entityFactory
protected GroupDAO
groupDAO
protected IntAttrNameParser
intAttrNameParser
protected static Logger
LOG
protected MappingManager
mappingManager
protected OutboundMatcher
outboundMatcher
protected PlainAttrDAO
plainAttrDAO
protected PlainAttrValueDAO
plainAttrValueDAO
protected PlainSchemaDAO
plainSchemaDAO
protected RealmDAO
realmDAO
protected RelationshipTypeDAO
relationshipTypeDAO
protected ExternalResourceDAO
resourceDAO
protected UserDAO
userDAO
protected PlainAttrValidationManager
validator
protected VirAttrHandler
virAttrHandler
-
Constructor Summary
Constructors Constructor Description AnyObjectDataBinderImpl(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)
-
Method Summary
-
-
-
Field Detail
-
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
-
AnyObjectDataBinderImpl
public AnyObjectDataBinderImpl(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)
-
-
Method Detail
-
getAnyObjectTO
@Transactional(readOnly=true) public AnyObjectTO getAnyObjectTO(String key)
- Specified by:
getAnyObjectTO
in interfaceAnyObjectDataBinder
-
getAnyObjectTO
@Transactional(readOnly=true) public AnyObjectTO getAnyObjectTO(AnyObject anyObject, boolean details)
- Specified by:
getAnyObjectTO
in interfaceAnyObjectDataBinder
-
create
public void create(AnyObject anyObject, AnyObjectCR anyObjectCR)
- Specified by:
create
in interfaceAnyObjectDataBinder
-
update
public PropagationByResource<String> update(AnyObject toBeUpdated, AnyObjectUR anyObjectUR)
- Specified by:
update
in interfaceAnyObjectDataBinder
-
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)
-
-