Tabnine Logo
CaseCommentList
Code IndexAdd Tabnine to your IDE (free)

How to use
CaseCommentList
in
org.kie.server.api.model.cases

Best Java code snippets using org.kie.server.api.model.cases.CaseCommentList (Showing top 2 results out of 315)

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

public CaseCommentList getComments(String containerId, String caseId, String sort, Integer page, Integer pageSize) {
  verifyContainerId(containerId, caseId);
  CommentSortBy sortBy = parseCommentSortBy(sort);
  Collection<CommentInstance> caseComments = caseService.getCaseComments(caseId, sortBy, ConvertUtils.buildQueryContext(page, pageSize));
  logger.debug("Comments for case {} are {}", caseId, caseComments);
  List<CaseComment> comments = ConvertUtils.transformCaseComments(caseComments);
  CaseCommentList commentsList = new CaseCommentList(comments);
  return commentsList;
}
origin: org.kie.server/kie-server-client

@Override
public List<CaseComment> getComments(String containerId, String caseId, String sortBy, Integer page, Integer pageSize) {
  CaseCommentList list = null;
  if( config.isRest() ) {
    Map<String, Object> valuesMap = new HashMap<String, Object>();
    valuesMap.put(CONTAINER_ID, containerId);
    valuesMap.put(CASE_ID, caseId);
    String queryString = getPagingQueryString("?sort=" + sortBy, page, pageSize);
    list = makeHttpGetRequestAndCreateCustomResponse(
        build(loadBalancer.getUrl(), CASE_URI + "/" + CASE_COMMENTS_GET_URI, valuesMap) + queryString, CaseCommentList.class);
  } else {
    CommandScript script = new CommandScript( Collections.singletonList(
        (KieServerCommand) new DescriptorCommand("CaseService", "getComments", new Object[]{containerId, caseId, sortBy, page, pageSize})) );
    ServiceResponse<CaseCommentList> response = (ServiceResponse<CaseCommentList>)
        executeJmsCommand( script, DescriptorCommand.class.getName(), KieServerConstants.CAPABILITY_CASE ).getResponses().get(0);
    throwExceptionOnFailure(response);
    if (shouldReturnWithNullResponse(response)) {
      return null;
    }
    list = response.getResult();
  }
  if (list != null) {
    return list.getItems();
  }
  return Collections.emptyList();
}
org.kie.server.api.model.casesCaseCommentList

Most used methods

  • <init>
  • getItems

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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