1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="SCProductEntryService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       SCProductEntryServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface SCProductEntryService {
50      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
51          long plid, java.lang.String name, java.lang.String type,
52          java.lang.String tags, java.lang.String shortDescription,
53          java.lang.String longDescription, java.lang.String pageURL,
54          java.lang.String author, java.lang.String repoGroupId,
55          java.lang.String repoArtifactId, long[] licenseIds,
56          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
57          boolean addCommunityPermissions, boolean addGuestPermissions)
58          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
62          long plid, java.lang.String name, java.lang.String type,
63          java.lang.String tags, java.lang.String shortDescription,
64          java.lang.String longDescription, java.lang.String pageURL,
65          java.lang.String author, java.lang.String repoGroupId,
66          java.lang.String repoArtifactId, long[] licenseIds,
67          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
68          java.lang.String[] communityPermissions,
69          java.lang.String[] guestPermissions)
70          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException;
72  
73      public void deleteProductEntry(long productEntryId)
74          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException;
76  
77      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78      public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
79          long productEntryId)
80          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException;
82  
83      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
84          long productEntryId, java.lang.String name, java.lang.String type,
85          java.lang.String tags, java.lang.String shortDescription,
86          java.lang.String longDescription, java.lang.String pageURL,
87          java.lang.String author, java.lang.String repoGroupId,
88          java.lang.String repoArtifactId, long[] licenseIds,
89          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
90          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException;
92  }