com.liferay.portlet.messageboards.service
Interface MBBanLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface MBBanLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.messageboards.service.impl.MBBanLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
MBBanLocalServiceUtil

Method Summary
 MBBan addBan(long userId, long banUserId, ServiceContext serviceContext)
           
 MBBan addMBBan(MBBan mbBan)
           
 void checkBan(long groupId, long banUserId)
           
 MBBan createMBBan(long banId)
           
 void deleteBan(long banUserId, ServiceContext serviceContext)
           
 void deleteBansByBanUserId(long banUserId)
           
 void deleteBansByGroupId(long groupId)
           
 void deleteMBBan(long banId)
           
 void deleteMBBan(MBBan mbBan)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 void expireBans()
           
 java.util.List<MBBan> getBans(long groupId, int start, int end)
           
 int getBansCount(long groupId)
           
 MBBan getMBBan(long banId)
           
 java.util.List<MBBan> getMBBans(int start, int end)
           
 int getMBBansCount()
           
 boolean hasBan(long groupId, long banUserId)
           
 MBBan updateMBBan(MBBan mbBan)
           
 

Method Detail

addMBBan

MBBan addMBBan(MBBan mbBan)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createMBBan

MBBan createMBBan(long banId)

deleteMBBan

void deleteMBBan(long banId)
                 throws com.liferay.portal.SystemException,
                        com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteMBBan

void deleteMBBan(MBBan mbBan)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMBBan

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan getMBBan(long banId)
               throws com.liferay.portal.SystemException,
                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getMBBans

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> getMBBans(int start,
                                              int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMBBansCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getMBBansCount()
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateMBBan

MBBan updateMBBan(MBBan mbBan)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addBan

MBBan addBan(long userId,
             long banUserId,
             ServiceContext serviceContext)
             throws com.liferay.portal.PortalException,
                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkBan

void checkBan(long groupId,
              long banUserId)
              throws com.liferay.portal.PortalException,
                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteBan

void deleteBan(long banUserId,
               ServiceContext serviceContext)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteBansByBanUserId

void deleteBansByBanUserId(long banUserId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteBansByGroupId

void deleteBansByGroupId(long groupId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

expireBans

void expireBans()
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getBans

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> getBans(long groupId,
                                            int start,
                                            int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getBansCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getBansCount(long groupId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasBan

boolean hasBan(long groupId,
               long banUserId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException