1
22
23 package com.liferay.portlet.ratings.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 RatingsEntryLocalService {
57 public com.liferay.portlet.ratings.model.RatingsEntry addRatingsEntry(
58 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.ratings.model.RatingsEntry createRatingsEntry(
62 long entryId);
63
64 public void deleteRatingsEntry(long entryId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deleteRatingsEntry(
69 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
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.ratings.model.RatingsEntry getRatingsEntry(
82 long entryId)
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.ratings.model.RatingsEntry> getRatingsEntries(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getRatingsEntriesCount()
92 throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
95 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
96 throws com.liferay.portal.SystemException;
97
98 public void deleteEntry(long userId, java.lang.String className,
99 long classPK)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portlet.ratings.model.RatingsEntry getEntry(
105 long userId, java.lang.String className, long classPK)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
111 java.lang.String className, long classPK)
112 throws com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
115 long userId, java.lang.String className, long classPK, double score)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118 }