Class GroupDataBinderImpl
java.lang.Object
org.apache.syncope.core.provisioning.java.data.GroupDataBinderImpl
- All Implemented Interfaces:
GroupDataBinder
@Transactional(rollbackFor=java.lang.Throwable.class)
public class GroupDataBinderImpl
extends Object
implements GroupDataBinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnyObjectDAOprotected final AnyTypeClassDAOprotected final AnyTypeDAOprotected final AnyUtilsFactoryprotected final DerAttrHandlerprotected final EntityFactoryprotected final GroupDAOprotected final IntAttrNameParserprotected final JexlToolsprotected static final Loggerprotected final MappingManagerprotected final OutboundMatcherprotected final PlainSchemaDAOprotected final RealmSearchDAOprotected final RelationshipTypeDAOprotected final ExternalResourceDAOprotected final SearchCondVisitorprotected final UserDAOprotected final PlainAttrValidationManager -
Constructor Summary
ConstructorsConstructorDescriptionGroupDataBinderImpl(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, SearchCondVisitor searchCondVisitor, PlainAttrValidationManager validator, JexlTools jexlTools) -
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) voidevaluateMandatoryCondition(ExternalResource resource, Provision provision, Any any) protected voidfill(AnyTO anyTO, Relatable<?, ?> any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected voidfill(AnyTO anyTO, Relatable<?, ?> any, AnyUR anyUR, PropagationByResource<String> propByRes, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected voidfillAttr(AttributableTO attributableTO, List<String> values, PlainSchema schema, PlainAttr attr, SyncopeClientException invalidValues) protected static voidfillTO(Any any, AnyTO anyTO, Map<String, String> derAttrs, Collection<? extends ExternalResource> resources) findAnyObjectsWithTransitiveResources(String groupKey) Finds any objects having resources assigned exclusively because of memberships of the given group.findUsersWithTransitiveResources(String groupKey) Finds users having resources assigned exclusively because of memberships of the given group.getGroupTO(String key) getGroupTO(Group group, boolean details) protected static MembershipTOgetMembershipTO(Collection<PlainAttr> plainAttrs, Map<String, String> derAttrs, Membership<? extends Any> membership) protected Optional<PlainSchema> getPlainSchema(String schemaName) protected static RelationshipTOgetRelationshipTO(Collection<PlainAttr> plainAttrs, Map<String, String> derAttrs, String relationshipType, RelationshipTO.End end, Any otherEnd) getTypeExtensionTO(GroupTypeExtension typeExt) protected voidmembershipPlainAttrsOnCreate(AnyTO anyTO, Groupable<?, ?, ?> any, Membership<?> membership, MembershipTO membershipTO, SyncopeClientCompositeException scce) protected voidmembershipPlainAttrsOnUpdate(Set<Attr> plainAttrs, AnyTO anyTO, Groupable<?, ?, ?> any, Membership<?> membership, SyncopeClientCompositeException scce) protected voidmemberships(List<MembershipTO> memberships, AnyTO anyTO, Groupable<?, ?, ?> any, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected voidmemberships(Set<MembershipUR> memberships, AnyTO anyTO, Groupable<?, ?, ?> any, Consumer<Group> groupProcessor, PropagationByResource<String> propByRes, AnyUtils anyUtils, SyncopeClientCompositeException scce) protected Map<String, ConnObject> onResources(Any any, Collection<String> resources, String password, Set<String> changePwdRes) protected static voidpopulateTransitiveResources(Group group, Groupable<?, ?, ?> any, Map<String, PropagationByResource<String>> result) 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 voidrelationshipPlainAttrsOnCreate(AnyTO anyTO, Relatable<?, ?> any, Relationship<?, ?> relationship, RelationshipTO relationshipTO, SyncopeClientCompositeException scce) protected voidrelationshipPlainAttrsOnUpdate(Set<Attr> plainAttrs, AnyTO anyTO, Relatable<?, ?> any, Relationship<?, ?> relationship, SyncopeClientCompositeException scce) protected void
-
Field Details
-
searchCondVisitor
-
anyTypeDAO
-
realmSearchDAO
-
anyTypeClassDAO
-
anyObjectDAO
-
userDAO
-
groupDAO
-
resourceDAO
-
relationshipTypeDAO
-
entityFactory
-
anyUtilsFactory
-
outboundMatcher
-
LOG
-
plainSchemaDAO
-
validator
-
derAttrHandler
-
mappingManager
-
intAttrNameParser
-
jexlTools
-
-
Constructor Details
-
GroupDataBinderImpl
public GroupDataBinderImpl(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, SearchCondVisitor searchCondVisitor, PlainAttrValidationManager validator, JexlTools jexlTools)
-
-
Method Details
-
create
- Specified by:
createin interfaceGroupDataBinder
-
update
- Specified by:
updatein interfaceGroupDataBinder
-
getTypeExtensionTO
- Specified by:
getTypeExtensionTOin interfaceGroupDataBinder
-
getGroupTO
- Specified by:
getGroupTOin interfaceGroupDataBinder
-
getGroupTO
- Specified by:
getGroupTOin interfaceGroupDataBinder
-
populateTransitiveResources
-
findAnyObjectsWithTransitiveResources
@Transactional(readOnly=true) public Map<String,PropagationByResource<String>> findAnyObjectsWithTransitiveResources(String groupKey) Description copied from interface:GroupDataBinderFinds any objects having resources assigned exclusively because of memberships of the given group.- Specified by:
findAnyObjectsWithTransitiveResourcesin interfaceGroupDataBinder- Parameters:
groupKey- group key- Returns:
- map containing pairs with any object key and operations to be performed on those resources (DELETE, typically).
-
findUsersWithTransitiveResources
@Transactional(readOnly=true) public Map<String,PropagationByResource<String>> findUsersWithTransitiveResources(String groupKey) Description copied from interface:GroupDataBinderFinds users having resources assigned exclusively because of memberships of the given group.- Specified by:
findUsersWithTransitiveResourcesin interfaceGroupDataBinder- Parameters:
groupKey- group key- Returns:
- map containing pairs with user key and operations to be performed on those resources (DELETE, typically).
-
fillTO
protected static void fillTO(Any any, AnyTO anyTO, Map<String, String> derAttrs, Collection<? extends ExternalResource> resources) -
getRelationshipTO
protected static RelationshipTO getRelationshipTO(Collection<PlainAttr> plainAttrs, Map<String, String> derAttrs, String relationshipType, RelationshipTO.End end, Any otherEnd) -
getMembershipTO
protected static MembershipTO getMembershipTO(Collection<PlainAttr> plainAttrs, Map<String, 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, Relatable<?, ?> any, AnyUR anyUR, PropagationByResource<String> propByRes, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
memberships
protected void memberships(Set<MembershipUR> memberships, AnyTO anyTO, Groupable<?, ?, ?> any, Consumer<Group> groupProcessor, PropagationByResource<String> propByRes, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
fill
protected void fill(AnyTO anyTO, Relatable<?, ?> any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
memberships
protected void memberships(List<MembershipTO> memberships, AnyTO anyTO, Groupable<?, ?, ?> any, AnyUtils anyUtils, SyncopeClientCompositeException scce) -
relationshipPlainAttrsOnCreate
protected void relationshipPlainAttrsOnCreate(AnyTO anyTO, Relatable<?, ?> any, Relationship<?, ?> relationship, RelationshipTO relationshipTO, SyncopeClientCompositeException scce) -
membershipPlainAttrsOnCreate
protected void membershipPlainAttrsOnCreate(AnyTO anyTO, Groupable<?, ?, ?> any, Membership<?> membership, MembershipTO membershipTO, SyncopeClientCompositeException scce) -
relationshipPlainAttrsOnUpdate
protected void relationshipPlainAttrsOnUpdate(Set<Attr> plainAttrs, AnyTO anyTO, Relatable<?, ?> any, Relationship<?, ?> relationship, SyncopeClientCompositeException scce) -
membershipPlainAttrsOnUpdate
protected void membershipPlainAttrsOnUpdate(Set<Attr> plainAttrs, AnyTO anyTO, Groupable<?, ?, ?> any, Membership<?> membership, 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) -
propByRes
protected PropagationByResource<String> propByRes(Map<String, ConnObject> before, Map<String, ConnObject> after)
-