001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface ResourceLocalService extends BaseLocalService,
039 PersistedModelLocalService {
040
045
046
053 public com.liferay.portal.model.Resource addResource(
054 com.liferay.portal.model.Resource resource)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portal.model.Resource createResource(long resourceId);
064
065
073 public com.liferay.portal.model.Resource deleteResource(long resourceId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
084 public com.liferay.portal.model.Resource deleteResource(
085 com.liferay.portal.model.Resource resource)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
089
090
097 @SuppressWarnings("rawtypes")
098 public java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102
115 @SuppressWarnings("rawtypes")
116 public java.util.List dynamicQuery(
117 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
118 int end) throws com.liferay.portal.kernel.exception.SystemException;
119
120
134 @SuppressWarnings("rawtypes")
135 public java.util.List dynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.kernel.exception.SystemException;
140
141
148 public long dynamicQueryCount(
149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portal.model.Resource fetchResource(long resourceId)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portal.model.Resource getResource(long resourceId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portal.model.PersistedModel getPersistedModel(
171 java.io.Serializable primaryKeyObj)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portal.model.Resource> getResources(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getResourcesCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portal.model.Resource updateResource(
210 com.liferay.portal.model.Resource resource)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portal.model.Resource updateResource(
222 com.liferay.portal.model.Resource resource, boolean merge)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225
230 public java.lang.String getBeanIdentifier();
231
232
237 public void setBeanIdentifier(java.lang.String beanIdentifier);
238
239 public void addModelResources(
240 com.liferay.portal.model.AuditedModel auditedModel,
241 com.liferay.portal.service.ServiceContext serviceContext)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException;
244
245 public void addModelResources(long companyId, long groupId, long userId,
246 java.lang.String name, long primKey,
247 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 public void addModelResources(long companyId, long groupId, long userId,
252 java.lang.String name, java.lang.String primKey,
253 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 public com.liferay.portal.model.Resource addResource(long companyId,
258 java.lang.String name, int scope, java.lang.String primKey)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261 public void addResources(long companyId, long groupId, long userId,
262 java.lang.String name, long primKey, boolean portletActions,
263 boolean addGroupPermissions, boolean addGuestPermissions)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public void addResources(long companyId, long groupId, long userId,
268 java.lang.String name, java.lang.String primKey,
269 boolean portletActions, boolean addGroupPermissions,
270 boolean addGuestPermissions)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException;
273
274 public void addResources(long companyId, long groupId,
275 java.lang.String name, boolean portletActions)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public void deleteResource(
280 com.liferay.portal.model.AuditedModel auditedModel, int scope)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 public void deleteResource(long companyId, java.lang.String name,
285 int scope, long primKey)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException;
288
289 public void deleteResource(long companyId, java.lang.String name,
290 int scope, java.lang.String primKey)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException;
293
294 public void deleteResources(java.lang.String name)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public com.liferay.portal.model.Resource fetchResource(long companyId,
299 java.lang.String name, int scope, java.lang.String primKey)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public long getLatestResourceId()
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public com.liferay.portal.model.Resource getResource(long companyId,
308 java.lang.String name, int scope, java.lang.String primKey)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portal.model.Resource> getResources()
314 throws com.liferay.portal.kernel.exception.SystemException;
315
316 public void updateModelResources(
317 com.liferay.portal.model.AuditedModel auditedModel,
318 com.liferay.portal.service.ServiceContext serviceContext)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException;
321
322 public void updateResources(long companyId, long groupId,
323 java.lang.String name, long primKey,
324 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException;
327
328 public void updateResources(long companyId, long groupId,
329 java.lang.String name, java.lang.String primKey,
330 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333
334 public void updateResources(long companyId, java.lang.String name,
335 int scope, java.lang.String primKey, java.lang.String newPrimKey)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338 }