Liferay 7.0-ce-b4

com.liferay.portlet.messageboards.service.base
Class MBThreadLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, MBThreadLocalService
Direct Known Subclasses:
MBThreadLocalServiceImpl

@ProviderType
public abstract class MBThreadLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements MBThreadLocalService, IdentifiableOSGiService

Provides the base implementation for the message boards thread local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in MBThreadLocalServiceImpl.

See Also:
MBThreadLocalServiceImpl, MBThreadLocalServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  AssetEntryFinder assetEntryFinder
           
protected  AssetEntryLocalService assetEntryLocalService
           
protected  AssetEntryPersistence assetEntryPersistence
           
protected  CounterLocalService counterLocalService
           
protected  GroupFinder groupFinder
           
protected  GroupLocalService groupLocalService
           
protected  GroupPersistence groupPersistence
           
protected  MBCategoryFinder mbCategoryFinder
           
protected  MBCategoryLocalService mbCategoryLocalService
           
protected  MBCategoryPersistence mbCategoryPersistence
           
protected  MBMessageFinder mbMessageFinder
           
protected  MBMessageLocalService mbMessageLocalService
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  MBStatsUserLocalService mbStatsUserLocalService
           
protected  MBStatsUserPersistence mbStatsUserPersistence
           
protected  MBThreadFinder mbThreadFinder
           
protected  MBThreadFlagLocalService mbThreadFlagLocalService
           
protected  MBThreadFlagPersistence mbThreadFlagPersistence
           
protected  MBThreadLocalService mbThreadLocalService
           
protected  MBThreadPersistence mbThreadPersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  RatingsStatsFinder ratingsStatsFinder
           
protected  RatingsStatsLocalService ratingsStatsLocalService
           
protected  RatingsStatsPersistence ratingsStatsPersistence
           
protected  ResourceLocalService resourceLocalService
           
protected  SubscriptionLocalService subscriptionLocalService
           
protected  SubscriptionPersistence subscriptionPersistence
           
protected  TrashEntryLocalService trashEntryLocalService
           
protected  TrashEntryPersistence trashEntryPersistence
           
protected  TrashVersionLocalService trashVersionLocalService
           
protected  TrashVersionPersistence trashVersionPersistence
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
protected  WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService
           
