1
22
23 package com.liferay.portlet.softwarecatalog.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface SCLicenseLocalService {
57 public com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
58 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
62 long licenseId);
63
64 public void deleteSCLicense(long licenseId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deleteSCLicense(
69 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74 throws com.liferay.portal.SystemException;
75
76 public java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
82 long licenseId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getSCLicensesCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
94 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
98 java.lang.String name, java.lang.String url, boolean openSource,
99 boolean active, boolean recommended)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public void deleteLicense(long licenseId)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
109 long licenseId)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
115 throws com.liferay.portal.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
119 int start, int end) throws com.liferay.portal.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
123 boolean active, boolean recommended)
124 throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
128 boolean active, boolean recommended, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public int getLicensesCount() throws com.liferay.portal.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public int getLicensesCount(boolean active, boolean recommended)
136 throws com.liferay.portal.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
140 long productEntryId) throws com.liferay.portal.SystemException;
141
142 public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
143 long licenseId, java.lang.String name, java.lang.String url,
144 boolean openSource, boolean active, boolean recommended)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException;
147 }