public class MBBanLocalServiceWrapper extends java.lang.Object implements MBBanLocalService, com.liferay.portal.kernel.service.ServiceWrapper<MBBanLocalService>
MBBanLocalService.MBBanLocalService| Constructor and Description |
|---|
MBBanLocalServiceWrapper() |
MBBanLocalServiceWrapper(MBBanLocalService mbBanLocalService) |
| Modifier and Type | Method and Description |
|---|---|
MBBan |
addBan(long userId,
long banUserId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
MBBan |
addMBBan(MBBan mbBan)
Adds the message boards ban to the database.
|
void |
checkBan(long groupId,
long banUserId) |
MBBan |
createMBBan(long banId)
Creates a new message boards ban with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
void |
deleteBan(long banId) |
void |
deleteBan(long banUserId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
deleteBan(MBBan ban) |
void |
deleteBansByBanUserId(long banUserId) |
void |
deleteBansByGroupId(long groupId) |
MBBan |
deleteMBBan(long banId)
Deletes the message boards ban with the primary key from the database.
|
MBBan |
deleteMBBan(MBBan mbBan)
Deletes the message boards ban from the database.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
void |
expireBans() |
MBBan |
fetchMBBan(long banId) |
MBBan |
fetchMBBanByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the message boards ban matching the UUID and group.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<MBBan> |
getBans(long groupId,
int start,
int end) |
int |
getBansCount(long groupId) |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBBan> |
getCTPersistence() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
MBBan |
getMBBan(long banId)
Returns the message boards ban with the primary key.
|
MBBan |
getMBBanByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the message boards ban matching the UUID and group.
|
java.util.List<MBBan> |
getMBBans(int start,
int end)
Returns a range of all the message boards bans.
|
java.util.List<MBBan> |
getMBBansByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the message boards bans matching the UUID and company.
|
java.util.List<MBBan> |
getMBBansByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator)
Returns a range of message boards bans matching the UUID and company.
|
int |
getMBBansCount()
Returns the number of message boards bans.
|
java.lang.Class<MBBan> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
MBBanLocalService |
getWrappedService() |
boolean |
hasBan(long groupId,
long banUserId) |
void |
setWrappedService(MBBanLocalService mbBanLocalService) |
MBBan |
updateMBBan(MBBan mbBan)
Updates the message boards ban in the database or adds it if it does not yet exist.
|
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBBan>,R,E> updateUnsafeFunction) |
public MBBanLocalServiceWrapper()
public MBBanLocalServiceWrapper(MBBanLocalService mbBanLocalService)
public MBBan addBan(long userId, long banUserId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addBan in interface MBBanLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBBan addMBBan(MBBan mbBan)
Important: Inspect MBBanLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
addMBBan in interface MBBanLocalServicembBan - the message boards banpublic void checkBan(long groupId,
long banUserId)
throws com.liferay.portal.kernel.exception.PortalException
checkBan in interface MBBanLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBBan createMBBan(long banId)
createMBBan in interface MBBanLocalServicebanId - the primary key for the new message boards banpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface MBBanLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic void deleteBan(long banId)
throws com.liferay.portal.kernel.exception.PortalException
deleteBan in interface MBBanLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteBan(long banUserId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
deleteBan in interface MBBanLocalServicepublic void deleteBan(MBBan ban)
deleteBan in interface MBBanLocalServicepublic void deleteBansByBanUserId(long banUserId)
deleteBansByBanUserId in interface MBBanLocalServicepublic void deleteBansByGroupId(long groupId)
deleteBansByGroupId in interface MBBanLocalServicepublic MBBan deleteMBBan(long banId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect MBBanLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteMBBan in interface MBBanLocalServicebanId - the primary key of the message boards banPortalException - if a message boards ban with the primary key could not be foundpublic MBBan deleteMBBan(MBBan mbBan)
Important: Inspect MBBanLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteMBBan in interface MBBanLocalServicembBan - the message boards banpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface MBBanLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface MBBanLocalServicedslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface MBBanLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface MBBanLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface MBBanLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBBanModelImpl.
dynamicQuery in interface MBBanLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBBanModelImpl.
dynamicQuery in interface MBBanLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface MBBanLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface MBBanLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic void expireBans()
expireBans in interface MBBanLocalServicepublic MBBan fetchMBBan(long banId)
fetchMBBan in interface MBBanLocalServicepublic MBBan fetchMBBanByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchMBBanByUuidAndGroupId in interface MBBanLocalServiceuuid - the message boards ban's UUIDgroupId - the primary key of the groupnull if a matching message boards ban could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface MBBanLocalServicepublic java.util.List<MBBan> getBans(long groupId, int start, int end)
getBans in interface MBBanLocalServicepublic int getBansCount(long groupId)
getBansCount in interface MBBanLocalServicepublic com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface MBBanLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface MBBanLocalServicepublic MBBan getMBBan(long banId) throws com.liferay.portal.kernel.exception.PortalException
getMBBan in interface MBBanLocalServicebanId - the primary key of the message boards banPortalException - if a message boards ban with the primary key could not be foundpublic MBBan getMBBanByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getMBBanByUuidAndGroupId in interface MBBanLocalServiceuuid - the message boards ban's UUIDgroupId - the primary key of the groupPortalException - if a matching message boards ban could not be foundpublic java.util.List<MBBan> getMBBans(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBBanModelImpl.
getMBBans in interface MBBanLocalServicestart - the lower bound of the range of message boards bansend - the upper bound of the range of message boards bans (not inclusive)public java.util.List<MBBan> getMBBansByUuidAndCompanyId(java.lang.String uuid, long companyId)
getMBBansByUuidAndCompanyId in interface MBBanLocalServiceuuid - the UUID of the message boards banscompanyId - the primary key of the companypublic java.util.List<MBBan> getMBBansByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator)
getMBBansByUuidAndCompanyId in interface MBBanLocalServiceuuid - the UUID of the message boards banscompanyId - the primary key of the companystart - the lower bound of the range of message boards bansend - the upper bound of the range of message boards bans (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public int getMBBansCount()
getMBBansCount in interface MBBanLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface MBBanLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface MBBanLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic boolean hasBan(long groupId,
long banUserId)
hasBan in interface MBBanLocalServicepublic MBBan updateMBBan(MBBan mbBan)
Important: Inspect MBBanLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
updateMBBan in interface MBBanLocalServicembBan - the message boards banpublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBBan> getCTPersistence()
getCTPersistence in interface MBBanLocalServicegetCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBBan>public java.lang.Class<MBBan> getModelClass()
getModelClass in interface MBBanLocalServicegetModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBBan>public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBBan>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface MBBanLocalServiceupdateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBBan>E extends java.lang.Throwablepublic MBBanLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<MBBanLocalService>public void setWrappedService(MBBanLocalService mbBanLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<MBBanLocalService>