protected  WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
           
 
Constructor Summary
MBThreadLocalServiceBaseImpl()
           
 
Method Summary
 MBThread addMBThread(MBThread mbThread)
          Adds the message boards thread to the database.
 void afterPropertiesSet()
           
 MBThread createMBThread(long threadId)
          Creates a new message boards thread with the primary key.
 MBThread deleteMBThread(long threadId)
          Deletes the message boards thread with the primary key from the database.
 MBThread deleteMBThread(MBThread mbThread)
          Deletes the message boards thread from the database.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void destroy()
           
 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.
 MBThread fetchMBThread(long threadId)
           
 MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
          Returns the message boards thread matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 AssetEntryFinder getAssetEntryFinder()
          Returns the asset entry finder.
 AssetEntryLocalService getAssetEntryLocalService()
          Returns the asset entry local service.
 AssetEntryPersistence getAssetEntryPersistence()
          Returns the asset entry persistence.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 GroupFinder getGroupFinder()
          Returns the group finder.
 GroupLocalService getGroupLocalService()
          Returns the group local service.
 GroupPersistence getGroupPersistence()
          Returns the group persistence.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 MBCategoryFinder getMBCategoryFinder()
          Returns the message boards category finder.
 MBCategoryLocalService getMBCategoryLocalService()
          Returns the message boards category local service.
 MBCategoryPersistence getMBCategoryPersistence()
          Returns the message boards category persistence.
 MBMessageFinder getMBMessageFinder()
          Returns the message-boards message finder.
 MBMessageLocalService getMBMessageLocalService()
          Returns the message-boards message local service.
 MBMessagePersistence getMBMessagePersistence()
          Returns the message-boards message persistence.
 MBStatsUserLocalService getMBStatsUserLocalService()
          Returns the message boards stats user local service.
 MBStatsUserPersistence getMBStatsUserPersistence()
          Returns the message boards stats user persistence.
 MBThread getMBThread(long threadId)
          Returns the message boards thread with the primary key.
 MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
          Returns the message boards thread matching the UUID and group.
 MBThreadFinder getMBThreadFinder()
          Returns the message boards thread finder.
 MBThreadFlagLocalService getMBThreadFlagLocalService()
          Returns the message boards thread flag local service.
 MBThreadFlagPersistence getMBThreadFlagPersistence()
          Returns the message boards thread flag persistence.
 MBThreadLocalService getMBThreadLocalService()
          Returns the message boards thread local service.
 MBThreadPersistence getMBThreadPersistence()
          Returns the message boards thread persistence.
 List<MBThread> getMBThreads(int start, int end)
          Returns a range of all the message boards threads.
 List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid, long companyId)
          Returns all the message boards threads matching the UUID and company.
 List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<MBThread> orderByComparator)
          Returns a range of message boards threads matching the UUID and company.
 int getMBThreadsCount()
          Returns the number of message boards threads.
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 RatingsStatsFinder getRatingsStatsFinder()
          Returns the ratings stats finder.
 RatingsStatsLocalService getRatingsStatsLocalService()
          Returns the ratings stats local service.
 RatingsStatsPersistence getRatingsStatsPersistence()
          Returns the ratings stats persistence.
 ResourceLocalService getResourceLocalService()
          Returns the resource local service.
 SubscriptionLocalService getSubscriptionLocalService()
          Returns the subscription local service.
 SubscriptionPersistence getSubscriptionPersistence()
          Returns the subscription persistence.
 TrashEntryLocalService getTrashEntryLocalService()
          Returns the trash entry local service.
 TrashEntryPersistence getTrashEntryPersistence()
          Returns the trash entry persistence.
 TrashVersionLocalService getTrashVersionLocalService()
          Returns the trash version local service.
 TrashVersionPersistence getTrashVersionPersistence()
          Returns the trash version persistence.
 UserFinder getUserFinder()
          Returns the user finder.
 UserLocalService getUserLocalService()
          Returns the user local service.
 UserPersistence getUserPersistence()
          Returns the user persistence.
 WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService()
          Returns the workflow instance link local service.
 WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence()
          Returns the workflow instance link persistence.
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setAssetEntryFinder(AssetEntryFinder assetEntryFinder)
          Sets the asset entry finder.
 void setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
          Sets the asset entry local service.
 void setAssetEntryPersistence(AssetEntryPersistence assetEntryPersistence)
          Sets the asset entry persistence.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setGroupFinder(GroupFinder groupFinder)
          Sets the group finder.
 void setGroupLocalService(GroupLocalService groupLocalService)
          Sets the group local service.
 void setGroupPersistence(GroupPersistence groupPersistence)
          Sets the group persistence.
 void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder)
          Sets the message boards category finder.
 void setMBCategoryLocalService(MBCategoryLocalService mbCategoryLocalService)
          Sets the message boards category local service.
 void setMBCategoryPersistence(MBCategoryPersistence mbCategoryPersistence)
          Sets the message boards category persistence.
 void setMBMessageFinder(MBMessageFinder mbMessageFinder)
          Sets the message-boards message finder.
 void setMBMessageLocalService(MBMessageLocalService mbMessageLocalService)
          Sets the message-boards message local service.
 void setMBMessagePersistence(MBMessagePersistence mbMessagePersistence)
          Sets the message-boards message persistence.
 void setMBStatsUserLocalService(MBStatsUserLocalService mbStatsUserLocalService)
          Sets the message boards stats user local service.
 void setMBStatsUserPersistence(MBStatsUserPersistence mbStatsUserPersistence)
          Sets the message boards stats user persistence.
 void setMBThreadFinder(MBThreadFinder mbThreadFinder)
          Sets the message boards thread finder.
 void setMBThreadFlagLocalService(MBThreadFlagLocalService mbThreadFlagLocalService)
          Sets the message boards thread flag local service.
 void setMBThreadFlagPersistence(MBThreadFlagPersistence mbThreadFlagPersistence)
          Sets the message boards thread flag persistence.
 void setMBThreadLocalService(MBThreadLocalService mbThreadLocalService)
          Sets the message boards thread local service.
 void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence)
          Sets the message boards thread persistence.
 void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder)
          Sets the ratings stats finder.
 void setRatingsStatsLocalService(RatingsStatsLocalService ratingsStatsLocalService)
          Sets the ratings stats local service.
 void setRatingsStatsPersistence(RatingsStatsPersistence ratingsStatsPersistence)
          Sets the ratings stats persistence.
 void setResourceLocalService(ResourceLocalService resourceLocalService)
          Sets the resource local service.
 void setSubscriptionLocalService(SubscriptionLocalService subscriptionLocalService)
          Sets the subscription local service.
 void setSubscriptionPersistence(SubscriptionPersistence subscriptionPersistence)
          Sets the subscription persistence.
 void setTrashEntryLocalService(TrashEntryLocalService trashEntryLocalService)
          Sets the trash entry local service.
 void setTrashEntryPersistence(TrashEntryPersistence trashEntryPersistence)
          Sets the trash entry persistence.
 void setTrashVersionLocalService(TrashVersionLocalService trashVersionLocalService)
          Sets the trash version local service.
 void setTrashVersionPersistence(TrashVersionPersistence trashVersionPersistence)
          Sets the trash version persistence.
 void setUserFinder(UserFinder userFinder)
          Sets the user finder.
 void setUserLocalService(UserLocalService userLocalService)
          Sets the user local service.
 void setUserPersistence(UserPersistence userPersistence)
          Sets the user persistence.
 void setWorkflowInstanceLinkLocalService(WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService)
          Sets the workflow instance link local service.
 void setWorkflowInstanceLinkPersistence(WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence)
          Sets the workflow instance link persistence.
 MBThread updateMBThread(MBThread mbThread)
          Updates the message boards thread in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.messageboards.service.MBThreadLocalService
