コード例 #1
0
  public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap getProductEntry(
      long productEntryId) throws RemoteException {
    try {
      com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
          SCProductEntryServiceUtil.getProductEntry(productEntryId);

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

      throw new RemoteException(e.getMessage());
    }
  }
コード例 #2
0
  public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap addProductEntry(
      java.lang.String name,
      java.lang.String type,
      java.lang.String tags,
      java.lang.String shortDescription,
      java.lang.String longDescription,
      java.lang.String pageURL,
      java.lang.String author,
      java.lang.String repoGroupId,
      java.lang.String repoArtifactId,
      long[] licenseIds,
      java.util.List<byte[]> thumbnails,
      java.util.List<byte[]> fullImages,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws RemoteException {
    try {
      com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
          SCProductEntryServiceUtil.addProductEntry(
              name,
              type,
              tags,
              shortDescription,
              longDescription,
              pageURL,
              author,
              repoGroupId,
              repoArtifactId,
              licenseIds,
              thumbnails,
              fullImages,
              serviceContext);

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

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