use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testUsersObjectScopeBaseDnContext.
@Test
public void testUsersObjectScopeBaseDnContext() {
UserInfo ldapUserInfo = createLdapUserInfoWithUserCtx(OBJECT_SCOPE, "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 testGroupsDefaultScope.
@Test
public void testGroupsDefaultScope() {
UserInfo ldapUserInfo = createLdapUserInfoCn(createUserInfoProperties());
assertGroups(ldapUserInfo, true, true, false, false);
}
use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testGroupsSubtreeScopeRolesContext.
@Test
public void testGroupsSubtreeScopeRolesContext() {
UserInfo ldapUserInfo = createLdapUserInfoWithGroupCtx(SUBTREE_SCOPE, "ou=Roles,dc=jbpm,dc=org");
assertGroups(ldapUserInfo, true, true, true, true);
}
use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testGroupsObjectScopeManagerContext.
@Test
public void testGroupsObjectScopeManagerContext() {
UserInfo ldapUserInfo = createLdapUserInfoWithGroupCtx(OBJECT_SCOPE, "cn=manager,ou=Roles,dc=jbpm,dc=org");
assertGroups(ldapUserInfo, true, false, false, false);
}
use of org.kie.internal.task.api.UserInfo in project jbpm by kiegroup.
the class LDAPUserInfoImplTest method testUsersDefaultScope.
@Test
public void testUsersDefaultScope() {
UserInfo ldapUserInfo = createLdapUserInfoUid(createUserInfoProperties());
assertUsers(ldapUserInfo, true, true, false, false);
}
Aggregations