コード例 #1
0
  public AssetRenderer getAssetRenderer(long classPK, int type)
      throws PortalException, SystemException {

    JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK);

    return new JournalFolderAssetRenderer(folder);
  }
コード例 #2
0
  @Override
  public boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId)
      throws Exception {

    JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK);

    return JournalFolderPermission.contains(permissionChecker, folder, actionId);
  }
コード例 #3
0
  @Override
  public int getTrashContainerModelsCount(long classPK) throws PortalException, SystemException {

    JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK);

    return JournalFolderLocalServiceUtil.getFoldersCount(
        folder.getGroupId(), classPK, WorkflowConstants.STATUS_IN_TRASH);
  }
コード例 #4
0
  @Override
  public JournalFolder getParentFolder() throws PortalException {
    if (getParentFolderId() == JournalFolderConstants.DEFAULT_PARENT_FOLDER_ID) {

      return null;
    }

    return JournalFolderLocalServiceUtil.getFolder(getParentFolderId());
  }
コード例 #5
0
  @Override
  public boolean hasPermission(
      PermissionChecker permissionChecker,
      String entryClassName,
      long entryClassPK,
      String actionId)
      throws Exception {

    JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(entryClassPK);

    return JournalFolderPermission.contains(permissionChecker, folder, ActionKeys.VIEW);
  }
コード例 #6
0
  @Override
  public List<TrashRenderer> getTrashContainerModelTrashRenderers(long classPK, int start, int end)
      throws PortalException, SystemException {

    List<TrashRenderer> trashRenderers = new ArrayList<TrashRenderer>();

    JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK);

    List<JournalFolder> folders =
        JournalFolderLocalServiceUtil.getFolders(
            folder.getGroupId(), classPK, WorkflowConstants.STATUS_IN_TRASH, start, end);

    for (JournalFolder curFolder : folders) {
      TrashHandler trashHandler =
          TrashHandlerRegistryUtil.getTrashHandler(JournalFolder.class.getName());

      TrashRenderer trashRenderer = trashHandler.getTrashRenderer(curFolder.getPrimaryKey());

      trashRenderers.add(trashRenderer);
    }

    return trashRenderers;
  }
コード例 #7
0
  @Override
  protected void doReindex(String className, long classPK) throws Exception {
    JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK);

    doReindex(folder);
  }
コード例 #8
0
  @Override
  public ContainerModel getContainerModel(long containerModelId)
      throws PortalException, SystemException {

    return JournalFolderLocalServiceUtil.getFolder(containerModelId);
  }