addThread, deleteThread, deleteThread, deleteThreads, deleteThreads, fetchThread, getCategoryThreadsCount, getGroupThreads, getGroupThreads, getGroupThreads, getGroupThreads, getGroupThreads, getGroupThreads, getGroupThreads, getGroupThreads, getGroupThreadsCount, getGroupThreadsCount, getGroupThreadsCount, getGroupThreadsCount, getGroupThreadsCount, getGroupThreadsCount, getGroupThreadsCount, getGroupThreadsCount, getNoAssetThreads, getPriorityThreads, getPriorityThreads, getThread, getThreads, getThreadsCount, hasAnswerMessage, incrementViewCounter, moveDependentsToTrash, moveThread, moveThreadFromTrash, moveThreadsToTrash, moveThreadToTrash, moveThreadToTrash, restoreDependentsFromTrash, restoreDependentsFromTrash, restoreThreadFromTrash, search, search, splitThread, updateMessageCount, updateQuestion, updateStatus, updateThread
 

Field Detail

mbThreadLocalService

@BeanReference(type=MBThreadLocalService.class)
protected MBThreadLocalService mbThreadLocalService

mbThreadPersistence

@BeanReference(type=MBThreadPersistence.class)
protected MBThreadPersistence mbThreadPersistence

mbThreadFinder

@BeanReference(type=MBThreadFinder.class)
protected MBThreadFinder mbThreadFinder

counterLocalService

@BeanReference(type=CounterLocalService.class)
protected CounterLocalService counterLocalService

groupLocalService

@BeanReference(type=GroupLocalService.class)
protected GroupLocalService groupLocalService

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

groupFinder

@BeanReference(type=GroupFinder.class)
protected GroupFinder groupFinder

resourceLocalService

@BeanReference(type=ResourceLocalService.class)
protected ResourceLocalService resourceLocalService

subscriptionLocalService

@BeanReference(type=SubscriptionLocalService.class)
protected SubscriptionLocalService subscriptionLocalService

