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 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) -
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 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) 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<DerSchema, String> derAttrs, Membership<? extends Any> membership) protected Optional<PlainSchema> getPlainSchema(String schemaName) protected static RelationshipTOgetRelationshipTO(String relationshipType, RelationshipTO.End end, Any otherEnd) getTypeExtensionTO(TypeExtension typeExt) 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 voidsetDynMembership(Group group, AnyType anyType, String dynMembershipFIQL) protected void
-
Field Details
-
searchCondVisitor
-
anyTypeDAO
-
realmSearchDAO
-
anyTypeClassDAO
-
anyObjectDAO
-
userDAO
-
groupDAO
-
resourceDAO
-
relationshipTypeDAO
-
entityFactory
-
anyUtilsFactory
-
outboundMatcher
-
LOG
-
plainSchemaDAO
-
validator
-
derAttrHandler
-
mappingManager
-
intAttrNameParser
-
-
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)
-
-
Method Details
-
setDynMembership
-
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(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)
-