Class GroupDataBinderImpl
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.data.GroupDataBinderImpl
-
- All Implemented Interfaces:
org.apache.syncope.core.provisioning.api.data.GroupDataBinder
@Transactional(rollbackFor=java.lang.Throwable.class) public class GroupDataBinderImpl extends Object implements org.apache.syncope.core.provisioning.api.data.GroupDataBinder
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.syncope.core.persistence.api.dao.AnyObjectDAO
anyObjectDAO
protected org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO
anyTypeClassDAO
protected org.apache.syncope.core.persistence.api.dao.AnyTypeDAO
anyTypeDAO
protected org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory
anyUtilsFactory
protected org.apache.syncope.core.provisioning.api.DerAttrHandler
derAttrHandler
protected org.apache.syncope.core.persistence.api.entity.EntityFactory
entityFactory
protected org.apache.syncope.core.persistence.api.dao.GroupDAO
groupDAO
protected org.apache.syncope.core.provisioning.api.IntAttrNameParser
intAttrNameParser
protected static org.slf4j.Logger
LOG
protected org.apache.syncope.core.provisioning.api.MappingManager
mappingManager
protected OutboundMatcher
outboundMatcher
protected org.apache.syncope.core.persistence.api.dao.PlainAttrDAO
plainAttrDAO
protected org.apache.syncope.core.persistence.api.dao.PlainAttrValueDAO
plainAttrValueDAO
protected org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO
plainSchemaDAO
protected org.apache.syncope.core.persistence.api.dao.RealmDAO
realmDAO
protected org.apache.syncope.core.persistence.api.dao.RelationshipTypeDAO
relationshipTypeDAO
protected org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO
resourceDAO
protected org.apache.syncope.core.persistence.api.search.SearchCondVisitor
searchCondVisitor
protected org.apache.syncope.core.persistence.api.dao.UserDAO
userDAO
protected org.apache.syncope.core.provisioning.api.VirAttrHandler
virAttrHandler
-
Constructor Summary
Constructors Constructor Description GroupDataBinderImpl(org.apache.syncope.core.persistence.api.dao.AnyTypeDAO anyTypeDAO, org.apache.syncope.core.persistence.api.dao.RealmDAO realmDAO, org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO anyTypeClassDAO, org.apache.syncope.core.persistence.api.dao.AnyObjectDAO anyObjectDAO, org.apache.syncope.core.persistence.api.dao.UserDAO userDAO, org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO, org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO plainSchemaDAO, org.apache.syncope.core.persistence.api.dao.PlainAttrDAO plainAttrDAO, org.apache.syncope.core.persistence.api.dao.PlainAttrValueDAO plainAttrValueDAO, org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO, org.apache.syncope.core.persistence.api.dao.RelationshipTypeDAO relationshipTypeDAO, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory, org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler, org.apache.syncope.core.provisioning.api.VirAttrHandler virAttrHandler, org.apache.syncope.core.provisioning.api.MappingManager mappingManager, org.apache.syncope.core.provisioning.api.IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, org.apache.syncope.core.persistence.api.search.SearchCondVisitor searchCondVisitor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(org.apache.syncope.core.persistence.api.entity.group.Group group, org.apache.syncope.common.lib.request.GroupCR groupCR)
protected List<String>
evaluateMandatoryCondition(org.apache.syncope.core.persistence.api.entity.ExternalResource resource, org.apache.syncope.common.lib.to.Provision provision, org.apache.syncope.core.persistence.api.entity.Any<?> any)
protected void
fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AnyCR anyCR, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
protected void
fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AnyUR anyUR, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
protected void
fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.core.persistence.api.entity.Membership membership, org.apache.syncope.common.lib.to.MembershipTO membershipTO, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
protected void
fillAttr(List<String> values, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttr<?> attr, org.apache.syncope.common.lib.SyncopeClientException invalidValues)
protected static void
fillTO(org.apache.syncope.common.lib.to.AnyTO anyTO, String realmFullPath, Collection<? extends org.apache.syncope.core.persistence.api.entity.AnyTypeClass> auxClasses, Collection<? extends org.apache.syncope.core.persistence.api.entity.PlainAttr<?>> plainAttrs, Map<org.apache.syncope.core.persistence.api.entity.DerSchema,String> derAttrs, Map<org.apache.syncope.core.persistence.api.entity.VirSchema,List<String>> virAttrs, Collection<? extends org.apache.syncope.core.persistence.api.entity.ExternalResource> resources)
Map<String,org.apache.syncope.core.provisioning.api.PropagationByResource<String>>
findAnyObjectsWithTransitiveResources(String groupKey)
Map<String,org.apache.syncope.core.provisioning.api.PropagationByResource<String>>
findUsersWithTransitiveResources(String groupKey)
org.apache.syncope.common.lib.to.GroupTO
getGroupTO(String key)
org.apache.syncope.common.lib.to.GroupTO
getGroupTO(org.apache.syncope.core.persistence.api.entity.group.Group group, boolean details)
protected static org.apache.syncope.common.lib.to.MembershipTO
getMembershipTO(Collection<? extends org.apache.syncope.core.persistence.api.entity.PlainAttr<?>> plainAttrs, Map<org.apache.syncope.core.persistence.api.entity.DerSchema,String> derAttrs, Map<org.apache.syncope.core.persistence.api.entity.VirSchema,List<String>> virAttrs, org.apache.syncope.core.persistence.api.entity.Membership<? extends org.apache.syncope.core.persistence.api.entity.Any<?>> membership)
protected org.apache.syncope.core.persistence.api.entity.PlainSchema
getPlainSchema(String schemaName)
protected static org.apache.syncope.common.lib.to.RelationshipTO
getRelationshipTO(String relationshipType, org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject otherEnd)
org.apache.syncope.common.lib.to.TypeExtensionTO
getTypeExtensionTO(org.apache.syncope.core.persistence.api.entity.group.TypeExtension typeExt)
protected Map<String,org.apache.syncope.common.lib.to.ConnObject>
onResources(org.apache.syncope.core.persistence.api.entity.Any<?> any, Collection<String> resources, String password, boolean changePwd)
protected static void
populateTransitiveResources(org.apache.syncope.core.persistence.api.entity.group.Group group, org.apache.syncope.core.persistence.api.entity.Any<?> any, Map<String,org.apache.syncope.core.provisioning.api.PropagationByResource<String>> result)
protected void
processAttrPatch(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AttrPatch patch, org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttr<?> attr, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientException invalidValues)
protected org.apache.syncope.core.provisioning.api.PropagationByResource<String>
propByRes(Map<String,org.apache.syncope.common.lib.to.ConnObject> before, Map<String,org.apache.syncope.common.lib.to.ConnObject> after)
protected void
setDynMembership(org.apache.syncope.core.persistence.api.entity.group.Group group, org.apache.syncope.core.persistence.api.entity.AnyType anyType, String dynMembershipFIQL)
protected void
setRealm(org.apache.syncope.core.persistence.api.entity.Any<?> any, org.apache.syncope.common.lib.request.AnyUR anyUR)
org.apache.syncope.core.provisioning.api.PropagationByResource<String>
update(org.apache.syncope.core.persistence.api.entity.group.Group toBeUpdated, org.apache.syncope.common.lib.request.GroupUR groupUR)
-
-
-
Field Detail
-
searchCondVisitor
protected final org.apache.syncope.core.persistence.api.search.SearchCondVisitor searchCondVisitor
-
LOG
protected static final org.slf4j.Logger LOG
-
anyTypeDAO
protected final org.apache.syncope.core.persistence.api.dao.AnyTypeDAO anyTypeDAO
-
realmDAO
protected final org.apache.syncope.core.persistence.api.dao.RealmDAO realmDAO
-
anyTypeClassDAO
protected final org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO anyTypeClassDAO
-
anyObjectDAO
protected final org.apache.syncope.core.persistence.api.dao.AnyObjectDAO anyObjectDAO
-
userDAO
protected final org.apache.syncope.core.persistence.api.dao.UserDAO userDAO
-
groupDAO
protected final org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO
-
plainSchemaDAO
protected final org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO plainSchemaDAO
-
plainAttrDAO
protected final org.apache.syncope.core.persistence.api.dao.PlainAttrDAO plainAttrDAO
-
plainAttrValueDAO
protected final org.apache.syncope.core.persistence.api.dao.PlainAttrValueDAO plainAttrValueDAO
-
resourceDAO
protected final org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO
-
relationshipTypeDAO
protected final org.apache.syncope.core.persistence.api.dao.RelationshipTypeDAO relationshipTypeDAO
-
entityFactory
protected final org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory
-
anyUtilsFactory
protected final org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory
-
derAttrHandler
protected final org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler
-
virAttrHandler
protected final org.apache.syncope.core.provisioning.api.VirAttrHandler virAttrHandler
-
mappingManager
protected final org.apache.syncope.core.provisioning.api.MappingManager mappingManager
-
intAttrNameParser
protected final org.apache.syncope.core.provisioning.api.IntAttrNameParser intAttrNameParser
-
outboundMatcher
protected final OutboundMatcher outboundMatcher
-
-
Constructor Detail
-
GroupDataBinderImpl
public GroupDataBinderImpl(org.apache.syncope.core.persistence.api.dao.AnyTypeDAO anyTypeDAO, org.apache.syncope.core.persistence.api.dao.RealmDAO realmDAO, org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO anyTypeClassDAO, org.apache.syncope.core.persistence.api.dao.AnyObjectDAO anyObjectDAO, org.apache.syncope.core.persistence.api.dao.UserDAO userDAO, org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO, org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO plainSchemaDAO, org.apache.syncope.core.persistence.api.dao.PlainAttrDAO plainAttrDAO, org.apache.syncope.core.persistence.api.dao.PlainAttrValueDAO plainAttrValueDAO, org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO, org.apache.syncope.core.persistence.api.dao.RelationshipTypeDAO relationshipTypeDAO, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory, org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler, org.apache.syncope.core.provisioning.api.VirAttrHandler virAttrHandler, org.apache.syncope.core.provisioning.api.MappingManager mappingManager, org.apache.syncope.core.provisioning.api.IntAttrNameParser intAttrNameParser, OutboundMatcher outboundMatcher, org.apache.syncope.core.persistence.api.search.SearchCondVisitor searchCondVisitor)
-
-
Method Detail
-
setDynMembership
protected void setDynMembership(org.apache.syncope.core.persistence.api.entity.group.Group group, org.apache.syncope.core.persistence.api.entity.AnyType anyType, String dynMembershipFIQL)
-
create
public void create(org.apache.syncope.core.persistence.api.entity.group.Group group, org.apache.syncope.common.lib.request.GroupCR groupCR)
- Specified by:
create
in interfaceorg.apache.syncope.core.provisioning.api.data.GroupDataBinder
-
update
public org.apache.syncope.core.provisioning.api.PropagationByResource<String> update(org.apache.syncope.core.persistence.api.entity.group.Group toBeUpdated, org.apache.syncope.common.lib.request.GroupUR groupUR)
- Specified by:
update
in interfaceorg.apache.syncope.core.provisioning.api.data.GroupDataBinder
-
getTypeExtensionTO
public org.apache.syncope.common.lib.to.TypeExtensionTO getTypeExtensionTO(org.apache.syncope.core.persistence.api.entity.group.TypeExtension typeExt)
- Specified by:
getTypeExtensionTO
in interfaceorg.apache.syncope.core.provisioning.api.data.GroupDataBinder
-
getGroupTO
@Transactional(readOnly=true) public org.apache.syncope.common.lib.to.GroupTO getGroupTO(org.apache.syncope.core.persistence.api.entity.group.Group group, boolean details)
- Specified by:
getGroupTO
in interfaceorg.apache.syncope.core.provisioning.api.data.GroupDataBinder
-
getGroupTO
@Transactional(readOnly=true) public org.apache.syncope.common.lib.to.GroupTO getGroupTO(String key)
- Specified by:
getGroupTO
in interfaceorg.apache.syncope.core.provisioning.api.data.GroupDataBinder
-
populateTransitiveResources
protected static void populateTransitiveResources(org.apache.syncope.core.persistence.api.entity.group.Group group, org.apache.syncope.core.persistence.api.entity.Any<?> any, Map<String,org.apache.syncope.core.provisioning.api.PropagationByResource<String>> result)
-
findAnyObjectsWithTransitiveResources
@Transactional(readOnly=true) public Map<String,org.apache.syncope.core.provisioning.api.PropagationByResource<String>> findAnyObjectsWithTransitiveResources(String groupKey)
- Specified by:
findAnyObjectsWithTransitiveResources
in interfaceorg.apache.syncope.core.provisioning.api.data.GroupDataBinder
-
findUsersWithTransitiveResources
@Transactional(readOnly=true) public Map<String,org.apache.syncope.core.provisioning.api.PropagationByResource<String>> findUsersWithTransitiveResources(String groupKey)
- Specified by:
findUsersWithTransitiveResources
in interfaceorg.apache.syncope.core.provisioning.api.data.GroupDataBinder
-
setRealm
protected void setRealm(org.apache.syncope.core.persistence.api.entity.Any<?> any, org.apache.syncope.common.lib.request.AnyUR anyUR)
-
onResources
protected Map<String,org.apache.syncope.common.lib.to.ConnObject> onResources(org.apache.syncope.core.persistence.api.entity.Any<?> any, Collection<String> resources, String password, boolean changePwd)
-
getPlainSchema
protected org.apache.syncope.core.persistence.api.entity.PlainSchema getPlainSchema(String schemaName)
-
fillAttr
protected void fillAttr(List<String> values, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttr<?> attr, org.apache.syncope.common.lib.SyncopeClientException invalidValues)
-
evaluateMandatoryCondition
protected List<String> evaluateMandatoryCondition(org.apache.syncope.core.persistence.api.entity.ExternalResource resource, org.apache.syncope.common.lib.to.Provision provision, org.apache.syncope.core.persistence.api.entity.Any<?> any)
-
processAttrPatch
protected void processAttrPatch(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AttrPatch patch, org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttr<?> attr, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientException invalidValues)
-
fill
protected void fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AnyUR anyUR, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
-
propByRes
protected org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes(Map<String,org.apache.syncope.common.lib.to.ConnObject> before, Map<String,org.apache.syncope.common.lib.to.ConnObject> after)
-
fill
protected void fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.common.lib.request.AnyCR anyCR, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
-
fill
protected void fill(org.apache.syncope.core.persistence.api.entity.Any any, org.apache.syncope.core.persistence.api.entity.Membership membership, org.apache.syncope.common.lib.to.MembershipTO membershipTO, org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils, org.apache.syncope.common.lib.SyncopeClientCompositeException scce)
-
fillTO
protected static void fillTO(org.apache.syncope.common.lib.to.AnyTO anyTO, String realmFullPath, Collection<? extends org.apache.syncope.core.persistence.api.entity.AnyTypeClass> auxClasses, Collection<? extends org.apache.syncope.core.persistence.api.entity.PlainAttr<?>> plainAttrs, Map<org.apache.syncope.core.persistence.api.entity.DerSchema,String> derAttrs, Map<org.apache.syncope.core.persistence.api.entity.VirSchema,List<String>> virAttrs, Collection<? extends org.apache.syncope.core.persistence.api.entity.ExternalResource> resources)
-
getRelationshipTO
protected static org.apache.syncope.common.lib.to.RelationshipTO getRelationshipTO(String relationshipType, org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject otherEnd)
-
getMembershipTO
protected static org.apache.syncope.common.lib.to.MembershipTO getMembershipTO(Collection<? extends org.apache.syncope.core.persistence.api.entity.PlainAttr<?>> plainAttrs, Map<org.apache.syncope.core.persistence.api.entity.DerSchema,String> derAttrs, Map<org.apache.syncope.core.persistence.api.entity.VirSchema,List<String>> virAttrs, org.apache.syncope.core.persistence.api.entity.Membership<? extends org.apache.syncope.core.persistence.api.entity.Any<?>> membership)
-
-