|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface MBMessageFlagLocalService
The interface for the message boards message flag local service.
Never modify or reference this interface directly. Always use MBMessageFlagLocalServiceUtil
to access the message boards message flag local service. Add custom service methods to MBMessageFlagLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.
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.
MBMessageFlagLocalServiceUtil
,
MBMessageFlagLocalServiceBaseImpl
,
MBMessageFlagLocalServiceImpl
Method Summary | |
---|---|
MBMessageFlag |
addMBMessageFlag(MBMessageFlag mbMessageFlag)
Adds the message boards message flag to the database. |
void |
addQuestionFlag(long messageId)
|
void |
addReadFlags(long userId,
MBThread thread)
|
MBMessageFlag |
createMBMessageFlag(long messageFlagId)
Creates a new message boards message flag with the primary key. |
void |
deleteAnswerFlags(long threadId,
long messageId)
|
void |
deleteFlags(long userId)
|
void |
deleteFlags(long messageId,
int flag)
|
void |
deleteMBMessageFlag(long messageFlagId)
Deletes the message boards message flag with the primary key from the database. |
void |
deleteMBMessageFlag(MBMessageFlag mbMessageFlag)
Deletes the message boards message flag from the database. |
void |
deleteQuestionAndAnswerFlags(long threadId)
|
void |
deleteThreadFlags(long threadId)
|
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
MBMessageFlag |
getMBMessageFlag(long messageFlagId)
Gets the message boards message flag with the primary key. |
List<MBMessageFlag> |
getMBMessageFlags(int start,
int end)
Gets a range of all the message boards message flags. |
int |
getMBMessageFlagsCount()
Gets the number of message boards message flags. |
MBMessageFlag |
getReadFlag(long userId,
MBThread thread)
|
boolean |
hasAnswerFlag(long messageId)
|
boolean |
hasQuestionFlag(long messageId)
|
boolean |
hasReadFlag(long userId,
MBThread thread)
|
MBMessageFlag |
updateMBMessageFlag(MBMessageFlag mbMessageFlag)
Updates the message boards message flag in the database. |
MBMessageFlag |
updateMBMessageFlag(MBMessageFlag mbMessageFlag,
boolean merge)
Updates the message boards message flag in the database. |
Method Detail |
---|
MBMessageFlag addMBMessageFlag(MBMessageFlag mbMessageFlag) throws SystemException
mbMessageFlag
- the message boards message flag to add
SystemException
- if a system exception occurredMBMessageFlag createMBMessageFlag(long messageFlagId)
messageFlagId
- the primary key for the new message boards message flag
void deleteMBMessageFlag(long messageFlagId) throws PortalException, SystemException
messageFlagId
- the primary key of the message boards message flag to delete
PortalException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredvoid deleteMBMessageFlag(MBMessageFlag mbMessageFlag) throws SystemException
mbMessageFlag
- the message boards message flag to delete
SystemException
- if a system exception occurredList dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredList dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredList dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageFlag getMBMessageFlag(long messageFlagId) throws PortalException, SystemException
messageFlagId
- the primary key of the message boards message flag to get
PortalException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessageFlag> getMBMessageFlags(int start, int end) throws SystemException
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.
start
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getMBMessageFlagsCount() throws SystemException
SystemException
- if a system exception occurredMBMessageFlag updateMBMessageFlag(MBMessageFlag mbMessageFlag) throws SystemException
mbMessageFlag
- the message boards message flag to update
SystemException
- if a system exception occurredMBMessageFlag updateMBMessageFlag(MBMessageFlag mbMessageFlag, boolean merge) throws SystemException
mbMessageFlag
- the message boards message flag to updatemerge
- whether to merge the message boards message flag with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredvoid addReadFlags(long userId, MBThread thread) throws PortalException, SystemException
PortalException
SystemException
void addQuestionFlag(long messageId) throws PortalException, SystemException
PortalException
SystemException
void deleteAnswerFlags(long threadId, long messageId) throws SystemException
SystemException
void deleteFlags(long userId) throws SystemException
SystemException
void deleteFlags(long messageId, int flag) throws SystemException
SystemException
void deleteQuestionAndAnswerFlags(long threadId) throws SystemException
SystemException
void deleteThreadFlags(long threadId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageFlag getReadFlag(long userId, MBThread thread) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasAnswerFlag(long messageId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasQuestionFlag(long messageId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasReadFlag(long userId, MBThread thread) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |