Examples of asc()


Examples of org.activiti.engine.history.HistoricTaskInstanceQuery.asc()

          query.orderByHistoricActivityInstanceStartTime();
        } else {
          query.orderByHistoricTaskInstanceEndTime();
        }
        if(asc) {
          query.asc();
        } else {
          query.desc();
        }
        return query.list();
    }
View Full Code Here

Examples of org.activiti.engine.identity.UserQuery.asc()

    } else if ("email".equals(sortby)) {
      query.orderByUserEmail();
    }
   
    if (sortby == null || ascending) {
      query.asc();
    } else {
      query.desc();
    }
   
    List<User> users = query.listPage(start, count);
View Full Code Here

Examples of org.apache.syncope.common.search.OrderByClauseBuilder.asc()

        if (property.indexOf('#') != -1) {
            property = property.substring(property.indexOf('#') + 1);
        }

        if (sort.isAscending()) {
            builder.asc(property);
        } else {
            builder.desc(property);
        }

        return builder.build();
View Full Code Here

Examples of org.camunda.bpm.engine.identity.GroupQuery.asc()

    // group query
    List<Group> mockGroups = MockProvider.createMockGroups();
    when(sampleGroupQuery.groupMember(anyString())).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.orderByGroupName()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.asc()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.list()).thenReturn(mockGroups);

    when(mockIdentityService.createGroupQuery()).thenReturn(sampleGroupQuery);
    when(mockIdentityService.createUserQuery()).thenReturn(sampleUserQuery);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.identity.GroupQuery.asc()

    when(sampleGroupQuery.list()).thenReturn(mockGroups);
    when(sampleGroupQuery.groupMember(anyString())).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.orderByGroupName()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.orderByGroupId()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.orderByGroupType()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.asc()).thenReturn(sampleGroupQuery);
    when(sampleGroupQuery.desc()).thenReturn(sampleGroupQuery);
 
    when(processEngine.getIdentityService().createGroupQuery()).thenReturn(sampleGroupQuery);
    when(processEngine.getIdentityService().createUserQuery()).thenReturn(sampleUserQuery);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.asc()

      setSortBy(query, json.getString(SORT_BY));
    }
    if (json.has(SORT_ORDER)) {
      String sortOrder = json.getString(SORT_ORDER);
      if (Direction.ASCENDING.getName().equals(sortOrder)) {
        query.asc();
      }
      else if (Direction.DESCENDING.getName().equals(sortOrder)) {
        query.desc();
      }
      else {
View Full Code Here

Examples of org.dayatang.domain.OrderSettings.asc()

     * Test of getOrderSettings method, of class CriteriaQuery.
     */
    @Test
    public void testOrderSettings() {
        OrderSettings orderSettings = new OrderSettings();
        orderSettings.asc("id");
        orderSettings.desc("name");
        instance.asc("id").desc("name");
        assertEquals(orderSettings, instance.getOrderSettings());
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.