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
Modifier and TypeFieldDescriptionprotected final AnyObjectDAO
protected final AnyTypeClassDAO
protected final AnyTypeDAO
protected final AnyUtilsFactory
protected final DerAttrHandler
protected final Map
<String, DropdownValueProvider> protected final EntityFactory
protected final GroupDAO
protected final IntAttrNameParser
protected static final Logger
protected final MappingManager
protected final OutboundMatcher
protected final PlainAttrValueDAO
protected final PlainSchemaDAO
protected final RealmSearchDAO
protected final RelationshipTypeDAO
protected final ExternalResourceDAO
protected final UserDAO
protected final PlainAttrValidationManager
protected final VirAttrHandler
-
Constructor Summary
ConstructorDescriptionAnyObjectDataBinderImpl
(AnyTypeDAO anyTypeDAO, RealmSearchDAO realmSearchDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, PlainAttrValueDAO plainAttrValueDAO, ExternalResourceDAO resourceDAO, RelationshipTypeDAO relationshipTypeDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, DerAttrHandler derAttrHandler, VirAttrHandler virAttrHandler, MappingManager mappingManager, IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, PlainAttrValidationManager validator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(AnyObject anyObject, AnyObjectCR anyObjectCR) evaluateMandatoryCondition
(ExternalResource resource, Provision provision, Any<?> any) protected void
protected void
protected void
fill
(AnyTO anyTO, Any any, Membership membership, MembershipTO membershipTO, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected void
fillAttr
(AnyTO anyTO, List<String> values, AnyUtils anyUtils, PlainSchema schema, PlainAttr<?> attr, SyncopeClientException invalidValues) 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) getAnyObjectTO
(String key) getAnyObjectTO
(AnyObject anyObject, boolean details) protected static MembershipTO
getMembershipTO
(Collection<? extends PlainAttr<?>> plainAttrs, Map<DerSchema, String> derAttrs, Map<VirSchema, List<String>> virAttrs, Membership<? extends Any<?>> membership) protected PlainSchema
getPlainSchema
(String schemaName) protected static RelationshipTO
getRelationshipTO
(String relationshipType, RelationshipTO.End end, Any<?> otherEnd) protected Map
<String, ConnObject> onResources
(Any<?> any, Collection<String> resources, String password, boolean changePwd) protected void
processAttrPatch
(AnyTO anyTO, Any any, AttrPatch patch, PlainSchema schema, PlainAttr<?> attr, AnyUtils anyUtils, SyncopeClientException invalidValues) protected PropagationByResource
<String> propByRes
(Map<String, ConnObject> before, Map<String, ConnObject> after) protected void
update
(AnyObject toBeUpdated, AnyObjectUR anyObjectUR)
-
Field Details
-
LOG
-
anyTypeDAO
-
realmSearchDAO
-
anyTypeClassDAO
-
anyObjectDAO
-
userDAO
-
groupDAO
-
plainSchemaDAO
-
plainAttrValueDAO
-
resourceDAO
-
relationshipTypeDAO
-
entityFactory
-
anyUtilsFactory
-
derAttrHandler
-
virAttrHandler
-
mappingManager
-
intAttrNameParser
-
outboundMatcher
-
validator
-
dropdownValueProviders
-
-
Constructor Details
-
AnyObjectDataBinderImpl
public AnyObjectDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmSearchDAO realmSearchDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, PlainAttrValueDAO plainAttrValueDAO, ExternalResourceDAO resourceDAO, RelationshipTypeDAO relationshipTypeDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, DerAttrHandler derAttrHandler, VirAttrHandler virAttrHandler, MappingManager mappingManager, IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, PlainAttrValidationManager validator)
-
-
Method Details
-
getAnyObjectTO
- Specified by:
getAnyObjectTO
in interfaceAnyObjectDataBinder
-
getAnyObjectTO
@Transactional(readOnly=true) public AnyObjectTO getAnyObjectTO(AnyObject anyObject, boolean details) - Specified by:
getAnyObjectTO
in interfaceAnyObjectDataBinder
-
create
- Specified by:
create
in interfaceAnyObjectDataBinder
-
update
- Specified by:
update
in interfaceAnyObjectDataBinder
-
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) -
setRealm
-
onResources
protected Map<String,ConnObject> onResources(Any<?> any, Collection<String> resources, String password, boolean changePwd) -
getPlainSchema
-
fillAttr
protected void fillAttr(AnyTO anyTO, 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(AnyTO anyTO, Any any, AttrPatch patch, PlainSchema schema, PlainAttr<?> attr, AnyUtils anyUtils, SyncopeClientException invalidValues) -
fill
protected void fill(AnyTO anyTO, 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(AnyTO anyTO, Any any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
fill
protected void fill(AnyTO anyTO, Any any, Membership membership, MembershipTO membershipTO, AnyUtils anyUtils, SyncopeClientCompositeException scce)
-