List of usage examples for com.liferay.portal.kernel.security.permission RolePermissions RolePermissions
public RolePermissions(String name, int scope, String actionId, long roleId)
From source file:com.liferay.site.service.persistence.test.GroupFinderTest.java
License:Open Source License
protected List<Group> findByC_C_N_D(String actionId, String name, long roleId) throws Exception { LinkedHashMap<String, Object> groupParams = new LinkedHashMap<>(); RolePermissions rolePermissions = new RolePermissions(name, ResourceConstants.SCOPE_GROUP, actionId, roleId);//from www. jav a 2 s.c o m groupParams.put("rolePermissions", rolePermissions); long[] classNameIds = { PortalUtil.getClassNameId(Group.class) }; return GroupFinderUtil.findByC_C_PG_N_D(TestPropsValues.getCompanyId(), classNameIds, GroupConstants.ANY_PARENT_GROUP_ID, new String[] { null }, new String[] { null }, groupParams, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }