@ProviderType public class MBDiscussionLocalServiceWrapper extends Object implements MBDiscussionLocalService, ServiceWrapper<MBDiscussionLocalService>
MBDiscussionLocalService
.MBDiscussionLocalService
Constructor and Description |
---|
MBDiscussionLocalServiceWrapper(MBDiscussionLocalService mbDiscussionLocalService) |
Modifier and Type | Method and Description |
---|---|
MBDiscussion |
addDiscussion(long userId,
long groupId,
long classNameId,
long classPK,
long threadId,
ServiceContext serviceContext) |
MBDiscussion |
addDiscussion(long userId,
long classNameId,
long classPK,
long threadId,
ServiceContext serviceContext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
addDiscussion(long, long, long, long, long, ServiceContext) |
MBDiscussion |
addMBDiscussion(MBDiscussion mbDiscussion)
Adds the message boards discussion to the database.
|
MBDiscussion |
createMBDiscussion(long discussionId)
Creates a new message boards discussion with the primary key.
|
MBDiscussion |
deleteMBDiscussion(long discussionId)
Deletes the message boards discussion with the primary key from the database.
|
MBDiscussion |
deleteMBDiscussion(MBDiscussion mbDiscussion)
Deletes the message boards discussion from the database.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
DynamicQuery |
dynamicQuery() |
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<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.
|
<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.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
MBDiscussion |
fetchDiscussion(long discussionId) |
MBDiscussion |
fetchDiscussion(String className,
long classPK) |
MBDiscussion |
fetchMBDiscussion(long discussionId) |
MBDiscussion |
fetchMBDiscussionByUuidAndGroupId(String uuid,
long groupId)
Returns the message boards discussion matching the UUID and group.
|
MBDiscussion |
fetchThreadDiscussion(long threadId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
MBDiscussion |
getDiscussion(long discussionId) |
MBDiscussion |
getDiscussion(String className,
long classPK) |
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
MBDiscussion |
getMBDiscussion(long discussionId)
Returns the message boards discussion with the primary key.
|
MBDiscussion |
getMBDiscussionByUuidAndGroupId(String uuid,
long groupId)
Returns the message boards discussion matching the UUID and group.
|
List<MBDiscussion> |
getMBDiscussions(int start,
int end)
Returns a range of all the message boards discussions.
|
List<MBDiscussion> |
getMBDiscussionsByUuidAndCompanyId(String uuid,
long companyId)
Returns all the message boards discussions matching the UUID and company.
|
List<MBDiscussion> |
getMBDiscussionsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<MBDiscussion> orderByComparator)
Returns a range of message boards discussions matching the UUID and company.
|
int |
getMBDiscussionsCount()
Returns the number of message boards discussions.
|
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
MBDiscussion |
getThreadDiscussion(long threadId) |
MBDiscussionLocalService |
getWrappedService() |
void |
setWrappedService(MBDiscussionLocalService mbDiscussionLocalService) |
void |
subscribeDiscussion(long userId,
long groupId,
String className,
long classPK) |
void |
unsubscribeDiscussion(long userId,
String className,
long classPK) |
MBDiscussion |
updateMBDiscussion(MBDiscussion mbDiscussion)
Updates the message boards discussion in the database or adds it if it does not yet exist.
|
public MBDiscussionLocalServiceWrapper(MBDiscussionLocalService mbDiscussionLocalService)
public MBDiscussion addDiscussion(long userId, long groupId, long classNameId, long classPK, long threadId, ServiceContext serviceContext) throws PortalException
addDiscussion
in interface MBDiscussionLocalService
PortalException
@Deprecated public MBDiscussion addDiscussion(long userId, long classNameId, long classPK, long threadId, ServiceContext serviceContext) throws PortalException
addDiscussion(long, long, long, long, long, ServiceContext)
addDiscussion
in interface MBDiscussionLocalService
PortalException
public MBDiscussion addMBDiscussion(MBDiscussion mbDiscussion)
addMBDiscussion
in interface MBDiscussionLocalService
mbDiscussion
- the message boards discussionpublic MBDiscussion createMBDiscussion(long discussionId)
createMBDiscussion
in interface MBDiscussionLocalService
discussionId
- the primary key for the new message boards discussionpublic MBDiscussion deleteMBDiscussion(long discussionId) throws PortalException
deleteMBDiscussion
in interface MBDiscussionLocalService
discussionId
- the primary key of the message boards discussionPortalException
- if a message boards discussion with the primary key could not be foundpublic MBDiscussion deleteMBDiscussion(MBDiscussion mbDiscussion)
deleteMBDiscussion
in interface MBDiscussionLocalService
mbDiscussion
- the message boards discussionpublic PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface MBDiscussionLocalService
deletePersistedModel
in interface PersistedModelLocalService
PortalException
public DynamicQuery dynamicQuery()
dynamicQuery
in interface MBDiscussionLocalService
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface MBDiscussionLocalService
dynamicQuery
- the dynamic querypublic <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 MBDiscussionModelImpl
. 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
in interface MBDiscussionLocalService
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 <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 MBDiscussionModelImpl
. 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
in interface MBDiscussionLocalService
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 long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount
in interface MBDiscussionLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface MBDiscussionLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic MBDiscussion fetchDiscussion(long discussionId)
fetchDiscussion
in interface MBDiscussionLocalService
public MBDiscussion fetchDiscussion(String className, long classPK)
fetchDiscussion
in interface MBDiscussionLocalService
public MBDiscussion fetchMBDiscussion(long discussionId)
fetchMBDiscussion
in interface MBDiscussionLocalService
public MBDiscussion fetchMBDiscussionByUuidAndGroupId(String uuid, long groupId)
fetchMBDiscussionByUuidAndGroupId
in interface MBDiscussionLocalService
uuid
- the message boards discussion's UUIDgroupId
- the primary key of the groupnull
if a matching message boards discussion could not be foundpublic MBDiscussion fetchThreadDiscussion(long threadId)
fetchThreadDiscussion
in interface MBDiscussionLocalService
public ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface MBDiscussionLocalService
public MBDiscussion getDiscussion(long discussionId) throws PortalException
getDiscussion
in interface MBDiscussionLocalService
PortalException
public MBDiscussion getDiscussion(String className, long classPK) throws PortalException
getDiscussion
in interface MBDiscussionLocalService
PortalException
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface MBDiscussionLocalService
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface MBDiscussionLocalService
public MBDiscussion getMBDiscussion(long discussionId) throws PortalException
getMBDiscussion
in interface MBDiscussionLocalService
discussionId
- the primary key of the message boards discussionPortalException
- if a message boards discussion with the primary key could not be foundpublic MBDiscussion getMBDiscussionByUuidAndGroupId(String uuid, long groupId) throws PortalException
getMBDiscussionByUuidAndGroupId
in interface MBDiscussionLocalService
uuid
- the message boards discussion's UUIDgroupId
- the primary key of the groupPortalException
- if a matching message boards discussion could not be foundpublic List<MBDiscussion> getMBDiscussions(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 MBDiscussionModelImpl
. 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.
getMBDiscussions
in interface MBDiscussionLocalService
start
- the lower bound of the range of message boards discussionsend
- the upper bound of the range of message boards discussions (not inclusive)public List<MBDiscussion> getMBDiscussionsByUuidAndCompanyId(String uuid, long companyId)
getMBDiscussionsByUuidAndCompanyId
in interface MBDiscussionLocalService
uuid
- the UUID of the message boards discussionscompanyId
- the primary key of the companypublic List<MBDiscussion> getMBDiscussionsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<MBDiscussion> orderByComparator)
getMBDiscussionsByUuidAndCompanyId
in interface MBDiscussionLocalService
uuid
- the UUID of the message boards discussionscompanyId
- the primary key of the companystart
- the lower bound of the range of message boards discussionsend
- the upper bound of the range of message boards discussions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public int getMBDiscussionsCount()
getMBDiscussionsCount
in interface MBDiscussionLocalService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface MBDiscussionLocalService
public PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface MBDiscussionLocalService
getPersistedModel
in interface PersistedModelLocalService
PortalException
public MBDiscussion getThreadDiscussion(long threadId) throws PortalException
getThreadDiscussion
in interface MBDiscussionLocalService
PortalException
public void subscribeDiscussion(long userId, long groupId, String className, long classPK) throws PortalException
subscribeDiscussion
in interface MBDiscussionLocalService
PortalException
public void unsubscribeDiscussion(long userId, String className, long classPK) throws PortalException
unsubscribeDiscussion
in interface MBDiscussionLocalService
PortalException
public MBDiscussion updateMBDiscussion(MBDiscussion mbDiscussion)
updateMBDiscussion
in interface MBDiscussionLocalService
mbDiscussion
- the message boards discussionpublic MBDiscussionLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<MBDiscussionLocalService>
public void setWrappedService(MBDiscussionLocalService mbDiscussionLocalService)
setWrappedService
in interface ServiceWrapper<MBDiscussionLocalService>