Codota Logo
PeopleAssignmentsImpl.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.jbpm.services.task.impl.model.PeopleAssignmentsImpl
constructor

Best Java code snippets using org.jbpm.services.task.impl.model.PeopleAssignmentsImpl.<init> (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: kiegroup/jbpm

@Override
public PeopleAssignments newPeopleAssignments() {
  return new PeopleAssignmentsImpl();
}
origin: kiegroup/jbpm

public TaskFluent() {
  if (task == null) {
    task = new TaskImpl();
    task.setTaskData(new TaskDataImpl());
    assignments = new PeopleAssignmentsImpl();
    task.setPeopleAssignments(assignments);
    names = new ArrayList<I18NText>();
    task.setNames(names);
    descriptions = new ArrayList<I18NText>();
    task.setDescriptions(descriptions);
    subjects = new ArrayList<I18NText>();
    task.setSubjects(subjects);
  }
}
origin: kiegroup/jbpm

peopleAssignments = new PeopleAssignmentsImpl();
peopleAssignments.readExternal( in );
origin: org.jbpm/jbpm-human-task-jpa

@Override
public PeopleAssignments newPeopleAssignments() {
  return new PeopleAssignmentsImpl();
}
origin: org.jbpm/jbpm-human-task-jpa

public TaskFluent() {
  if (task == null) {
    task = new TaskImpl();
    task.setTaskData(new TaskDataImpl());
    assignments = new PeopleAssignmentsImpl();
    task.setPeopleAssignments(assignments);
    names = new ArrayList<I18NText>();
    task.setNames(names);
    descriptions = new ArrayList<I18NText>();
    task.setDescriptions(descriptions);
    subjects = new ArrayList<I18NText>();
    task.setSubjects(subjects);
  }
}
origin: org.jbpm/jbpm-human-task-jpa

peopleAssignments = new PeopleAssignmentsImpl();
peopleAssignments.readExternal( in );
origin: org.jbpm/jbpm-console-ng-human-tasks-backend

@Test
public void testAllowDelegateNoData() {
  final long takId = 1;
  final String userId = "user";
  final String groupId = "group";
  final TaskImpl task = new TaskImpl();
  final TaskDataImpl taskData = new TaskDataImpl();
  task.setTaskData(taskData);
  final PeopleAssignmentsImpl peopleAssignments = new PeopleAssignmentsImpl();
  task.setPeopleAssignments(peopleAssignments);
  when(taskService.getTask(takId)).thenReturn(task);
  assertFalse(taskOperationsService.allowDelegate(takId, userId, Collections.singleton(groupId)));
}
origin: org.jbpm/jbpm-console-ng-human-tasks-backend

@Test
public void testAllowDelegateUserInPotentialOwner() {
  final long takId = 1;
  final String userId = "user";
  final TaskImpl task = new TaskImpl();
  task.setTaskData(new TaskDataImpl());
  final PeopleAssignmentsImpl peopleAssignments = new PeopleAssignmentsImpl();
  peopleAssignments.setPotentialOwners(Collections.<OrganizationalEntity>singletonList(new UserImpl(userId)));
  task.setPeopleAssignments(peopleAssignments);
  when(taskService.getTask(takId)).thenReturn(task);
  assertTrue(taskOperationsService.allowDelegate(takId, userId, Collections.<String>emptySet()));
}
origin: org.jbpm/jbpm-console-ng-human-tasks-backend

@Test
public void testAllowDelegateUserInBusinessAdministrators() {
  final long takId = 1;
  final String userId = "user";
  final TaskImpl task = new TaskImpl();
  task.setTaskData(new TaskDataImpl());
  final PeopleAssignmentsImpl peopleAssignments = new PeopleAssignmentsImpl();
  peopleAssignments.setBusinessAdministrators(Collections.<OrganizationalEntity>singletonList(new UserImpl(userId)));
  task.setPeopleAssignments(peopleAssignments);
  when(taskService.getTask(takId)).thenReturn(task);
  assertTrue(taskOperationsService.allowDelegate(takId, userId, Collections.<String>emptySet()));
}
origin: org.jbpm/jbpm-console-ng-human-tasks-backend

@Test
public void testAllowDelegateGroupInBusinessAdministrators() {
  final long takId = 1;
  final String userId = "user";
  final String groupId = "group";
  final TaskImpl task = new TaskImpl();
  task.setTaskData(new TaskDataImpl());
  final PeopleAssignmentsImpl peopleAssignments = new PeopleAssignmentsImpl();
  peopleAssignments.setBusinessAdministrators(Collections.<OrganizationalEntity>singletonList(new GroupImpl(groupId)));
  task.setPeopleAssignments(peopleAssignments);
  when(taskService.getTask(takId)).thenReturn(task);
  assertTrue(taskOperationsService.allowDelegate(takId, userId, Collections.singleton(groupId)));
}
origin: org.jbpm/jbpm-console-ng-human-tasks-backend

@Test
public void testAllowDelegateGroupInPotentialOwner() {
  final long takId = 1;
  final String userId = "user";
  final String groupId = "group";
  final TaskImpl task = new TaskImpl();
  task.setTaskData(new TaskDataImpl());
  final PeopleAssignmentsImpl peopleAssignments = new PeopleAssignmentsImpl();
  peopleAssignments.setPotentialOwners(Collections.<OrganizationalEntity>singletonList(new GroupImpl(groupId)));
  task.setPeopleAssignments(peopleAssignments);
  when(taskService.getTask(takId)).thenReturn(task);
  assertTrue(taskOperationsService.allowDelegate(takId, userId, Collections.singleton(groupId)));
}
origin: org.jbpm/jbpm-console-ng-human-tasks-backend

@Test
public void testAllowDelegateInitiator() {
  final long takId = 1;
  final String userId = "user";
  final TaskImpl task = new TaskImpl();
  task.setTaskData(new TaskDataImpl());
  final PeopleAssignmentsImpl peopleAssignments = new PeopleAssignmentsImpl();
  peopleAssignments.setTaskInitiator(new UserImpl(userId));
  task.setPeopleAssignments(peopleAssignments);
  when(taskService.getTask(takId)).thenReturn(task);
  assertTrue(taskOperationsService.allowDelegate(takId, userId, Collections.<String>emptySet()));
}
origin: org.jbpm/jbpm-console-ng-human-tasks-backend

@Test
public void testAllowDelegateActualOwner() {
  final long takId = 1;
  final String userId = "user";
  final TaskImpl task = new TaskImpl();
  final TaskDataImpl taskData = new TaskDataImpl();
  taskData.setActualOwner(new UserImpl(userId));
  task.setTaskData(taskData);
  final PeopleAssignmentsImpl peopleAssignments = new PeopleAssignmentsImpl();
  task.setPeopleAssignments(peopleAssignments);
  when(taskService.getTask(takId)).thenReturn(task);
  assertTrue(taskOperationsService.allowDelegate(takId, userId, Collections.<String>emptySet()));
}
origin: org.kie.remote/kie-remote-services

  @Test
  //https://issues.jboss.org/browse/JBPM-5282
  public void testAddGetTaskByWorkItemIdCommand() {
    JaxbCommandsResponse jaxbCommandsResponse = new JaxbCommandsResponse();
    String taskName = "task name";
    GetTaskByWorkItemIdCommand command = new GetTaskByWorkItemIdCommand(10L);
    TaskImpl task = new TaskImpl();
    task.setName(taskName);
    task.setPeopleAssignments(new PeopleAssignmentsImpl());
    task.setTaskData(new TaskDataImpl());
    jaxbCommandsResponse.addResult(task, 0, command);

    List<JaxbCommandResponse<?>> responses = jaxbCommandsResponse.getResponses();
    Assert.assertEquals(1, responses.size());
    @SuppressWarnings("unchecked")
    JaxbCommandResponse<JaxbTaskResponse> response = (JaxbCommandResponse<JaxbTaskResponse>)responses.get(0);
    JaxbTaskResponse jaxbTaskResponse = response.getResult();
    Assert.assertEquals(taskName, jaxbTaskResponse.getName());
    Assert.assertNotNull(jaxbTaskResponse.getPeopleAssignments());
    Assert.assertNotNull(jaxbTaskResponse.getTaskData());
  }
}
org.jbpm.services.task.impl.modelPeopleAssignmentsImpl<init>

Popular methods of PeopleAssignmentsImpl

  • setBusinessAdministrators
  • setPotentialOwners
  • convertToPersistentOrganizationalEntity
  • equals
  • getBusinessAdministrators
  • getPotentialOwners
  • hashCode
  • readExternal
  • setTaskInitiator
  • writeExternal

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now