コード例 #1
0
  @Override
  public AssetRenderer<TasksEntry> getAssetRenderer(long classPK, int type) throws PortalException {

    TasksEntry tasksEntry = TasksEntryLocalServiceUtil.getTasksEntry(classPK);

    return new TasksEntryAssetRenderer(tasksEntry);
  }
コード例 #2
0
  public static boolean contains(
      PermissionChecker permissionChecker, long tasksEntryId, String actionId)
      throws PortalException, SystemException {

    TasksEntry tasksEntry = TasksEntryLocalServiceUtil.getTasksEntry(tasksEntryId);

    return contains(permissionChecker, tasksEntry, actionId);
  }