@ProviderType
public class MBBanLocalServiceUtil
extends Object
MBBanLocalServiceImpl
and is the
primary access point for service operations in application layer code running
on the local server. 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.MBBanLocalService
,
MBBanLocalServiceBaseImpl
,
MBBanLocalServiceImpl
Constructor and Description |
---|
MBBanLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static MBBan |
addBan(long userId,
long banUserId,
ServiceContext serviceContext) |
static MBBan |
addMBBan(MBBan mbBan)
Adds the message boards ban to the database.
|
static void |
checkBan(long groupId,
long banUserId) |
static MBBan |
createMBBan(long banId)
Creates a new message boards ban with the primary key.
|
static void |
deleteBan(long banId) |
static void |
deleteBan(long banUserId,
ServiceContext serviceContext) |
static void |
deleteBan(MBBan ban) |
static void |
deleteBansByBanUserId(long banUserId) |
static void |
deleteBansByGroupId(long groupId) |
static MBBan |
deleteMBBan(long banId)
Deletes the message boards ban with the primary key from the database.
|
static MBBan |
deleteMBBan(MBBan mbBan)
Deletes the message boards ban from the database.
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static DynamicQuery |
dynamicQuery() |
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
static void |
expireBans() |
static MBBan |
fetchMBBan(long banId) |
static MBBan |
fetchMBBanByUuidAndGroupId(String uuid,
long groupId)
Returns the message boards ban matching the UUID and group.
|
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static List<MBBan> |
getBans(long groupId,
int start,
int end) |
static int |
getBansCount(long groupId) |
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static MBBan |
getMBBan(long banId)
Returns the message boards ban with the primary key.
|
static MBBan |
getMBBanByUuidAndGroupId(String uuid,
long groupId)
Returns the message boards ban matching the UUID and group.
|
static List<MBBan> |
getMBBans(int start,
int end)
Returns a range of all the message boards bans.
|
static List<MBBan> |
getMBBansByUuidAndCompanyId(String uuid,
long companyId)
Returns all the message boards bans matching the UUID and company.
|
static List<MBBan> |
getMBBansByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<MBBan> orderByComparator)
Returns a range of message boards bans matching the UUID and company.
|
static int |
getMBBansCount()
Returns the number of message boards bans.
|
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static MBBanLocalService |
getService() |
static boolean |
hasBan(long groupId,
long banUserId) |
static MBBan |
updateMBBan(MBBan mbBan)
Updates the message boards ban in the database or adds it if it does not yet exist.
|
public static MBBan addBan(long userId, long banUserId, ServiceContext serviceContext) throws PortalException
PortalException
public static MBBan addMBBan(MBBan mbBan)
mbBan
- the message boards banpublic static void checkBan(long groupId, long banUserId) throws PortalException
PortalException
public static MBBan createMBBan(long banId)
banId
- the primary key for the new message boards banpublic static void deleteBan(long banId) throws PortalException
PortalException
public static void deleteBan(long banUserId, ServiceContext serviceContext)
public static void deleteBan(MBBan ban)
public static void deleteBansByBanUserId(long banUserId)
public static void deleteBansByGroupId(long groupId)
public static MBBan deleteMBBan(long banId) throws PortalException
banId
- the primary key of the message boards banPortalException
- if a message boards ban with the primary key could not be foundpublic static MBBan deleteMBBan(MBBan mbBan)
mbBan
- the message boards banpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> List<T> dynamicQuery(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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MBBanModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, 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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MBBanModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- 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 static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static void expireBans()
public static MBBan fetchMBBan(long banId)
public static MBBan fetchMBBanByUuidAndGroupId(String uuid, long groupId)
uuid
- the message boards ban's UUIDgroupId
- the primary key of the groupnull
if a matching message boards ban could not be foundpublic static ActionableDynamicQuery getActionableDynamicQuery()
public static List<MBBan> getBans(long groupId, int start, int end)
public static int getBansCount(long groupId)
public static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static MBBan getMBBan(long banId) throws PortalException
banId
- the primary key of the message boards banPortalException
- if a message boards ban with the primary key could not be foundpublic static MBBan getMBBanByUuidAndGroupId(String uuid, long groupId) throws PortalException
uuid
- the message boards ban's UUIDgroupId
- the primary key of the groupPortalException
- if a matching message boards ban could not be foundpublic static 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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MBBanModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of message boards bansend
- the upper bound of the range of message boards bans (not inclusive)public static List<MBBan> getMBBansByUuidAndCompanyId(String uuid, long companyId)
uuid
- the UUID of the message boards banscompanyId
- the primary key of the companypublic static List<MBBan> getMBBansByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<MBBan> orderByComparator)
uuid
- 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 static int getMBBansCount()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static boolean hasBan(long groupId, long banUserId)
public static MBBan updateMBBan(MBBan mbBan)
mbBan
- the message boards banpublic static MBBanLocalService getService()