@ProviderType
public class MBMailingListLocalServiceUtil
extends java.lang.Object
com.liferay.message.boards.service.impl.MBMailingListLocalServiceImpl
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.MBMailingListLocalService
,
com.liferay.message.boards.service.base.MBMailingListLocalServiceBaseImpl
,
com.liferay.message.boards.service.impl.MBMailingListLocalServiceImpl
Constructor and Description |
---|
MBMailingListLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static MBMailingList |
addMailingList(long userId,
long groupId,
long categoryId,
java.lang.String emailAddress,
java.lang.String inProtocol,
java.lang.String inServerName,
int inServerPort,
boolean inUseSSL,
java.lang.String inUserName,
java.lang.String inPassword,
int inReadInterval,
java.lang.String outEmailAddress,
boolean outCustom,
java.lang.String outServerName,
int outServerPort,
boolean outUseSSL,
java.lang.String outUserName,
java.lang.String outPassword,
boolean allowAnonymous,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static MBMailingList |
addMBMailingList(MBMailingList mbMailingList)
Adds the message boards mailing list to the database.
|
static MBMailingList |
createMBMailingList(long mailingListId)
Creates a new message boards mailing list with the primary key.
|
static void |
deleteCategoryMailingList(long groupId,
long categoryId) |
static void |
deleteMailingList(long mailingListId) |
static void |
deleteMailingList(MBMailingList mailingList) |
static MBMailingList |
deleteMBMailingList(long mailingListId)
Deletes the message boards mailing list with the primary key from the database.
|
static MBMailingList |
deleteMBMailingList(MBMailingList mbMailingList)
Deletes the message boards mailing list from the database.
|
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <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.
|
static <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.
|
static <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.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static 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.
|
static MBMailingList |
fetchCategoryMailingList(long groupId,
long categoryId) |
static MBMailingList |
fetchMBMailingList(long mailingListId) |
static MBMailingList |
fetchMBMailingListByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the message boards mailing list matching the UUID and group.
|
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static MBMailingList |
getCategoryMailingList(long groupId,
long categoryId) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static MBMailingList |
getMBMailingList(long mailingListId)
Returns the message boards mailing list with the primary key.
|
static MBMailingList |
getMBMailingListByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the message boards mailing list matching the UUID and group.
|
static java.util.List<MBMailingList> |
getMBMailingLists(int start,
int end)
Returns a range of all the message boards mailing lists.
|
static java.util.List<MBMailingList> |
getMBMailingListsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the message boards mailing lists matching the UUID and company.
|
static java.util.List<MBMailingList> |
getMBMailingListsByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
Returns a range of message boards mailing lists matching the UUID and company.
|
static int |
getMBMailingListsCount()
Returns the number of message boards mailing lists.
|
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static MBMailingListLocalService |
getService() |
static MBMailingList |
updateMailingList(long mailingListId,
java.lang.String emailAddress,
java.lang.String inProtocol,
java.lang.String inServerName,
int inServerPort,
boolean inUseSSL,
java.lang.String inUserName,
java.lang.String inPassword,
int inReadInterval,
java.lang.String outEmailAddress,
boolean outCustom,
java.lang.String outServerName,
int outServerPort,
boolean outUseSSL,
java.lang.String outUserName,
java.lang.String outPassword,
boolean allowAnonymous,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static MBMailingList |
updateMBMailingList(MBMailingList mbMailingList)
Updates the message boards mailing list in the database or adds it if it does not yet exist.
|
public static MBMailingList addMailingList(long userId, long groupId, long categoryId, java.lang.String emailAddress, java.lang.String inProtocol, java.lang.String inServerName, int inServerPort, boolean inUseSSL, java.lang.String inUserName, java.lang.String inPassword, int inReadInterval, java.lang.String outEmailAddress, boolean outCustom, java.lang.String outServerName, int outServerPort, boolean outUseSSL, java.lang.String outUserName, java.lang.String outPassword, boolean allowAnonymous, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static MBMailingList addMBMailingList(MBMailingList mbMailingList)
mbMailingList
- the message boards mailing listpublic static MBMailingList createMBMailingList(long mailingListId)
mailingListId
- the primary key for the new message boards mailing listpublic static void deleteCategoryMailingList(long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteMailingList(long mailingListId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteMailingList(MBMailingList mailingList) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static MBMailingList deleteMBMailingList(long mailingListId) throws com.liferay.portal.kernel.exception.PortalException
mailingListId
- the primary key of the message boards mailing listPortalException
- if a message boards mailing list with the primary key could not be foundpublic static MBMailingList deleteMBMailingList(MBMailingList mbMailingList)
mbMailingList
- the message boards mailing listpublic static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <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 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 com.liferay.message.boards.model.impl.MBMailingListModelImpl
. 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> 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 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 com.liferay.message.boards.model.impl.MBMailingListModelImpl
. 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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static MBMailingList fetchCategoryMailingList(long groupId, long categoryId)
public static MBMailingList fetchMBMailingList(long mailingListId)
public static MBMailingList fetchMBMailingListByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the message boards mailing list's UUIDgroupId
- the primary key of the groupnull
if a matching message boards mailing list could not be foundpublic static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static MBMailingList getCategoryMailingList(long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static MBMailingList getMBMailingList(long mailingListId) throws com.liferay.portal.kernel.exception.PortalException
mailingListId
- the primary key of the message boards mailing listPortalException
- if a message boards mailing list with the primary key could not be foundpublic static MBMailingList getMBMailingListByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the message boards mailing list's UUIDgroupId
- the primary key of the groupPortalException
- if a matching message boards mailing list could not be foundpublic static java.util.List<MBMailingList> getMBMailingLists(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 com.liferay.message.boards.model.impl.MBMailingListModelImpl
. 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 mailing listsend
- the upper bound of the range of message boards mailing lists (not inclusive)public static java.util.List<MBMailingList> getMBMailingListsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the message boards mailing listscompanyId
- the primary key of the companypublic static java.util.List<MBMailingList> getMBMailingListsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
uuid
- the UUID of the message boards mailing listscompanyId
- the primary key of the companystart
- the lower bound of the range of message boards mailing listsend
- the upper bound of the range of message boards mailing lists (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getMBMailingListsCount()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static MBMailingList updateMailingList(long mailingListId, java.lang.String emailAddress, java.lang.String inProtocol, java.lang.String inServerName, int inServerPort, boolean inUseSSL, java.lang.String inUserName, java.lang.String inPassword, int inReadInterval, java.lang.String outEmailAddress, boolean outCustom, java.lang.String outServerName, int outServerPort, boolean outUseSSL, java.lang.String outUserName, java.lang.String outPassword, boolean allowAnonymous, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static MBMailingList updateMBMailingList(MBMailingList mbMailingList)
mbMailingList
- the message boards mailing listpublic static MBMailingListLocalService getService()