Search in sources :

Example 26 with UserInfo

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);
}
Also used : UserInfo(org.kie.internal.task.api.UserInfo) Test(org.junit.Test)

Example 27 with UserInfo

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);
}
Also used : UserInfo(org.kie.internal.task.api.UserInfo) Test(org.junit.Test)

Example 28 with UserInfo

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);
}
Also used : UserInfo(org.kie.internal.task.api.UserInfo) Test(org.junit.Test)

Example 29 with UserInfo

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);
}
Also used : UserInfo(org.kie.internal.task.api.UserInfo) Test(org.junit.Test)

Example 30 with UserInfo

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);
}
Also used : UserInfo(org.kie.internal.task.api.UserInfo) Test(org.junit.Test)

Aggregations

UserInfo (org.kie.internal.task.api.UserInfo)38 Test (org.junit.Test)26 Properties (java.util.Properties)8 OrganizationalEntity (org.kie.api.task.model.OrganizationalEntity)5 Task (org.kie.api.task.model.Task)5 ArrayList (java.util.ArrayList)4 Group (org.kie.api.task.model.Group)4 User (org.kie.api.task.model.User)4 InternalPeopleAssignments (org.kie.internal.task.api.model.InternalPeopleAssignments)4 Iterator (java.util.Iterator)3 List (java.util.List)3 Map (java.util.Map)3 TaskEventSupport (org.jbpm.services.task.events.TaskEventSupport)3 EnvironmentName (org.kie.api.runtime.EnvironmentName)3 TaskContext (org.kie.api.task.TaskContext)3 TaskPersistenceContext (org.kie.internal.task.api.TaskPersistenceContext)3 Assignment (org.kie.internal.task.api.assignment.Assignment)3 AssignmentStrategy (org.kie.internal.task.api.assignment.AssignmentStrategy)3 Notification (org.kie.internal.task.api.model.Notification)3 NotificationEvent (org.kie.internal.task.api.model.NotificationEvent)3