congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CaseRoleAssignment$Builder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
org.kie.server.api.model.cases.CaseRoleAssignment$Builder

Best Java code snippets using org.kie.server.api.model.cases.CaseRoleAssignment$Builder.build (Showing top 1 results out of 315)

origin: org.kie.server/kie-server-services-case-mgmt

public static List<CaseRoleAssignment> transformRoleAssignment(Collection<CaseRoleInstance> roleInstances) {
  List<CaseRoleAssignment> roleAssignments = new ArrayList<>();
  if (roleInstances != null) {
    roleInstances.forEach(r ->
            roleAssignments.add(CaseRoleAssignment.builder()
                .name(r.getRoleName())
                .users(r.getRoleAssignments().stream()
                    .filter(oe -> oe instanceof User)
                    .map(OrganizationalEntity::getId)
                    .collect(toList()))
                .groups(r.getRoleAssignments().stream()
                    .filter(oe -> oe instanceof Group)
                    .map(OrganizationalEntity::getId)
                    .collect(toList()))
                .build())
    );
  }
  return roleAssignments;
}
org.kie.server.api.model.casesCaseRoleAssignment$Builderbuild

Popular methods of CaseRoleAssignment$Builder

  • <init>
  • groups
  • name
  • users

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now