Class MBCategoryLocalServiceWrapper

java.lang.Object
com.liferay.message.boards.service.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>

public class MBCategoryLocalServiceWrapper extends Object implements MBCategoryLocalService, com.liferay.portal.kernel.service.ServiceWrapper<MBCategoryLocalService>
Provides a wrapper for MBCategoryLocalService.
See Also:
Generated:
  • Constructor Details

    • MBCategoryLocalServiceWrapper

      public MBCategoryLocalServiceWrapper()
    • MBCategoryLocalServiceWrapper

      public MBCategoryLocalServiceWrapper(MBCategoryLocalService mbCategoryLocalService)
  • 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:
      addCategory in interface MBCategoryLocalService
      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:
      addCategory in interface MBCategoryLocalService
      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:
      addCategoryResources in interface MBCategoryLocalService
      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:
      addCategoryResources in interface MBCategoryLocalService
      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:
      addCategoryResources in interface MBCategoryLocalService
      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:
      addCategoryResources in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMBCategory

      public MBCategory addMBCategory(MBCategory mbCategory)
      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:
      addMBCategory in interface MBCategoryLocalService
      Parameters:
      mbCategory - the message boards category
      Returns:
      the message boards category that was added
    • createMBCategory

      public MBCategory createMBCategory(long categoryId)
      Creates a new message boards category with the primary key. Does not add the message boards category to the database.
      Specified by:
      createMBCategory in interface MBCategoryLocalService
      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:
      createPersistedModel in interface MBCategoryLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCategories

      public void deleteCategories(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCategories in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCategory

      public void deleteCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCategory in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCategory

      public void deleteCategory(MBCategory category) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCategory in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCategory

      public void deleteCategory(MBCategory category, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCategory in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCategoryByExternalReferenceCode

      public void deleteCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCategoryByExternalReferenceCode in interface MBCategoryLocalService
      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:
      deleteMBCategory in interface MBCategoryLocalService
      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 found
      com.liferay.portal.kernel.exception.PortalException
    • deleteMBCategory

      public MBCategory deleteMBCategory(MBCategory mbCategory)
      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:
      deleteMBCategory in interface MBCategoryLocalService
      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:
      deletePersistedModel in interface MBCategoryLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface MBCategoryLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface MBCategoryLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface MBCategoryLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface MBCategoryLocalService
      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 - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBCategoryModelImpl.

      Specified by:
      dynamicQuery in interface MBCategoryLocalService
      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(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 - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBCategoryModelImpl.

      Specified by:
      dynamicQuery in interface MBCategoryLocalService
      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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface MBCategoryLocalService
      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:
      dynamicQueryCount in interface MBCategoryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchMBCategory

      public MBCategory fetchMBCategory(long categoryId)
      Specified by:
      fetchMBCategory in interface MBCategoryLocalService
    • fetchMBCategory

      public MBCategory fetchMBCategory(long groupId, String friendlyURL)
      Specified by:
      fetchMBCategory in interface MBCategoryLocalService
    • fetchMBCategoryByExternalReferenceCode

      public MBCategory fetchMBCategoryByExternalReferenceCode(String externalReferenceCode, long groupId)
      Specified by:
      fetchMBCategoryByExternalReferenceCode in interface MBCategoryLocalService
    • fetchMBCategoryByUuidAndGroupId

      public MBCategory fetchMBCategoryByUuidAndGroupId(String uuid, long groupId)
      Returns the message boards category matching the UUID and group.
      Specified by:
      fetchMBCategoryByUuidAndGroupId in interface MBCategoryLocalService
      Parameters:
      uuid - the message boards category's UUID
      groupId - the primary key of the group
      Returns:
      the matching message boards category, or null if a matching message boards category could not be found
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface MBCategoryLocalService
    • getCategories

      public List<MBCategory> getCategories(long groupId)
      Specified by:
      getCategories in interface MBCategoryLocalService
    • getCategories

      public List<MBCategory> getCategories(long groupId, int status)
      Specified by:
      getCategories in interface MBCategoryLocalService
    • getCategories

      public List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
      Specified by:
      getCategories in interface MBCategoryLocalService
    • getCategories

      public List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end)
      Specified by:
      getCategories in interface MBCategoryLocalService
    • getCategories

      public List<MBCategory> getCategories(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end)
      Specified by:
      getCategories in interface MBCategoryLocalService
    • getCategories

      public List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int start, int end)
      Specified by:
      getCategories in interface MBCategoryLocalService
    • getCategories

      public List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end)
      Specified by:
      getCategories in interface MBCategoryLocalService
    • getCategories

      public List<MBCategory> getCategories(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end)
      Specified by:
      getCategories in interface MBCategoryLocalService
    • getCategoriesAndThreads

      public List<Object> getCategoriesAndThreads(long groupId, long categoryId)
      Specified by:
      getCategoriesAndThreads in interface MBCategoryLocalService
    • getCategoriesAndThreads

      public List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status)
      Specified by:
      getCategoriesAndThreads in interface MBCategoryLocalService
    • getCategoriesAndThreads

      public List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status, int start, int end)
      Specified by:
      getCategoriesAndThreads in interface MBCategoryLocalService
    • getCategoriesAndThreadsCount

      public int getCategoriesAndThreadsCount(long groupId, long categoryId)
      Specified by:
      getCategoriesAndThreadsCount in interface MBCategoryLocalService
    • getCategoriesAndThreadsCount

      public int getCategoriesAndThreadsCount(long groupId, long categoryId, int status)
      Specified by:
      getCategoriesAndThreadsCount in interface MBCategoryLocalService
    • getCategoriesCount

      public int getCategoriesCount(long groupId)
      Specified by:
      getCategoriesCount in interface MBCategoryLocalService
    • getCategoriesCount

      public int getCategoriesCount(long groupId, int status)
      Specified by:
      getCategoriesCount in interface MBCategoryLocalService
    • getCategoriesCount

      public int getCategoriesCount(long groupId, long parentCategoryId)
      Specified by:
      getCategoriesCount in interface MBCategoryLocalService
    • getCategoriesCount

      public int getCategoriesCount(long groupId, long parentCategoryId, int status)
      Specified by:
      getCategoriesCount in interface MBCategoryLocalService
    • getCategoriesCount

      public int getCategoriesCount(long groupId, long excludedCategoryId, long parentCategoryId, int status)
      Specified by:
      getCategoriesCount in interface MBCategoryLocalService
    • getCategoriesCount

      public int getCategoriesCount(long groupId, long[] parentCategoryIds)
      Specified by:
      getCategoriesCount in interface MBCategoryLocalService
    • getCategoriesCount

      public int getCategoriesCount(long groupId, long[] parentCategoryIds, int status)
      Specified by:
      getCategoriesCount in interface MBCategoryLocalService
    • getCategoriesCount

      public int getCategoriesCount(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status)
      Specified by:
      getCategoriesCount in interface MBCategoryLocalService
    • getCategory

      public MBCategory getCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCategory in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCompanyCategories

      public List<MBCategory> getCompanyCategories(long companyId, int start, int end)
      Specified by:
      getCompanyCategories in interface MBCategoryLocalService
    • getCompanyCategoriesCount

      public int getCompanyCategoriesCount(long companyId)
      Specified by:
      getCompanyCategoriesCount in interface MBCategoryLocalService
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface MBCategoryLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface MBCategoryLocalService
    • getMBCategories

      public List<MBCategory> getMBCategories(int start, int end)
      Returns a range of all the message boards categories.

      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBCategoryModelImpl.

      Specified by:
      getMBCategories in interface MBCategoryLocalService
      Parameters:
      start - the lower bound of the range of message boards categories
      end - the upper bound of the range of message boards categories (not inclusive)
      Returns:
      the range of message boards categories
    • getMBCategoriesByUuidAndCompanyId

      public List<MBCategory> getMBCategoriesByUuidAndCompanyId(String uuid, long companyId)
      Returns all the message boards categories matching the UUID and company.
      Specified by:
      getMBCategoriesByUuidAndCompanyId in interface MBCategoryLocalService
      Parameters:
      uuid - the UUID of the message boards categories
      companyId - 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:
      getMBCategoriesByUuidAndCompanyId in interface MBCategoryLocalService
      Parameters:
      uuid - the UUID of the message boards categories
      companyId - the primary key of the company
      start - the lower bound of the range of message boards categories
      end - the upper bound of the range of message boards categories (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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:
      getMBCategoriesCount in interface MBCategoryLocalService
      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:
      getMBCategory in interface MBCategoryLocalService
      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 found
      com.liferay.portal.kernel.exception.PortalException
    • getMBCategory

      public MBCategory getMBCategory(long groupId, String friendlyURL) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMBCategory in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMBCategoryByExternalReferenceCode

      public MBCategory getMBCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMBCategoryByExternalReferenceCode in interface MBCategoryLocalService
      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:
      getMBCategoryByUuidAndGroupId in interface MBCategoryLocalService
      Parameters:
      uuid - the message boards category's UUID
      groupId - the primary key of the group
      Returns:
      the matching message boards category
      Throws:
      PortalException - if a matching message boards category could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface MBCategoryLocalService
      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:
      getPersistedModel in interface MBCategoryLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getSubcategoryIds

      public List<Long> getSubcategoryIds(List<Long> categoryIds, long groupId, long categoryId)
      Specified by:
      getSubcategoryIds in interface MBCategoryLocalService
    • getSubscribedCategories

      public List<MBCategory> getSubscribedCategories(long groupId, long userId, int start, int end)
      Specified by:
      getSubscribedCategories in interface MBCategoryLocalService
    • getSubscribedCategoriesCount

      public int getSubscribedCategoriesCount(long groupId, long userId)
      Specified by:
      getSubscribedCategoriesCount in interface MBCategoryLocalService
    • moveCategoriesToTrash

      public void moveCategoriesToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveCategoriesToTrash in interface MBCategoryLocalService
      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:
      moveCategory in interface MBCategoryLocalService
      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:
      moveCategoryFromTrash in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveCategoryToTrash

      public MBCategory moveCategoryToTrash(long userId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveCategoryToTrash in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreCategoryFromTrash

      public void restoreCategoryFromTrash(long userId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      restoreCategoryFromTrash in interface MBCategoryLocalService
      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:
      subscribeCategory in interface MBCategoryLocalService
      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:
      unsubscribeCategory in interface MBCategoryLocalService
      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:
      updateCategory in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateMBCategory

      public MBCategory updateMBCategory(MBCategory mbCategory)
      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:
      updateMBCategory in interface MBCategoryLocalService
      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:
      updateStatus in interface MBCategoryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBCategory> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>
      Specified by:
      getCTPersistence in interface MBCategoryLocalService
    • getModelClass

      public Class<MBCategory> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>
      Specified by:
      getModelClass in interface MBCategoryLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBCategory>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>
      Specified by:
      updateWithUnsafeFunction in interface MBCategoryLocalService
      Throws:
      E extends Throwable
    • getWrappedService

      public MBCategoryLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<MBCategoryLocalService>
    • setWrappedService

      public void setWrappedService(MBCategoryLocalService mbCategoryLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<MBCategoryLocalService>