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 MBBanLocalService {
043 public com.liferay.portlet.messageboards.model.MBBan addMBBan(
044 com.liferay.portlet.messageboards.model.MBBan mbBan)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.messageboards.model.MBBan createMBBan(long banId);
048
049 public void deleteMBBan(long banId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public void deleteMBBan(com.liferay.portlet.messageboards.model.MBBan mbBan)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 @SuppressWarnings("unchecked")
057 public java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 @SuppressWarnings("unchecked")
062 public java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException;
065
066 @SuppressWarnings("unchecked")
067 public java.util.List dynamicQuery(
068 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069 int end,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.kernel.exception.SystemException;
072
073 public long dynamicQueryCount(
074 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075 throws com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portlet.messageboards.model.MBBan getMBBan(long banId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
084 int start, int end)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public int getMBBansCount()
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portlet.messageboards.model.MBBan updateMBBan(
092 com.liferay.portlet.messageboards.model.MBBan mbBan)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 public com.liferay.portlet.messageboards.model.MBBan updateMBBan(
096 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portlet.messageboards.model.MBBan addBan(long userId,
100 long banUserId, com.liferay.portal.service.ServiceContext serviceContext)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104 public void checkBan(long groupId, long banUserId)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public void deleteBan(long banUserId,
109 com.liferay.portal.service.ServiceContext serviceContext)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 public void deleteBansByBanUserId(long banUserId)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 public void deleteBansByGroupId(long groupId)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 public void expireBans()
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
123 long groupId, int start, int end)
124 throws com.liferay.portal.kernel.exception.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public int getBansCount(long groupId)
128 throws com.liferay.portal.kernel.exception.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public boolean hasBan(long groupId, long banUserId)
132 throws com.liferay.portal.kernel.exception.SystemException;
133 }