public static com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap getFileShortcut(
      long fileShortcutId) throws RemoteException {
    try {
      com.liferay.portlet.documentlibrary.model.DLFileShortcut returnValue =
          DLFileShortcutServiceUtil.getFileShortcut(fileShortcutId);

      return com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
Пример #2
0
  public static com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap addFileShortcut(
      long repositoryId,
      long folderId,
      long toFileEntryId,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws RemoteException {
    try {
      com.liferay.portlet.documentlibrary.model.DLFileShortcut returnValue =
          DLAppServiceUtil.addFileShortcut(repositoryId, folderId, toFileEntryId, serviceContext);

      return com.liferay.portlet.documentlibrary.model.DLFileShortcutSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }