Codota Logo
ContentItemQuery.ids
Code IndexAdd Codota to your IDE (free)

How to use
ids
method
in
org.flowable.content.api.ContentItemQuery

Best Java code snippets using org.flowable.content.api.ContentItemQuery.ids (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.flowable/flowable-engine

@Override
public void enrichFormFields(FormInfo formInfo) {
  ContentService contentService = CommandContextUtil.getContentService();
  if (contentService == null) {
    return;
  }
  SimpleFormModel formModel = (SimpleFormModel) formInfo.getFormModel();
  if (formModel.getFields() != null) {
    for (FormField formField : formModel.getFields()) {
      if (FormFieldTypes.UPLOAD.equals(formField.getType())) {
        List<String> contentItemIds = null;
        if (formField.getValue() instanceof List) {
          contentItemIds = (List<String>) formField.getValue();
        } else if (formField.getValue() instanceof String) {
          String[] splittedString = ((String) formField.getValue()).split(",");
          contentItemIds = new ArrayList<>();
          Collections.addAll(contentItemIds, splittedString);
        }
        if (contentItemIds != null) {
          Set<String> contentItemIdSet = new HashSet<>(contentItemIds);
          List<ContentItem> contentItems = contentService.createContentItemQuery()
              .ids(contentItemIdSet)
              .list();
          formField.setValue(contentItems);
        }
      }
    }
  }
}
origin: org.flowable/flowable-cmmn-engine

@Override
public void enrichFormFields(FormInfo formInfo) {
  ContentService contentService = CommandContextUtil.getContentService();
  if (contentService == null) {
    return;
  }
  SimpleFormModel formModel = (SimpleFormModel) formInfo.getFormModel();
  if (formModel.getFields() != null) {
    for (FormField formField : formModel.getFields()) {
      if (FormFieldTypes.UPLOAD.equals(formField.getType())) {
        List<String> contentItemIds = null;
        if (formField.getValue() instanceof List) {
          contentItemIds = (List<String>) formField.getValue();
        } else if (formField.getValue() instanceof String) {
          String[] splittedString = ((String) formField.getValue()).split(",");
          contentItemIds = new ArrayList<>();
          Collections.addAll(contentItemIds, splittedString);
        }
        if (contentItemIds != null) {
          Set<String> contentItemIdSet = new HashSet<>(contentItemIds);
          List<ContentItem> contentItems = contentService.createContentItemQuery()
              .ids(contentItemIdSet)
              .list();
          formField.setValue(contentItems);
        }
      }
    }
  }
}
origin: org.flowable/flowable-engine

Collections.addAll(contentItemIdSet, contentItemIds);
List<ContentItem> contentItems = contentService.createContentItemQuery().ids(contentItemIdSet).list();
origin: org.flowable/flowable-cmmn-engine

Collections.addAll(contentItemIdSet, contentItemIds);
List<ContentItem> contentItems = contentService.createContentItemQuery().ids(contentItemIdSet).list();
origin: org.flowable/flowable-content-rest

contentItemQuery.ids(request.getIds());
org.flowable.content.apiContentItemQueryids

Javadoc

Only select content items with the given ids.

Popular methods of ContentItemQuery

  • list
  • id
    Only select content items with the given id.
  • processInstanceId
    Only select content items with the given process instance id.
  • singleResult
  • taskId
    Only select content items with the given task id.
  • contentAvailable
    Only select content items with content available or not.
  • contentSize
    Only select content items with the given content size.
  • contentStoreId
    Only select content items with the given content store id.
  • contentStoreIdLike
    Only select content items with a content store id like the given string.
  • contentStoreName
    Only select content items with the given content store name.
  • contentStoreNameLike
    Only select content items with a content store name like the given string.
  • createdBy
    Only select content items with the given created by value.
  • contentStoreNameLike,
  • createdBy,
  • createdByLike,
  • createdDate,
  • createdDateAfter,
  • createdDateBefore,
  • field,
  • fieldLike,
  • lastModifiedBy

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Reference (javax.naming)
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