Commit 2bc79229 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

conv

parent 6ad2af59
...@@ -143,18 +143,18 @@ public class VideoConverter extends BaseBackgroundTaskExecutor { ...@@ -143,18 +143,18 @@ public class VideoConverter extends BaseBackgroundTaskExecutor {
Role siteMemberRole = RoleLocalServiceUtil.getRole(createdEntry.getCompanyId(), RoleConstants.GUEST); Role siteMemberRole = RoleLocalServiceUtil.getRole(createdEntry.getCompanyId(), RoleConstants.GUEST);
ResourceAction resourceAction = ResourceActionLocalServiceUtil.getResourceAction(DLFileEntry.class.getName(), ActionKeys.VIEW); ResourceAction resourceAction = ResourceActionLocalServiceUtil.getResourceAction(DLFileEntry.class.getName(), ActionKeys.VIEW);
ResourcePermission resourcePermission = ResourcePermissionLocalServiceUtil ResourcePermission resourcePermission = ResourcePermissionLocalServiceUtil
.createResourcePermission(CounterLocalServiceUtil.increment()); .createResourcePermission(CounterLocalServiceUtil.increment());
resourcePermission.setCompanyId(createdEntry.getCompanyId()); resourcePermission.setCompanyId(createdEntry.getCompanyId());
resourcePermission.setName(DLFileEntry.class.getName()); resourcePermission.setName(DLFileEntry.class.getName());
resourcePermission.setScope(ResourceConstants.SCOPE_INDIVIDUAL); resourcePermission.setScope(ResourceConstants.SCOPE_INDIVIDUAL);
resourcePermission.setPrimKey(String.valueOf(createdEntry.getPrimaryKey())); resourcePermission.setPrimKey(String.valueOf(createdEntry.getPrimaryKey()));
resourcePermission.setRoleId(siteMemberRole.getRoleId()); resourcePermission.setRoleId(siteMemberRole.getRoleId());
resourcePermission.setActionIds(resourceAction.getBitwiseValue()); resourcePermission.setActionIds(resourceAction.getBitwiseValue());
ResourcePermissionLocalServiceUtil.addResourcePermission(resourcePermission); ResourcePermissionLocalServiceUtil.addResourcePermission(resourcePermission);
} }
@Override @Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment