1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface MBStatsUserLocalService {
50 public com.liferay.portlet.messageboards.model.MBStatsUser addMBStatsUser(
51 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.messageboards.model.MBStatsUser createMBStatsUser(
55 long statsUserId);
56
57 public void deleteMBStatsUser(long statsUserId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteMBStatsUser(
62 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
85 long statsUserId)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
91 int start, int end) throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public int getMBStatsUsersCount() throws com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
97 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
98 throws com.liferay.portal.SystemException;
99
100 public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
101 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
102 boolean merge) throws com.liferay.portal.SystemException;
103
104 public com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
105 long groupId, long userId) throws com.liferay.portal.SystemException;
106
107 public void deleteStatsUserByGroupId(long groupId)
108 throws com.liferay.portal.SystemException;
109
110 public void deleteStatsUserByUserId(long userId)
111 throws com.liferay.portal.SystemException;
112
113 public void deleteStatsUsersByGroupId(long groupId)
114 throws com.liferay.portal.SystemException;
115
116 public void deleteStatsUsersByUserId(long userId)
117 throws com.liferay.portal.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public int getMessageCountByUserId(long userId)
121 throws com.liferay.portal.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
125 long groupId, long userId) throws com.liferay.portal.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsers(
129 long groupId, int start, int end)
130 throws com.liferay.portal.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
134 long groupId, int start, int end)
135 throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public int getStatsUsersByGroupIdCount(long groupId)
139 throws com.liferay.portal.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
143 long userId) throws com.liferay.portal.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public int getStatsUsersCount(long groupId)
147 throws com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
150 long groupId, long userId) throws com.liferay.portal.SystemException;
151
152 public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
153 long groupId, long userId, java.util.Date lastPostDate)
154 throws com.liferay.portal.SystemException;
155 }