Exemple #1
0
  protected void deleteFileShortcut(ActionRequest actionRequest, boolean moveToTrash)
      throws Exception {

    long fileShortcutId = ParamUtil.getLong(actionRequest, "fileShortcutId");

    if (moveToTrash) {
      DLFileShortcut fileShortcut = DLAppServiceUtil.moveFileShortcutToTrash(fileShortcutId);

      TrashUtil.addTrashSessionMessages(actionRequest, fileShortcut);

      hideDefaultSuccessMessage(actionRequest);
    } else {
      DLAppServiceUtil.deleteFileShortcut(fileShortcutId);
    }
  }
 @Override
 protected void moveBaseModelToTrash(long primaryKey) throws Exception {
   DLAppServiceUtil.moveFileShortcutToTrash(primaryKey);
 }