Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-115779

Simplify AccountRoleLocalServiceImpl to use OrderFactoryUtil.addOrderByComparator

Details

    Description

      Simple the following to use OrderFactoryUtil.addOrderByComparator

      if (obc != null) {
      	Order order;
      
      	if (obc.isAscending()) {
      		order = OrderFactoryUtil.asc(obc.getOrderByFields()[0]);
      	}
      	else {
      		order = OrderFactoryUtil.desc(obc.getOrderByFields()[0]);
      	}
      
      	roleDynamicQuery.addOrder(order);
      }
      

      Attachments

        Activity

          People

            albert.lee Albert Lee (Inactive)
            albert.lee Albert Lee (Inactive)
            Albert Lee Albert Lee (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                Master