我在 liferay 的 portlet MVC 类中有以下调用:
ResourcePermissionServiceUtil.addResourcePermission(
themeDisplay.getScopeGroupId(),
themeDisplay.getCompanyId(),
FileEntry.class.getName(),
??, //scope int value... how do I get this??
Long.toString( fileEntry.getPrimaryKey()),
RoleServiceUtil.getRole(themeDisplay.getCompanyId(), "Guest").getPrimaryKey(),
ActionKeys.VIEW);
我想知道如何获取范围值。最好是全局范围的值。
最佳答案
在您的情况下,您必须使用ResourceConstants.SCOPE_INDIVIDUAL
关于java - 如何在 Liferay 中获取范围值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21653222/