subscriptionPersistence

@BeanReference(type=SubscriptionPersistence.class)
protected SubscriptionPersistence subscriptionPersistence

userLocalService

@BeanReference(type=UserLocalService.class)
protected UserLocalService userLocalService

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

userFinder

@BeanReference(type=UserFinder.class)
protected UserFinder userFinder

workflowInstanceLinkLocalService

@BeanReference(type=WorkflowInstanceLinkLocalService.class)
protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService

workflowInstanceLinkPersistence

@BeanReference(type=WorkflowInstanceLinkPersistence.class)
protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence

assetEntryLocalService

@BeanReference(type=AssetEntryLocalService.class)
protected AssetEntryLocalService assetEntryLocalService

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

assetEntryFinder

@BeanReference(type=AssetEntryFinder.class)
protected AssetEntryFinder assetEntryFinder

mbCategoryLocalService

@BeanReference(type=MBCategoryLocalService.class)
protected MBCategoryLocalService mbCategoryLocalService

mbCategoryPersistence

@BeanReference(type=MBCategoryPersistence.class)
protected MBCategoryPersistence mbCategoryPersistence

mbCategoryFinder

@BeanReference(type=MBCategoryFinder.class)
protected MBCategoryFinder mbCategoryFinder

mbMessageLocalService

@BeanReference(type=MBMessageLocalService.class)
protected MBMessageLocalService mbMessageLocalService

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

mbMessageFinder

@BeanReference(type=MBMessageFinder.class)
protected MBMessageFinder mbMessageFinder

mbStatsUserLocalService

@BeanReference(type=MBStatsUserLocalService.class)
protected MBStatsUserLocalService mbStatsUserLocalService

mbStatsUserPersistence

@BeanReference(type=MBStatsUserPersistence.class)
protected MBStatsUserPersistence mbStatsUserPersistence

ratingsStatsLocalService

@BeanReference(type=RatingsStatsLocalService.class)
protected RatingsStatsLocalService ratingsStatsLocalService

ratingsStatsPersistence

@BeanReference(type=RatingsStatsPersistence.class)
protected RatingsStatsPersistence ratingsStatsPersistence

ratingsStatsFinder

@BeanReference(type=RatingsStatsFinder.class)
protected RatingsStatsFinder ratingsStatsFinder

trashEntryLocalService

@BeanReference(type=TrashEntryLocalService.class)
protected TrashEntryLocalService trashEntryLocalService

trashEntryPersistence

@BeanReference(type=TrashEntryPersistence.class)
protected TrashEntryPersistence trashEntryPersistence

trashVersionLocalService

@BeanReference(type=TrashVersionLocalService.class)
protected TrashVersionLocalService trashVersionLocalService

trashVersionPersistence

@BeanReference(type=TrashVersionPersistence.class)
protected TrashVersionPersistence trashVersionPersistence

mbThreadFlagLocalService

@BeanReference(type=MBThreadFlagLocalService.class)
protected MBThreadFlagLocalService mbThreadFlagLocalService

mbThreadFlagPersistence

@BeanReference(type=MBThreadFlagPersistence.class)
protected MBThreadFlagPersistence mbThreadFlagPersistence

persistedModelLocalServiceRegistry

@BeanReference(type=PersistedModelLocalServiceRegistry.class)
protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
Constructor Detail

MBThreadLocalServiceBaseImpl

public MBThreadLocalServiceBaseImpl()
Method Detail

addMBThread

@Indexable(type=REINDEX)
public MBThread addMBThread(MBThread mbThread)
Adds the message boards thread to the database. Also notifies the appropriate model listeners.

Specified by:
addMBThread in interface MBThreadLocalService
Parameters:
mbThread - the message boards thread
Returns:
the message boards thread that was added

createMBThread

public MBThread createMBThread(long threadId)
Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.

Specified by:
createMBThread in interface MBThreadLocalService
Parameters:
threadId - the primary key for the new message boards thread
Returns:
the new message boards thread

deleteMBThread

