コード例 #1
0
  @Override
  public TrashRenderer getTrashRenderer(long classPK) throws PortalException, SystemException {

    DLFileShortcut fileShortcut = DLFileShortcutLocalServiceUtil.getDLFileShortcut(classPK);

    return new DLFileShortcutTrashRenderer(fileShortcut);
  }
コード例 #2
0
  @Override
  public boolean isInTrashContainer(long classPK) throws PortalException, SystemException {

    DLFileShortcut fileShortcut = DLFileShortcutLocalServiceUtil.getDLFileShortcut(classPK);

    return fileShortcut.isInTrashContainer();
  }
コード例 #3
0
  @Override
  public String getRestoreMessage(PortletRequest portletRequest, long classPK)
      throws PortalException, SystemException {

    DLFileShortcut fileShortcut = DLFileShortcutLocalServiceUtil.getDLFileShortcut(classPK);

    return DLUtil.getAbsolutePath(portletRequest, fileShortcut.getFolderId());
  }
コード例 #4
0
  @Override
  public String getRestoreLink(PortletRequest portletRequest, long classPK)
      throws PortalException, SystemException {

    DLFileShortcut fileShortcut = DLFileShortcutLocalServiceUtil.getDLFileShortcut(classPK);

    return DLUtil.getDLControlPanelLink(portletRequest, fileShortcut.getFolderId());
  }
コード例 #5
0
  protected DLFileShortcut getDLFileShortcut(long classPK) throws PortalException, SystemException {

    return DLFileShortcutLocalServiceUtil.getDLFileShortcut(classPK);
  }