001
014
015 package com.liferay.portlet.ratings.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface RatingsEntryLocalService {
043 public com.liferay.portlet.ratings.model.RatingsEntry addRatingsEntry(
044 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.ratings.model.RatingsEntry createRatingsEntry(
048 long entryId);
049
050 public void deleteRatingsEntry(long entryId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteRatingsEntry(
055 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.ratings.model.RatingsEntry getRatingsEntry(
081 long entryId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getRatingsEntries(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getRatingsEntriesCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
095 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
099 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
100 boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public void deleteEntry(long userId, java.lang.String className,
104 long classPK)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
110 long userId, java.lang.String className,
111 java.util.List<java.lang.Long> classPKs)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
116 java.lang.String className, long classPK)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public com.liferay.portlet.ratings.model.RatingsEntry getEntry(
121 long userId, java.lang.String className, long classPK)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
126 long userId, java.lang.String className, long classPK, double score,
127 com.liferay.portal.service.ServiceContext serviceContext)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130 }