@Indexable(type=DELETE)
public MBThread deleteMBThread(long threadId)
                        throws PortalException
Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteMBThread in interface MBThreadLocalService
Parameters:
threadId - the primary key of the message boards thread
Returns:
the message boards thread that was removed
Throws:
PortalException - if a message boards thread with the primary key could not be found

deleteMBThread

@Indexable(type=DELETE)
public MBThread deleteMBThread(MBThread mbThread)
Deletes the message boards thread from the database. Also notifies the appropriate model listeners.

Specified by:
deleteMBThread in interface MBThreadLocalService
Parameters:
mbThread - the message boards thread
Returns:
the message boards thread that was removed

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface MBThreadLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <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.

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 MBThreadModelImpl. 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.

Specified by:
dynamicQuery in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <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.

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 MBThreadModelImpl. 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.

Specified by:
dynamicQuery in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchMBThread

public MBThread fetchMBThread(long threadId)
Specified by:
fetchMBThread in interface MBThreadLocalService

fetchMBThreadByUuidAndGroupId

public MBThread fetchMBThreadByUuidAndGroupId(String uuid,
                                              long groupId)
Returns the message boards thread matching the UUID and group.

Specified by:
fetchMBThreadByUuidAndGroupId in interface MBThreadLocalService
Parameters:
uuid - the message boards thread's UUID
groupId - the primary key of the group
Returns:
the matching message boards thread, or null if a matching message boards thread could not be found

getMBThread

public MBThread getMBThread(long threadId)
                     throws PortalException
Returns the message boards thread with the primary key.

Specified by:
getMBThread in interface MBThreadLocalService
Parameters:
threadId - the primary key of the message boards thread
Returns:
the message boards thread
Throws:
PortalException - if a message boards thread with the primary key could not be found

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface MBThreadLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface MBThreadLocalService

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface MBThreadLocalService

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface MBThreadLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface MBThreadLocalService
Throws:
PortalException

getMBThreadsByUuidAndCompanyId

public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
                                                     long companyId)
Returns all the message boards threads matching the UUID and company.

Specified by:
getMBThreadsByUuidAndCompanyId in interface MBThreadLocalService
Parameters:
uuid - the UUID of the message boards threads
companyId - the primary key of the company
Returns:
the matching message boards threads, or an empty list if no matches were found

getMBThreadsByUuidAndCompanyId

public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
                                                     long companyId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<MBThread> orderByComparator)
Returns a range of message boards threads matching the UUID and company.

Specified by:
getMBThreadsByUuidAndCompanyId in interface MBThreadLocalService
Parameters:
uuid - the UUID of the message boards threads
companyId - the primary key of the company
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching message boards threads, or an empty list if no matches were found

getMBThreadByUuidAndGroupId

public MBThread getMBThreadByUuidAndGroupId(String uuid,
                                            long groupId)
                                     throws PortalException
Returns the message boards thread matching the UUID and group.

Specified by:
getMBThreadByUuidAndGroupId in interface MBThreadLocalService
Parameters:
uuid - the message boards thread's UUID
groupId - the primary key of the group
Returns:
the matching message boards thread
Throws:
PortalException - if a matching message boards thread could not be found

getMBThreads

public List<MBThread> getMBThreads(int start,
                                   int end)
Returns a range of all the message boards threads.

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 MBThreadModelImpl. 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.

Specified by:
getMBThreads in interface MBThreadLocalService
Parameters:
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of message boards threads

getMBThreadsCount

public int getMBThreadsCount()
Returns the number of message boards threads.

Specified by:
getMBThreadsCount in interface MBThreadLocalService
Returns:
the number of message boards threads

updateMBThread

@Indexable(type=REINDEX)
public MBThread updateMBThread(MBThread mbThread)
Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateMBThread in interface MBThreadLocalService
Parameters:
mbThread - the message boards thread
Returns:
the message boards thread that was updated

getMBThreadLocalService

public MBThreadLocalService getMBThreadLocalService()
Returns the message boards thread local service.

Returns:
the message boards thread local service

