use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testUsersOneLevelScopeJohnContext.
@Test
public void testUsersOneLevelScopeJohnContext() {
UserInfo ldapUserInfo = createLdapUserInfoWithUserCtx(ONELEVEL_SCOPE, "uid=john,ou=People,dc=jbpm,dc=org");
assertUsers(ldapUserInfo, false, false, false, false);
}
use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testGroupsOneLevelScopeEngContext.
@Test
public void testGroupsOneLevelScopeEngContext() {
UserInfo ldapUserInfo = createLdapUserInfoWithGroupCtx(ONELEVEL_SCOPE, "ou=ENG,ou=Roles,dc=jbpm,dc=org");
assertGroups(ldapUserInfo, false, false, true, false);
}
use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testUsersObjectScopePeopleContext.
@Test
public void testUsersObjectScopePeopleContext() {
UserInfo ldapUserInfo = createLdapUserInfoWithUserCtx(OBJECT_SCOPE, "ou=People,dc=jbpm,dc=org");
assertUsers(ldapUserInfo, false, false, false, false);
}
use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testUsersSubtreeScopeBaseDnContext.
@Test
public void testUsersSubtreeScopeBaseDnContext() {
UserInfo ldapUserInfo = createLdapUserInfoWithUserCtx(SUBTREE_SCOPE, "dc=jbpm,dc=org");
assertUsers(ldapUserInfo, true, true, true, true);
}
use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testUsersOneLevelScopePeopleContext.
@Test
public void testUsersOneLevelScopePeopleContext() {
UserInfo ldapUserInfo = createLdapUserInfoWithUserCtx(ONELEVEL_SCOPE, "ou=People,dc=jbpm,dc=org");
assertUsers(ldapUserInfo, true, true, false, false);
}
Aggregations