use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUsersOneLevelScopePeopleContext.
@Test
public void testUsersOneLevelScopePeopleContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithUserCtx(SearchScope.ONELEVEL_SCOPE, "ou=People,dc=jbpm,dc=org");
assertUsers(ldapUserGroupCallback, true, true, false, false);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testGroupsOneLevelScopeBaseDnContext.
@Test
public void testGroupsOneLevelScopeBaseDnContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithRoleCtx(SearchScope.ONELEVEL_SCOPE, "dc=jbpm,dc=org");
assertGroups(ldapUserGroupCallback, false, false, false, false);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testGroupsOneLevelScopeRolesContext.
@Test
public void testGroupsOneLevelScopeRolesContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithRoleCtx(SearchScope.ONELEVEL_SCOPE, "ou=Roles,dc=jbpm,dc=org");
assertGroups(ldapUserGroupCallback, true, true, false, false);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testUsersSubtreeScopePeopleContext.
@Test
public void testUsersSubtreeScopePeopleContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithUserCtx(SearchScope.SUBTREE_SCOPE, "ou=People,dc=jbpm,dc=org");
assertUsers(ldapUserGroupCallback, true, true, true, true);
}
use of org.kie.api.task.UserGroupCallback in project jbpm by kiegroup.
the class LDAPUserGroupCallbackImplTest method testGroupsOneLevelScopeManagerContext.
@Test
public void testGroupsOneLevelScopeManagerContext() {
UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallbackWithRoleCtx(SearchScope.ONELEVEL_SCOPE, "cn=manager,ou=Roles,dc=jbpm,dc=org");
assertGroups(ldapUserGroupCallback, false, false, false, false);
}
Aggregations