setMBThreadLocalService

public void setMBThreadLocalService(MBThreadLocalService mbThreadLocalService)
Sets the message boards thread local service.

Parameters:
mbThreadLocalService - the message boards thread local service

getMBThreadPersistence

public MBThreadPersistence getMBThreadPersistence()
Returns the message boards thread persistence.

Returns:
the message boards thread persistence

setMBThreadPersistence

public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence)
Sets the message boards thread persistence.

Parameters:
mbThreadPersistence - the message boards thread persistence

getMBThreadFinder

public MBThreadFinder getMBThreadFinder()
Returns the message boards thread finder.

Returns:
the message boards thread finder

setMBThreadFinder

public void setMBThreadFinder(MBThreadFinder mbThreadFinder)
Sets the message boards thread finder.

Parameters:
mbThreadFinder - the message boards thread finder

getCounterLocalService

public CounterLocalService getCounterLocalService()
Returns the counter local service.

Returns:
the counter local service

setCounterLocalService

public void setCounterLocalService(CounterLocalService counterLocalService)
Sets the counter local service.

Parameters:
counterLocalService - the counter local service

getGroupLocalService

public GroupLocalService getGroupLocalService()
Returns the group local service.

Returns:
the group local service

setGroupLocalService

public void setGroupLocalService(GroupLocalService groupLocalService)
Sets the group local service.

Parameters:
groupLocalService - the group local service

getGroupPersistence

public GroupPersistence getGroupPersistence()
Returns the group persistence.

Returns:
the group persistence

setGroupPersistence

public void setGroupPersistence(GroupPersistence groupPersistence)
Sets the group persistence.

Parameters:
groupPersistence - the group persistence

getGroupFinder

public GroupFinder getGroupFinder()
Returns the group finder.

Returns:
the group finder

setGroupFinder

public void setGroupFinder(GroupFinder groupFinder)
Sets the group finder.

Parameters:
groupFinder - the group finder

getResourceLocalService

public ResourceLocalService getResourceLocalService()
Returns the resource local service.

Returns:
the resource local service

setResourceLocalService

public void setResourceLocalService(ResourceLocalService resourceLocalService)
Sets the resource local service.

Parameters:
resourceLocalService - the resource local service

getSubscriptionLocalService

public SubscriptionLocalService getSubscriptionLocalService()
Returns the subscription local service.

Returns:
the subscription local service

setSubscriptionLocalService

public void setSubscriptionLocalService(SubscriptionLocalService subscriptionLocalService)
Sets the subscription local service.

Parameters:
subscriptionLocalService - the subscription local service

getSubscriptionPersistence

public SubscriptionPersistence getSubscriptionPersistence()
Returns the subscription persistence.

Returns:
the subscription persistence

setSubscriptionPersistence

public void setSubscriptionPersistence(SubscriptionPersistence subscriptionPersistence)
Sets the subscription persistence.

Parameters:
subscriptionPersistence - the subscription persistence

getUserLocalService

public UserLocalService getUserLocalService()
Returns the user local service.

Returns:
the user local service

setUserLocalService

public void setUserLocalService(UserLocalService userLocalService)
Sets the user local service.

Parameters:
userLocalService - the user local service

getUserPersistence

public UserPersistence getUserPersistence()
Returns the user persistence.

Returns:
the user persistence

setUserPersistence

public void setUserPersistence(UserPersistence userPersistence)
Sets the user persistence.

Parameters:
userPersistence - the user persistence

getUserFinder

public UserFinder getUserFinder()
Returns the user finder.

Returns:
the user finder

setUserFinder

public void setUserFinder(UserFinder userFinder)
Sets the user finder.

Parameters:
userFinder - the user finder

getWorkflowInstanceLinkLocalService

public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService()
Returns the workflow instance link local service.

Returns:
the workflow instance link local service

setWorkflowInstanceLinkLocalService

public void setWorkflowInstanceLinkLocalService(WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService)
Sets the workflow instance link local service.

Parameters:
workflowInstanceLinkLocalService - the workflow instance link local service

