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