Exemplo n.º 1
0
 private void updatelazyFilterInLists() {
   LazyFilterInList type = new LazyFilterInList();
   type.setField("type");
   type.setValues(filterIssueType);
   LazyFilterInList status = new LazyFilterInList();
   status.setField("status.statusId");
   status.setValues(
       ("Any").equals(filterIssueStatus) ? filterIssueStatus : Long.valueOf(filterIssueStatus));
   LazyFilterInList priority = new LazyFilterInList();
   priority.setField("priority");
   priority.setValues(filterIssuePriority);
   lazyFilterInLists.clear();
   lazyFilterInLists.add(type);
   lazyFilterInLists.add(status);
   lazyFilterInLists.add(priority);
 }
Exemplo n.º 2
0
  private void defautLazyLoading() {
    filterIssueType = "Any";
    filterIssuePriority = "Any";
    filterIssueStatus = "Any";

    issueStateLazyLoading = new IssueStateLazyLoading();

    lazyFilterInLists = new ArrayList<LazyFilterInList>();
    LazyFilterInList filterInList = new LazyFilterInList();
    filterInList.setField("type");
    filterInList.setValues("Task");
    lazyFilterInLists.add(filterInList);
    LazySorter lazySorter = new LazySorter();
    lazySorter.setField("subject");
    lazySorter.setValue(LAZYSORTER_VALUE.ASC);
    issueStateLazyLoading.setSorters(lazySorter);
    issueStateLazyLoading.setFilterInLists(lazyFilterInLists);
    issueStateLazyLoading.setLimit(20);
    issueStateLazyLoading.setStep(10);
    issueStateLazyLoading.setStart(0);
  }