Package de.iritgo.simplelife.constants

Examples of de.iritgo.simplelife.constants.SortOrder


   */
  public void updateSort(String sort)
  {
    if (sort != null)
    {
      SortOrder sortOrder = SortOrder.ASCENDING;

      if (sort.equals(getSortColumnName()))
      {
        sortOrder = getSortColumn().getSort() == SortOrder.ASCENDING ? SortOrder.DESCENDING
                : SortOrder.ASCENDING;
View Full Code Here


    java.util.List<Configuration> sortConfigs = ModelTools.getConfigChildren(configPath, "sort");

    for (Configuration sortConfig : sortConfigs)
    {
      SortOrder sortOrder = SortOrder.ASCENDING;

      if ("desc".equals(sortConfig.getAttribute("order", null)))
      {
        sortOrder = SortOrder.DESCENDING;
      }
View Full Code Here

  public ListJournalResponse list(ListJournalRequest request) throws Exception
  {
    AkteraUser user = securityContext.getUser();
    int firstResult = request.getFirstResult() != null ? request.getFirstResult().intValue() : 0;
    int maxResults = request.getMaxResults() != null ? request.getMaxResults().intValue() : 100;
    SortOrder orderDir = request.getOrderDir() != null ? SortOrder.byId(request.getOrderDir())
            : SortOrder.ASCENDING;
    String orderBy = StringTools.isNotTrimEmpty(request.getOrderBy()) ? request.getOrderBy() : "journal.occurredAt";

    ListJournalResponse response = new ListJournalResponse();
    DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();
View Full Code Here

    Collections.sort(users, new Comparator()
    {
      public int compare(Object o1, Object o2)
      {
        SortOrder sort = listing.getSortOrder();
        String column = listing.getSortColumnName();

        column = column.substring(column.indexOf('.') + 1);

        Map m1 = sort == SortOrder.ASCENDING ? (Map) o1 : (Map) o2;
View Full Code Here

  public ListAddressesResponse listAddresses(ListAddressesRequest request) throws Exception
  {
    AkteraUser user = securityContext.getUser();
    int firstResult = request.getFirstResult() != null ? request.getFirstResult().intValue() : 0;
    int maxResults = request.getMaxResults() != null ? request.getMaxResults().intValue() : - 1;
    SortOrder orderDir = request.getOrderDir() != null ? SortOrder.byId(request.getOrderDir())
            : SortOrder.ASCENDING;
    String orderBy = request.getOrderBy() != null ? request.getOrderBy() : "lastName";
    AddressStore store = addressManager.getAddressStoreByName(request.getAddressStoreName());
    ListAddressesResponse response = new ListAddressesResponse();
    for (Address address : store.createAddressListing(user.getId(), request.getQuery(), orderBy, orderDir,
View Full Code Here

TOP

Related Classes of de.iritgo.simplelife.constants.SortOrder

Copyright © 2018 www.massapicom. 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.