getWorkflowInstanceLinkPersistence

public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence()
Returns the workflow instance link persistence.

Returns:
the workflow instance link persistence

setWorkflowInstanceLinkPersistence

public void setWorkflowInstanceLinkPersistence(WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence)
Sets the workflow instance link persistence.

Parameters:
workflowInstanceLinkPersistence - the workflow instance link persistence

getAssetEntryLocalService

public AssetEntryLocalService getAssetEntryLocalService()
Returns the asset entry local service.

Returns:
the asset entry local service

setAssetEntryLocalService

public void setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
Sets the asset entry local service.

Parameters:
assetEntryLocalService - the asset entry local service

getAssetEntryPersistence

public AssetEntryPersistence getAssetEntryPersistence()
Returns the asset entry persistence.

Returns:
the asset entry persistence

setAssetEntryPersistence

public void setAssetEntryPersistence(AssetEntryPersistence assetEntryPersistence)
Sets the asset entry persistence.

Parameters:
assetEntryPersistence - the asset entry persistence

getAssetEntryFinder

public AssetEntryFinder getAssetEntryFinder()
Returns the asset entry finder.

Returns:
the asset entry finder

setAssetEntryFinder

public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder)
Sets the asset entry finder.

Parameters:
assetEntryFinder - the asset entry finder

getMBCategoryLocalService

public MBCategoryLocalService getMBCategoryLocalService()
Returns the message boards category local service.

Returns:
the message boards category local service

setMBCategoryLocalService

public void setMBCategoryLocalService(MBCategoryLocalService mbCategoryLocalService)
Sets the message boards category local service.

Parameters:
mbCategoryLocalService - the message boards category local service

getMBCategoryPersistence

public MBCategoryPersistence getMBCategoryPersistence()
Returns the message boards category persistence.

Returns:
the message boards category persistence

setMBCategoryPersistence

public void setMBCategoryPersistence(MBCategoryPersistence mbCategoryPersistence)
Sets the message boards category persistence.

Parameters:
mbCategoryPersistence - the message boards category persistence

getMBCategoryFinder

public MBCategoryFinder getMBCategoryFinder()
Returns the message boards category finder.

Returns:
the message boards category finder

setMBCategoryFinder

public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder)
Sets the message boards category finder.

Parameters:
mbCategoryFinder - the message boards category finder

getMBMessageLocalService

public MBMessageLocalService getMBMessageLocalService()
Returns the message-boards message local service.

Returns:
the message-boards message local service

setMBMessageLocalService

public void setMBMessageLocalService(MBMessageLocalService mbMessageLocalService)
Sets the message-boards message local service.

Parameters:
mbMessageLocalService - the message-boards message local service

getMBMessagePersistence

public MBMessagePersistence getMBMessagePersistence()
Returns the message-boards message persistence.

Returns:
the message-boards message persistence

setMBMessagePersistence

public void setMBMessagePersistence(MBMessagePersistence mbMessagePersistence)
Sets the message-boards message persistence.

Parameters:
mbMessagePersistence - the message-boards message persistence

getMBMessageFinder

public MBMessageFinder getMBMessageFinder()
Returns the message-boards message finder.

Returns:
the message-boards message finder

setMBMessageFinder

public void setMBMessageFinder(MBMessageFinder mbMessageFinder)
Sets the message-boards message finder.

Parameters:
mbMessageFinder - the message-boards message finder

getMBStatsUserLocalService

public MBStatsUserLocalService getMBStatsUserLocalService()
Returns the message boards stats user local service.

Returns:
the message boards stats user local service

setMBStatsUserLocalService

public void setMBStatsUserLocalService(MBStatsUserLocalService mbStatsUserLocalService)
Sets the message boards stats user local service.

Parameters:
mbStatsUserLocalService - the message boards stats user local service

getMBStatsUserPersistence

public MBStatsUserPersistence getMBStatsUserPersistence()
Returns the message boards stats user persistence.

Returns:
the message boards stats user persistence

setMBStatsUserPersistence

