List of usage examples for com.liferay.portal.kernel.service ResourcePermissionLocalServiceUtil setResourcePermissions
public static void setResourcePermissions(long companyId, String name, int scope, String primKey, java.util.Map<Long, String[]> roleIdsToActionIds) throws com.liferay.portal.kernel.exception.PortalException
From source file:com.liferay.exportimport.internal.util.ExportImportPermissionUtil.java
License:Open Source License
public static void updateResourcePermissions(long companyId, long groupId, String resourceName, String resourcePK, Map<Long, String[]> roleIdsToActionIds) throws PortalException { if (roleIdsToActionIds.isEmpty()) { return;//from ww w. j a va 2 s . c om } ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, resourceName, ResourceConstants.SCOPE_INDIVIDUAL, resourcePK, roleIdsToActionIds); }