protected void updateFileShortcut(ActionRequest actionRequest) throws Exception { long fileShortcutId = ParamUtil.getLong(actionRequest, "fileShortcutId"); long repositoryId = ParamUtil.getLong(actionRequest, "repositoryId"); long folderId = ParamUtil.getLong(actionRequest, "folderId"); long toFileEntryId = ParamUtil.getLong(actionRequest, "toFileEntryId"); ServiceContext serviceContext = ServiceContextFactory.getInstance(DLFileShortcutConstants.getClassName(), actionRequest); if (fileShortcutId <= 0) { // Add file shortcut DLAppServiceUtil.addFileShortcut(repositoryId, folderId, toFileEntryId, serviceContext); } else { // Update file shortcut DLAppServiceUtil.updateFileShortcut(fileShortcutId, folderId, toFileEntryId, serviceContext); } }
@Override protected String getClassName(FileShortcut fileShortcut) { return DLFileShortcutConstants.getClassName(); }