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
FieldsModifier and TypeFieldDescriptionprotected final AnyObjectDAOprotected final AnyTypeClassDAOprotected final AnyTypeDAOprotected final AnyUtilsFactoryprotected final DerAttrHandlerprotected final EntityFactoryprotected final GroupDAOprotected final IntAttrNameParserprotected static final Loggerprotected final MappingManagerprotected final OutboundMatcherprotected final PlainSchemaDAOprotected final RealmSearchDAOprotected final RelationshipTypeDAOprotected final ExternalResourceDAOprotected final UserDAOprotected final PlainAttrValidationManager -
Constructor Summary
ConstructorsConstructorDescriptionAnyObjectDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmSearchDAO realmSearchDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, ExternalResourceDAO resourceDAO, RelationshipTypeDAO relationshipTypeDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, DerAttrHandler derAttrHandler, MappingManager mappingManager, IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, PlainAttrValidationManager validator) -
Method Summary
Modifier and TypeMethodDescriptionprotected SyncopeClientExceptioncheckMandatory(Any any, AnyUtils anyUtils) protected voidcheckMandatory(PlainSchema schema, PlainAttr attr, Attributable attributable, SyncopeClientException reqValMissing) protected SyncopeClientExceptioncheckMandatoryOnResources(Any any, Collection<? extends ExternalResource> resources) voidcreate(AnyObject anyObject, AnyObjectCR anyObjectCR) evaluateMandatoryCondition(ExternalResource resource, Provision provision, Any any) protected voidprotected voidprotected voidfill(AnyTO anyTO, Any any, Membership<?> membership, MembershipTO membershipTO, SyncopeClientCompositeException scce) protected voidfillAttr(AttributableTO attributableTO, List<String> values, PlainSchema schema, PlainAttr attr, SyncopeClientException invalidValues) protected static voidfillTO(AnyTO anyTO, String realmFullPath, Collection<? extends AnyTypeClass> auxClasses, Collection<PlainAttr> plainAttrs, Map<DerSchema, String> derAttrs, Collection<? extends ExternalResource> resources) getAnyObjectTO(String key) getAnyObjectTO(AnyObject anyObject, boolean details) protected static MembershipTOgetMembershipTO(Collection<PlainAttr> plainAttrs, Map<DerSchema, String> derAttrs, Membership<? extends Any> membership) protected Optional<PlainSchema> getPlainSchema(String schemaName) protected static RelationshipTOgetRelationshipTO(String relationshipType, RelationshipTO.End end, Any otherEnd) protected Map<String, ConnObject> onResources(Any any, Collection<String> resources, String password, Set<String> changePwdRes) protected voidprocessAttrPatch(AnyTO anyTO, Any any, AttrPatch patch, PlainSchema schema, PlainAttr attr, SyncopeClientException invalidValues) protected PropagationByResource<String> propByRes(Map<String, ConnObject> before, Map<String, ConnObject> after) protected voidupdate(AnyObject toBeUpdated, AnyObjectUR anyObjectUR)
-
Field Details
-
anyTypeDAO
-
realmSearchDAO
-
anyTypeClassDAO
-
anyObjectDAO
-
userDAO
-
groupDAO
-
resourceDAO
-
relationshipTypeDAO
-
entityFactory
-
anyUtilsFactory
-
outboundMatcher
-
LOG
-
plainSchemaDAO
-
validator
-
derAttrHandler
-
mappingManager
-
intAttrNameParser
-
-
Constructor Details
-
AnyObjectDataBinderImpl
public AnyObjectDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmSearchDAO realmSearchDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, ExternalResourceDAO resourceDAO, RelationshipTypeDAO relationshipTypeDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, DerAttrHandler derAttrHandler, MappingManager mappingManager, IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, PlainAttrValidationManager validator)
-
-
Method Details
-
getAnyObjectTO
- Specified by:
getAnyObjectTOin interfaceAnyObjectDataBinder
-
getAnyObjectTO
@Transactional(readOnly=true) public AnyObjectTO getAnyObjectTO(AnyObject anyObject, boolean details) - Specified by:
getAnyObjectTOin interfaceAnyObjectDataBinder
-
create
- Specified by:
createin interfaceAnyObjectDataBinder
-
update
- Specified by:
updatein interfaceAnyObjectDataBinder
-
fillTO
protected static void fillTO(AnyTO anyTO, String realmFullPath, Collection<? extends AnyTypeClass> auxClasses, Collection<PlainAttr> plainAttrs, Map<DerSchema, String> derAttrs, Collection<? extends ExternalResource> resources) -
getRelationshipTO
protected static RelationshipTO getRelationshipTO(String relationshipType, RelationshipTO.End end, Any otherEnd) -
getMembershipTO
protected static MembershipTO getMembershipTO(Collection<PlainAttr> plainAttrs, Map<DerSchema, String> derAttrs, Membership<? extends Any> membership) -
setRealm
-
onResources
protected Map<String,ConnObject> onResources(Any any, Collection<String> resources, String password, Set<String> changePwdRes) -
evaluateMandatoryCondition
protected List<String> evaluateMandatoryCondition(ExternalResource resource, Provision provision, Any any) -
checkMandatoryOnResources
protected SyncopeClientException checkMandatoryOnResources(Any any, Collection<? extends ExternalResource> resources) -
checkMandatory
-
processAttrPatch
protected void processAttrPatch(AnyTO anyTO, Any any, AttrPatch patch, PlainSchema schema, PlainAttr attr, 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, SyncopeClientCompositeException scce) -
getPlainSchema
-
checkMandatory
protected void checkMandatory(PlainSchema schema, PlainAttr attr, Attributable attributable, SyncopeClientException reqValMissing) -
fillAttr
protected void fillAttr(AttributableTO attributableTO, List<String> values, PlainSchema schema, PlainAttr attr, SyncopeClientException invalidValues)
-