use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUsersOneLevelScopeBaseDnContext.
@Test
public void testUsersOneLevelScopeBaseDnContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithUserCtx(SearchScope.ONELEVEL_SCOPE, "dc=jbpm,dc=org");
assertUsers(ldapUserGroupCallback, false, false, false, false);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testDefaultScope.
@Test
public void testDefaultScope() {
Properties properties = createUserGroupCallbackProperties();
UserGroupCallback ldapUserGroupCallback = new LDAPUserGroupCallbackImpl(properties);
assertUsers(ldapUserGroupCallback, true, true, false, false);
assertGroups(ldapUserGroupCallback, true, true, false, false);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUsersSubtreeScopeJohnContext.
@Test
public void testUsersSubtreeScopeJohnContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithUserCtx(SearchScope.SUBTREE_SCOPE, "uid=john,ou=People,dc=jbpm,dc=org");
assertUsers(ldapUserGroupCallback, true, false, false, false);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUsersOneLevelScopeEngContext.
@Test
public void testUsersOneLevelScopeEngContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithUserCtx(SearchScope.ONELEVEL_SCOPE, "ou=ENG,ou=People,dc=jbpm,dc=org");
assertUsers(ldapUserGroupCallback, false, false, true, false);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testGroupsObjectScopeManagerContext.
@Test
public void testGroupsObjectScopeManagerContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithRoleCtx(SearchScope.OBJECT_SCOPE, "cn=manager,ou=Roles,dc=jbpm,dc=org");
assertGroups(ldapUserGroupCallback, true, false, false, false);
}
Aggregations