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
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 SearchCondVisitor
protected final UserDAO
protected final PlainAttrValidationManager
protected final VirAttrHandler
-
Constructor Summary
ConstructorDescriptionGroupDataBinderImpl
(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, SearchCondVisitor searchCondVisitor, PlainAttrValidationManager validator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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) 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 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) getTypeExtensionTO
(TypeExtension typeExt) protected Map
<String, ConnObject> onResources
(Any<?> any, Collection<String> resources, String password, boolean changePwd) protected static void
populateTransitiveResources
(Group group, Any<?> any, Map<String, PropagationByResource<String>> result) 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
setDynMembership
(Group group, AnyType anyType, String dynMembershipFIQL) protected void
-
Field Details
-
searchCondVisitor
-
LOG
-
anyTypeDAO
-
realmSearchDAO
-
anyTypeClassDAO
-
anyObjectDAO
-
userDAO
-
groupDAO
-
plainSchemaDAO
-
plainAttrValueDAO
-
resourceDAO
-
relationshipTypeDAO
-
entityFactory
-
anyUtilsFactory
-
derAttrHandler
-
virAttrHandler
-
mappingManager
-
intAttrNameParser
-
outboundMatcher
-
validator
-
dropdownValueProviders
-
-
Constructor Details
-
GroupDataBinderImpl
public GroupDataBinderImpl(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, SearchCondVisitor searchCondVisitor, PlainAttrValidationManager validator)
-
-
Method Details
-
setDynMembership
-
create
- Specified by:
create
in interfaceGroupDataBinder
-
update
- Specified by:
update
in interfaceGroupDataBinder
-
getTypeExtensionTO
- Specified by:
getTypeExtensionTO
in interfaceGroupDataBinder
-
getGroupTO
- Specified by:
getGroupTO
in interfaceGroupDataBinder
-
getGroupTO
- Specified by:
getGroupTO
in interfaceGroupDataBinder
-
populateTransitiveResources
-
findAnyObjectsWithTransitiveResources
@Transactional(readOnly=true) public Map<String,PropagationByResource<String>> findAnyObjectsWithTransitiveResources(String groupKey) Description copied from interface:GroupDataBinder
Finds any objects having resources assigned exclusively because of memberships of the given group.- Specified by:
findAnyObjectsWithTransitiveResources
in 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:GroupDataBinder
Finds users having resources assigned exclusively because of memberships of the given group.- Specified by:
findUsersWithTransitiveResources
in 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<? 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)
-