Example usage for com.liferay.portal.kernel.service LayoutLocalServiceUtil updatePriority

List of usage examples for com.liferay.portal.kernel.service LayoutLocalServiceUtil updatePriority

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service LayoutLocalServiceUtil updatePriority.

Prototype

public static com.liferay.portal.kernel.model.Layout updatePriority(long groupId, boolean privateLayout,
        long layoutId, int priority) throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Updates the priority of the layout matching the group, layout ID, and privacy.

Usage

From source file:eu.gerhards.liferay.services.angular.service.impl.AngularLayoutServiceImpl.java

License:Open Source License

@Override
public Layout updatePriority(long groupId, boolean privateLayout, long layoutId, int priority)
        throws PortalException {
    _log.info("Updating priority of layout with id " + layoutId + " within group with id " + groupId);

    PortalPermissionUtil.check(getPermissionChecker(), AngularActionKeys.UPDATE_LAYOUT);

    _log.debug("    ... updating ...");

    com.liferay.portal.kernel.model.Layout layout = LayoutLocalServiceUtil.updatePriority(groupId,
            privateLayout, layoutId, priority);

    return layout;
}