001
014
015 package com.liferay.portlet.messageboards.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 MBStatsUserLocalService {
043 public com.liferay.portlet.messageboards.model.MBStatsUser addMBStatsUser(
044 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.messageboards.model.MBStatsUser createMBStatsUser(
048 long statsUserId);
049
050 public void deleteMBStatsUser(long statsUserId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteMBStatsUser(
055 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
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.messageboards.model.MBStatsUser getMBStatsUser(
081 long statsUserId)
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.messageboards.model.MBStatsUser> getMBStatsUsers(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getMBStatsUsersCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
095 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
099 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
100 boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
104 long groupId, long userId)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public void deleteStatsUsersByGroupId(long groupId)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public void deleteStatsUsersByUserId(long userId)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public long getMessageCountByUserId(long userId)
115 throws com.liferay.portal.kernel.exception.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
119 long groupId, long userId)
120 throws com.liferay.portal.kernel.exception.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
124 long groupId, int start, int end)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
129 long userId) throws com.liferay.portal.kernel.exception.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public int getStatsUsersByGroupIdCount(long groupId)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
136 long groupId, long userId)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
140 long groupId, long userId, java.util.Date lastPostDate)
141 throws com.liferay.portal.kernel.exception.SystemException;
142 }