Tabnine Logo
ContentItemQuery.list
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * Each test is assumed to clean up all DB content it entered. After a test method executed, this method scans all tables to see if the DB is completely clean. It throws AssertionFailed in case
 * the DB is not clean. If the DB is not clean, it is cleaned by performing a create a drop.
 */
public static void assertAndEnsureCleanDb(ContentEngine contentEngine) {
  LOGGER.debug("verifying that db is clean after test");
  ContentService contentService = contentEngine.getContentEngineConfiguration().getContentService();
  List<ContentItem> items = contentService.createContentItemQuery().list();
  if (items != null && !items.isEmpty()) {
    throw new AssertionError("ContentItem is not empty");
  }
}
origin: org.flowable/flowable-ui-task-rest

public ResultListDataRepresentation getContentItemsForTask(String taskId) {
  permissionService.validateReadPermissionOnTask(SecurityUtils.getCurrentUserObject(), taskId);
  return createResultRepresentation(contentService.createContentItemQuery().taskId(taskId).list());
}
origin: org.flowable/flowable-ui-task-rest

public ResultListDataRepresentation getContentItemsForProcessInstance(String processInstanceId) {
  // TODO: check if process exists
  if (!permissionService.hasReadPermissionOnProcessInstance(SecurityUtils.getCurrentUserObject(), processInstanceId)) {
    throw new NotPermittedException("You are not allowed to read the process with id: " + processInstanceId);
  }
  return createResultRepresentation(contentService.createContentItemQuery().processInstanceId(processInstanceId).list());
}
origin: org.flowable/flowable-ui-task-rest

public ResultListDataRepresentation getContentItemsForCase(String caseInstanceId) {
  permissionService.hasReadPermissionOnCase(SecurityUtils.getCurrentUserObject(), caseInstanceId);
  return createResultRepresentation(contentService.createContentItemQuery().scopeType("cmmn").scopeId(caseInstanceId).list());
}
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-cmmn-engine

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

Collections.addAll(contentItemIdSet, contentItemIds);
List<ContentItem> contentItems = contentService.createContentItemQuery().ids(contentItemIdSet).list();
org.flowable.content.apiContentItemQuerylist

Popular methods of ContentItemQuery

  • ids
    Only select content items with the given ids.
  • 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

  • Making http post requests using okhttp
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JLabel (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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