public void setMBStatsUserPersistence(MBStatsUserPersistence mbStatsUserPersistence)
Sets the message boards stats user persistence.

Parameters:
mbStatsUserPersistence - the message boards stats user persistence

getRatingsStatsLocalService

public RatingsStatsLocalService getRatingsStatsLocalService()
Returns the ratings stats local service.

Returns:
the ratings stats local service

setRatingsStatsLocalService

public void setRatingsStatsLocalService(RatingsStatsLocalService ratingsStatsLocalService)
Sets the ratings stats local service.

Parameters:
ratingsStatsLocalService - the ratings stats local service

getRatingsStatsPersistence

public RatingsStatsPersistence getRatingsStatsPersistence()
Returns the ratings stats persistence.

Returns:
the ratings stats persistence

setRatingsStatsPersistence

public void setRatingsStatsPersistence(RatingsStatsPersistence ratingsStatsPersistence)
Sets the ratings stats persistence.

Parameters:
ratingsStatsPersistence - the ratings stats persistence

getRatingsStatsFinder

public RatingsStatsFinder getRatingsStatsFinder()
Returns the ratings stats finder.

Returns:
the ratings stats finder

setRatingsStatsFinder

public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder)
Sets the ratings stats finder.

Parameters:
ratingsStatsFinder - the ratings stats finder

getTrashEntryLocalService

public TrashEntryLocalService getTrashEntryLocalService()
Returns the trash entry local service.

Returns:
the trash entry local service

setTrashEntryLocalService

public void setTrashEntryLocalService(TrashEntryLocalService trashEntryLocalService)
Sets the trash entry local service.

Parameters:
trashEntryLocalService - the trash entry local service

getTrashEntryPersistence

public TrashEntryPersistence getTrashEntryPersistence()
Returns the trash entry persistence.

Returns:
the trash entry persistence

setTrashEntryPersistence

public void setTrashEntryPersistence(TrashEntryPersistence trashEntryPersistence)
Sets the trash entry persistence.

Parameters:
trashEntryPersistence - the trash entry persistence

getTrashVersionLocalService

public TrashVersionLocalService getTrashVersionLocalService()
Returns the trash version local service.

Returns:
the trash version local service

setTrashVersionLocalService

public void setTrashVersionLocalService(TrashVersionLocalService trashVersionLocalService)
Sets the trash version local service.

Parameters:
trashVersionLocalService - the trash version local service

getTrashVersionPersistence

public TrashVersionPersistence getTrashVersionPersistence()
Returns the trash version persistence.

Returns:
the trash version persistence

setTrashVersionPersistence

public void setTrashVersionPersistence(TrashVersionPersistence trashVersionPersistence)
Sets the trash version persistence.

Parameters:
trashVersionPersistence - the trash version persistence

getMBThreadFlagLocalService

public MBThreadFlagLocalService getMBThreadFlagLocalService()
Returns the message boards thread flag local service.

Returns:
the message boards thread flag local service

setMBThreadFlagLocalService

public void setMBThreadFlagLocalService(MBThreadFlagLocalService mbThreadFlagLocalService)
Sets the message boards thread flag local service.

Parameters:
mbThreadFlagLocalService - the message boards thread flag local service

getMBThreadFlagPersistence

public MBThreadFlagPersistence getMBThreadFlagPersistence()
Returns the message boards thread flag persistence.

Returns:
the message boards thread flag persistence

setMBThreadFlagPersistence

public void setMBThreadFlagPersistence(MBThreadFlagPersistence mbThreadFlagPersistence)
Sets the message boards thread flag persistence.

Parameters:
mbThreadFlagPersistence - the message boards thread flag persistence

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface IdentifiableOSGiService
Specified by:
getOSGiServiceIdentifier in interface MBThreadLocalService
Returns:
the OSGi service identifier

getModelClass

protected Class<?> getModelClass()

getModelClassName

protected String getModelClassName()

runSQL

protected void runSQL(String sql)
Performs a SQL query.

Parameters:
sql - the sql query

Liferay 7.0-ce-b4