Class MBCategoryLocalServiceWrapper
- All Implemented Interfaces:
MBCategoryLocalService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.ServiceWrapper<MBCategoryLocalService>
MBCategoryLocalService.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionMBCategoryLocalServiceWrapper(MBCategoryLocalService mbCategoryLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddCategory(String externalReferenceCode, long userId, long parentCategoryId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) addCategory(String externalReferenceCode, long userId, long parentCategoryId, String name, String description, String displayStyle, String emailAddress, String inProtocol, String inServerName, int inServerPort, boolean inUseSSL, String inUserName, String inPassword, int inReadInterval, String outEmailAddress, boolean outCustom, String outServerName, int outServerPort, boolean outUseSSL, String outUserName, String outPassword, boolean allowAnonymous, boolean mailingListActive, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidaddCategoryResources(long categoryId, boolean addGroupPermissions, boolean addGuestPermissions) voidaddCategoryResources(long categoryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) voidaddCategoryResources(MBCategory category, boolean addGroupPermissions, boolean addGuestPermissions) voidaddCategoryResources(MBCategory category, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) addMBCategory(MBCategory mbCategory) Adds the message boards category to the database.createMBCategory(long categoryId) Creates a new message boards category with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) voiddeleteCategories(long groupId) voiddeleteCategory(long categoryId) voiddeleteCategory(MBCategory category) voiddeleteCategory(MBCategory category, boolean includeTrashedEntries) voiddeleteCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) deleteMBCategory(long categoryId) Deletes the message boards category with the primary key from the database.deleteMBCategory(MBCategory mbCategory) Deletes the message boards category from the database.com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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.<T> 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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.fetchMBCategory(long categoryId) fetchMBCategory(long groupId, String friendlyURL) fetchMBCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) fetchMBCategoryByUuidAndGroupId(String uuid, long groupId) Returns the message boards category matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.BasePersistence<?>getCategories(long groupId) getCategories(long groupId, int status) getCategories(long groupId, long[] parentCategoryIds, int start, int end) getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end) getCategories(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end) getCategories(long groupId, long parentCategoryId, int start, int end) getCategories(long groupId, long parentCategoryId, int status, int start, int end) getCategories(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end) getCategoriesAndThreads(long groupId, long categoryId) getCategoriesAndThreads(long groupId, long categoryId, int status) getCategoriesAndThreads(long groupId, long categoryId, int status, int start, int end) intgetCategoriesAndThreadsCount(long groupId, long categoryId) intgetCategoriesAndThreadsCount(long groupId, long categoryId, int status) intgetCategoriesCount(long groupId) intgetCategoriesCount(long groupId, int status) intgetCategoriesCount(long groupId, long parentCategoryId) intgetCategoriesCount(long groupId, long[] parentCategoryIds) intgetCategoriesCount(long groupId, long[] parentCategoryIds, int status) intgetCategoriesCount(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status) intgetCategoriesCount(long groupId, long parentCategoryId, int status) intgetCategoriesCount(long groupId, long excludedCategoryId, long parentCategoryId, int status) getCategory(long categoryId) getCompanyCategories(long companyId, int start, int end) intgetCompanyCategoriesCount(long companyId) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBCategory>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerygetMBCategories(int start, int end) Returns a range of all the message boards categories.getMBCategoriesByUuidAndCompanyId(String uuid, long companyId) Returns all the message boards categories matching the UUID and company.getMBCategoriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBCategory> orderByComparator) Returns a range of message boards categories matching the UUID and company.intReturns the number of message boards categories.getMBCategory(long categoryId) Returns the message boards category with the primary key.getMBCategory(long groupId, String friendlyURL) getMBCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) getMBCategoryByUuidAndGroupId(String uuid, long groupId) Returns the message boards category matching the UUID and group.Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) getSubcategoryIds(List<Long> categoryIds, long groupId, long categoryId) getSubscribedCategories(long groupId, long userId, int start, int end) intgetSubscribedCategoriesCount(long groupId, long userId) voidmoveCategoriesToTrash(long groupId, long userId) moveCategory(long categoryId, long parentCategoryId, boolean mergeWithParentCategory) moveCategoryFromTrash(long userId, long categoryId, long newCategoryId) moveCategoryToTrash(long userId, long categoryId) voidrestoreCategoryFromTrash(long userId, long categoryId) voidsetWrappedService(MBCategoryLocalService mbCategoryLocalService) voidsubscribeCategory(long userId, long groupId, long categoryId) voidunsubscribeCategory(long userId, long groupId, long categoryId) updateCategory(long categoryId, long parentCategoryId, String name, String description, String displayStyle, String emailAddress, String inProtocol, String inServerName, int inServerPort, boolean inUseSSL, String inUserName, String inPassword, int inReadInterval, String outEmailAddress, boolean outCustom, String outServerName, int outServerPort, boolean outUseSSL, String outUserName, String outPassword, boolean allowAnonymous, boolean mailingListActive, boolean mergeWithParentCategory, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateMBCategory(MBCategory mbCategory) Updates the message boards category in the database or adds it if it does not yet exist.updateStatus(long userId, long categoryId, int status) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBCategory>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
MBCategoryLocalServiceWrapper
public MBCategoryLocalServiceWrapper() -
MBCategoryLocalServiceWrapper
-
-
Method Details
-
addCategory
public MBCategory addCategory(String externalReferenceCode, long userId, long parentCategoryId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategory
public MBCategory addCategory(String externalReferenceCode, long userId, long parentCategoryId, String name, String description, String displayStyle, String emailAddress, String inProtocol, String inServerName, int inServerPort, boolean inUseSSL, String inUserName, String inPassword, int inReadInterval, String outEmailAddress, boolean outCustom, String outServerName, int outServerPort, boolean outUseSSL, String outUserName, String outPassword, boolean allowAnonymous, boolean mailingListActive, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategoryResources
public void addCategoryResources(long categoryId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCategoryResourcesin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategoryResources
public void addCategoryResources(long categoryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCategoryResourcesin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategoryResources
public void addCategoryResources(MBCategory category, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCategoryResourcesin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategoryResources
public void addCategoryResources(MBCategory category, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCategoryResourcesin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMBCategory
Adds the message boards category to the database. Also notifies the appropriate model listeners.Important: Inspect MBCategoryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addMBCategoryin interfaceMBCategoryLocalService- Parameters:
mbCategory- the message boards category- Returns:
- the message boards category that was added
-
createMBCategory
Creates a new message boards category with the primary key. Does not add the message boards category to the database.- Specified by:
createMBCategoryin interfaceMBCategoryLocalService- Parameters:
categoryId- the primary key for the new message boards category- Returns:
- the new message boards category
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfaceMBCategoryLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
deleteCategories
public void deleteCategories(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCategoriesin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public void deleteCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public void deleteCategory(MBCategory category) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public void deleteCategory(MBCategory category, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategoryByExternalReferenceCode
public void deleteCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCategoryByExternalReferenceCodein interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMBCategory
public MBCategory deleteMBCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException Deletes the message boards category with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect MBCategoryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteMBCategoryin interfaceMBCategoryLocalService- Parameters:
categoryId- the primary key of the message boards category- Returns:
- the message boards category that was removed
- Throws:
PortalException- if a message boards category with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteMBCategory
Deletes the message boards category from the database. Also notifies the appropriate model listeners.Important: Inspect MBCategoryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteMBCategoryin interfaceMBCategoryLocalService- Parameters:
mbCategory- the message boards category- Returns:
- the message boards category that was removed
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModelin interfaceMBCategoryLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceMBCategoryLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceMBCategoryLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceMBCategoryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceMBCategoryLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBCategoryModelImpl.- Specified by:
dynamicQueryin interfaceMBCategoryLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBCategoryModelImpl.- Specified by:
dynamicQueryin interfaceMBCategoryLocalService- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceMBCategoryLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCountin interfaceMBCategoryLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchMBCategory
- Specified by:
fetchMBCategoryin interfaceMBCategoryLocalService
-
fetchMBCategory
- Specified by:
fetchMBCategoryin interfaceMBCategoryLocalService
-
fetchMBCategoryByExternalReferenceCode
public MBCategory fetchMBCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchMBCategoryByExternalReferenceCodein interfaceMBCategoryLocalService
-
fetchMBCategoryByUuidAndGroupId
Returns the message boards category matching the UUID and group.- Specified by:
fetchMBCategoryByUuidAndGroupIdin interfaceMBCategoryLocalService- Parameters:
uuid- the message boards category's UUIDgroupId- the primary key of the group- Returns:
- the matching message boards category, or
nullif a matching message boards category could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfaceMBCategoryLocalService
-
getCategories
- Specified by:
getCategoriesin interfaceMBCategoryLocalService
-
getCategories
- Specified by:
getCategoriesin interfaceMBCategoryLocalService
-
getCategories
- Specified by:
getCategoriesin interfaceMBCategoryLocalService
-
getCategories
public List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end) - Specified by:
getCategoriesin interfaceMBCategoryLocalService
-
getCategories
public List<MBCategory> getCategories(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end) - Specified by:
getCategoriesin interfaceMBCategoryLocalService
-
getCategories
- Specified by:
getCategoriesin interfaceMBCategoryLocalService
-
getCategories
public List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end) - Specified by:
getCategoriesin interfaceMBCategoryLocalService
-
getCategories
public List<MBCategory> getCategories(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end) - Specified by:
getCategoriesin interfaceMBCategoryLocalService
-
getCategoriesAndThreads
- Specified by:
getCategoriesAndThreadsin interfaceMBCategoryLocalService
-
getCategoriesAndThreads
- Specified by:
getCategoriesAndThreadsin interfaceMBCategoryLocalService
-
getCategoriesAndThreads
public List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status, int start, int end) - Specified by:
getCategoriesAndThreadsin interfaceMBCategoryLocalService
-
getCategoriesAndThreadsCount
public int getCategoriesAndThreadsCount(long groupId, long categoryId) - Specified by:
getCategoriesAndThreadsCountin interfaceMBCategoryLocalService
-
getCategoriesAndThreadsCount
public int getCategoriesAndThreadsCount(long groupId, long categoryId, int status) - Specified by:
getCategoriesAndThreadsCountin interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId) - Specified by:
getCategoriesCountin interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, int status) - Specified by:
getCategoriesCountin interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long parentCategoryId) - Specified by:
getCategoriesCountin interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long parentCategoryId, int status) - Specified by:
getCategoriesCountin interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long excludedCategoryId, long parentCategoryId, int status) - Specified by:
getCategoriesCountin interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long[] parentCategoryIds) - Specified by:
getCategoriesCountin interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long[] parentCategoryIds, int status) - Specified by:
getCategoriesCountin interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status) - Specified by:
getCategoriesCountin interfaceMBCategoryLocalService
-
getCategory
public MBCategory getCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCompanyCategories
- Specified by:
getCompanyCategoriesin interfaceMBCategoryLocalService
-
getCompanyCategoriesCount
public int getCompanyCategoriesCount(long companyId) - Specified by:
getCompanyCategoriesCountin interfaceMBCategoryLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceMBCategoryLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceMBCategoryLocalService
-
getMBCategories
Returns a range of all the message boards categories.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBCategoryModelImpl.- Specified by:
getMBCategoriesin interfaceMBCategoryLocalService- Parameters:
start- the lower bound of the range of message boards categoriesend- the upper bound of the range of message boards categories (not inclusive)- Returns:
- the range of message boards categories
-
getMBCategoriesByUuidAndCompanyId
Returns all the message boards categories matching the UUID and company.- Specified by:
getMBCategoriesByUuidAndCompanyIdin interfaceMBCategoryLocalService- Parameters:
uuid- the UUID of the message boards categoriescompanyId- the primary key of the company- Returns:
- the matching message boards categories, or an empty list if no matches were found
-
getMBCategoriesByUuidAndCompanyId
public List<MBCategory> getMBCategoriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBCategory> orderByComparator) Returns a range of message boards categories matching the UUID and company.- Specified by:
getMBCategoriesByUuidAndCompanyIdin interfaceMBCategoryLocalService- Parameters:
uuid- the UUID of the message boards categoriescompanyId- the primary key of the companystart- the lower bound of the range of message boards categoriesend- the upper bound of the range of message boards categories (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching message boards categories, or an empty list if no matches were found
-
getMBCategoriesCount
public int getMBCategoriesCount()Returns the number of message boards categories.- Specified by:
getMBCategoriesCountin interfaceMBCategoryLocalService- Returns:
- the number of message boards categories
-
getMBCategory
public MBCategory getMBCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException Returns the message boards category with the primary key.- Specified by:
getMBCategoryin interfaceMBCategoryLocalService- Parameters:
categoryId- the primary key of the message boards category- Returns:
- the message boards category
- Throws:
PortalException- if a message boards category with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getMBCategory
public MBCategory getMBCategory(long groupId, String friendlyURL) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getMBCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMBCategoryByExternalReferenceCode
public MBCategory getMBCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getMBCategoryByExternalReferenceCodein interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMBCategoryByUuidAndGroupId
public MBCategory getMBCategoryByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the message boards category matching the UUID and group.- Specified by:
getMBCategoryByUuidAndGroupIdin interfaceMBCategoryLocalService- Parameters:
uuid- the message boards category's UUIDgroupId- the primary key of the group- Returns:
- the matching message boards category
- Throws:
PortalException- if a matching message boards category could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceMBCategoryLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModelin interfaceMBCategoryLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
getSubcategoryIds
- Specified by:
getSubcategoryIdsin interfaceMBCategoryLocalService
-
getSubscribedCategories
- Specified by:
getSubscribedCategoriesin interfaceMBCategoryLocalService
-
getSubscribedCategoriesCount
public int getSubscribedCategoriesCount(long groupId, long userId) - Specified by:
getSubscribedCategoriesCountin interfaceMBCategoryLocalService
-
moveCategoriesToTrash
public void moveCategoriesToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveCategoriesToTrashin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCategory
public MBCategory moveCategory(long categoryId, long parentCategoryId, boolean mergeWithParentCategory) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCategoryFromTrash
public MBCategory moveCategoryFromTrash(long userId, long categoryId, long newCategoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveCategoryFromTrashin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCategoryToTrash
public MBCategory moveCategoryToTrash(long userId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveCategoryToTrashin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreCategoryFromTrash
public void restoreCategoryFromTrash(long userId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
restoreCategoryFromTrashin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribeCategory
public void subscribeCategory(long userId, long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
subscribeCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeCategory
public void unsubscribeCategory(long userId, long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
unsubscribeCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCategory
public MBCategory updateCategory(long categoryId, long parentCategoryId, String name, String description, String displayStyle, String emailAddress, String inProtocol, String inServerName, int inServerPort, boolean inUseSSL, String inUserName, String inPassword, int inReadInterval, String outEmailAddress, boolean outCustom, String outServerName, int outServerPort, boolean outUseSSL, String outUserName, String outPassword, boolean allowAnonymous, boolean mailingListActive, boolean mergeWithParentCategory, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCategoryin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateMBCategory
Updates the message boards category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect MBCategoryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateMBCategoryin interfaceMBCategoryLocalService- Parameters:
mbCategory- the message boards category- Returns:
- the message boards category that was updated
-
updateStatus
public MBCategory updateStatus(long userId, long categoryId, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateStatusin interfaceMBCategoryLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBCategory> getCTPersistence()- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>- Specified by:
getCTPersistencein interfaceMBCategoryLocalService
-
getModelClass
- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>- Specified by:
getModelClassin interfaceMBCategoryLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBCategory>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>- Specified by:
updateWithUnsafeFunctionin interfaceMBCategoryLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBCategoryLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBCategoryLocalService>
-