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
Fields Modifier and Type Field Description protected AnyObjectDAO
anyObjectDAO
protected AnyTypeClassDAO
anyTypeClassDAO
protected AnyTypeDAO
anyTypeDAO
protected AnyUtilsFactory
anyUtilsFactory
protected DerAttrHandler
derAttrHandler
protected EntityFactory
entityFactory
protected GroupDAO
groupDAO
protected IntAttrNameParser
intAttrNameParser
protected static Logger
LOG
protected MappingManager
mappingManager
protected OutboundMatcher
outboundMatcher
protected PlainAttrDAO
plainAttrDAO
protected PlainAttrValueDAO
plainAttrValueDAO
protected PlainSchemaDAO
plainSchemaDAO
protected RealmDAO
realmDAO
protected RelationshipTypeDAO
relationshipTypeDAO
protected ExternalResourceDAO
resourceDAO
protected SearchCondVisitor
searchCondVisitor
protected UserDAO
userDAO
protected PlainAttrValidationManager
validator
protected VirAttrHandler
virAttrHandler
-
Constructor Summary
Constructors Constructor Description GroupDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmDAO realmDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, PlainAttrDAO plainAttrDAO, 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(Group group, GroupCR groupCR)
protected List<String>
evaluateMandatoryCondition(ExternalResource resource, Provision provision, Any<?> any)
protected void
fill(Any any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce)
protected void
fill(Any any, AnyUR anyUR, AnyUtils anyUtils, SyncopeClientCompositeException scce)
protected void
fill(Any any, Membership membership, MembershipTO membershipTO, AnyUtils anyUtils, SyncopeClientCompositeException scce)
protected void
fillAttr(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)
Map<String,PropagationByResource<String>>
findAnyObjectsWithTransitiveResources(String groupKey)
Finds any objects having resources assigned exclusively because of memberships of the given group.Map<String,PropagationByResource<String>>
findUsersWithTransitiveResources(String groupKey)
Finds users having resources assigned exclusively because of memberships of the given group.GroupTO
getGroupTO(String key)
GroupTO
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)
TypeExtensionTO
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(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
setRealm(Any<?> any, AnyUR anyUR)
PropagationByResource<String>
update(Group toBeUpdated, GroupUR groupUR)
-
-
-
Field Detail
-
searchCondVisitor
protected final SearchCondVisitor searchCondVisitor
-
LOG
protected static final Logger LOG
-
anyTypeDAO
protected final AnyTypeDAO anyTypeDAO
-
realmDAO
protected final RealmDAO realmDAO
-
anyTypeClassDAO
protected final AnyTypeClassDAO anyTypeClassDAO
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
userDAO
protected final UserDAO userDAO
-
groupDAO
protected final GroupDAO groupDAO
-
plainSchemaDAO
protected final PlainSchemaDAO plainSchemaDAO
-
plainAttrDAO
protected final PlainAttrDAO plainAttrDAO
-
plainAttrValueDAO
protected final PlainAttrValueDAO plainAttrValueDAO
-
resourceDAO
protected final ExternalResourceDAO resourceDAO
-
relationshipTypeDAO
protected final RelationshipTypeDAO relationshipTypeDAO
-
entityFactory
protected final EntityFactory entityFactory
-
anyUtilsFactory
protected final AnyUtilsFactory anyUtilsFactory
-
derAttrHandler
protected final DerAttrHandler derAttrHandler
-
virAttrHandler
protected final VirAttrHandler virAttrHandler
-
mappingManager
protected final MappingManager mappingManager
-
intAttrNameParser
protected final IntAttrNameParser intAttrNameParser
-
outboundMatcher
protected final OutboundMatcher outboundMatcher
-
validator
protected final PlainAttrValidationManager validator
-
-
Constructor Detail
-
GroupDataBinderImpl
public GroupDataBinderImpl(AnyTypeDAO anyTypeDAO, RealmDAO realmDAO, AnyTypeClassDAO anyTypeClassDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PlainSchemaDAO plainSchemaDAO, PlainAttrDAO plainAttrDAO, 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 Detail
-
setDynMembership
protected void setDynMembership(Group group, AnyType anyType, String dynMembershipFIQL)
-
create
public void create(Group group, GroupCR groupCR)
- Specified by:
create
in interfaceGroupDataBinder
-
update
public PropagationByResource<String> update(Group toBeUpdated, GroupUR groupUR)
- Specified by:
update
in interfaceGroupDataBinder
-
getTypeExtensionTO
public TypeExtensionTO getTypeExtensionTO(TypeExtension typeExt)
- Specified by:
getTypeExtensionTO
in interfaceGroupDataBinder
-
getGroupTO
@Transactional(readOnly=true) public GroupTO getGroupTO(Group group, boolean details)
- Specified by:
getGroupTO
in interfaceGroupDataBinder
-
getGroupTO
@Transactional(readOnly=true) public GroupTO getGroupTO(String key)
- Specified by:
getGroupTO
in interfaceGroupDataBinder
-
populateTransitiveResources
protected static void populateTransitiveResources(Group group, Any<?> any, Map<String,PropagationByResource<String>> result)
-
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).
-
onResources
protected Map<String,ConnObject> onResources(Any<?> any, Collection<String> resources, String password, boolean changePwd)
-
getPlainSchema
protected PlainSchema getPlainSchema(String schemaName)
-
fillAttr
protected void fillAttr(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(Any any, AttrPatch patch, PlainSchema schema, PlainAttr<?> attr, AnyUtils anyUtils, SyncopeClientException invalidValues)
-
fill
protected void fill(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(Any any, AnyCR anyCR, AnyUtils anyUtils, SyncopeClientCompositeException scce)
-
fill
protected void fill(Any any, Membership membership, MembershipTO membershipTO, AnyUtils anyUtils, SyncopeClientCompositeException scce)
-
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)
-
-