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

            Assignee:
            albert.lee Albert Lee
            Reporter:
            albert.lee Albert Lee
            Engineering Assignee:
            Albert Lee
            Recent user:
            Annie Wu
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master