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) void
addCategoryResources
(long categoryId, boolean addGroupPermissions, boolean addGuestPermissions) void
addCategoryResources
(long categoryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) void
addCategoryResources
(MBCategory category, boolean addGroupPermissions, boolean addGuestPermissions) void
addCategoryResources
(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.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) void
deleteCategories
(long groupId) void
deleteCategory
(long categoryId) void
deleteCategory
(MBCategory category) void
deleteCategory
(MBCategory category, boolean includeTrashedEntries) void
deleteCategoryByExternalReferenceCode
(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.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.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.ActionableDynamicQuery
com.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) int
getCategoriesAndThreadsCount
(long groupId, long categoryId) int
getCategoriesAndThreadsCount
(long groupId, long categoryId, int status) int
getCategoriesCount
(long groupId) int
getCategoriesCount
(long groupId, int status) int
getCategoriesCount
(long groupId, long parentCategoryId) int
getCategoriesCount
(long groupId, long[] parentCategoryIds) int
getCategoriesCount
(long groupId, long[] parentCategoryIds, int status) int
getCategoriesCount
(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status) int
getCategoriesCount
(long groupId, long parentCategoryId, int status) int
getCategoriesCount
(long groupId, long excludedCategoryId, long parentCategoryId, int status) getCategory
(long categoryId) getCompanyCategories
(long companyId, int start, int end) int
getCompanyCategoriesCount
(long companyId) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBCategory>
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getMBCategories
(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.int
Returns 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.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) getSubcategoryIds
(List<Long> categoryIds, long groupId, long categoryId) getSubscribedCategories
(long groupId, long userId, int start, int end) int
getSubscribedCategoriesCount
(long groupId, long userId) void
moveCategoriesToTrash
(long groupId, long userId) moveCategory
(long categoryId, long parentCategoryId, boolean mergeWithParentCategory) moveCategoryFromTrash
(long userId, long categoryId, long newCategoryId) moveCategoryToTrash
(long userId, long categoryId) void
restoreCategoryFromTrash
(long userId, long categoryId) void
setWrappedService
(MBCategoryLocalService mbCategoryLocalService) void
subscribeCategory
(long userId, long groupId, long categoryId) void
unsubscribeCategory
(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, wait
Methods 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:
addCategory
in 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:
addCategory
in 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:
addCategoryResources
in 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:
addCategoryResources
in 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:
addCategoryResources
in 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:
addCategoryResources
in 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:
addMBCategory
in 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:
createMBCategory
in 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:
createPersistedModel
in interfaceMBCategoryLocalService
- Specified by:
createPersistedModel
in interfacecom.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 interfaceMBCategoryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public void deleteCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCategory
in interfaceMBCategoryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public void deleteCategory(MBCategory category) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCategory
in 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:
deleteCategory
in 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:
deleteCategoryByExternalReferenceCode
in 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:
deleteMBCategory
in 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:
deleteMBCategory
in 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:
deletePersistedModel
in interfaceMBCategoryLocalService
- Specified by:
deletePersistedModel
in interfacecom.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 interfaceMBCategoryLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceMBCategoryLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceMBCategoryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBCategoryModelImpl
.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBCategoryModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchMBCategory
in interfaceMBCategoryLocalService
-
fetchMBCategory
- Specified by:
fetchMBCategory
in interfaceMBCategoryLocalService
-
fetchMBCategoryByExternalReferenceCode
public MBCategory fetchMBCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchMBCategoryByExternalReferenceCode
in interfaceMBCategoryLocalService
-
fetchMBCategoryByUuidAndGroupId
Returns the message boards category matching the UUID and group.- Specified by:
fetchMBCategoryByUuidAndGroupId
in interfaceMBCategoryLocalService
- Parameters:
uuid
- the message boards category's UUIDgroupId
- 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 interfaceMBCategoryLocalService
-
getCategories
- Specified by:
getCategories
in interfaceMBCategoryLocalService
-
getCategories
- Specified by:
getCategories
in interfaceMBCategoryLocalService
-
getCategories
- Specified by:
getCategories
in interfaceMBCategoryLocalService
-
getCategories
public List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end) - Specified by:
getCategories
in interfaceMBCategoryLocalService
-
getCategories
public List<MBCategory> getCategories(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end) - Specified by:
getCategories
in interfaceMBCategoryLocalService
-
getCategories
- Specified by:
getCategories
in interfaceMBCategoryLocalService
-
getCategories
public List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end) - Specified by:
getCategories
in interfaceMBCategoryLocalService
-
getCategories
public List<MBCategory> getCategories(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end) - Specified by:
getCategories
in interfaceMBCategoryLocalService
-
getCategoriesAndThreads
- Specified by:
getCategoriesAndThreads
in interfaceMBCategoryLocalService
-
getCategoriesAndThreads
- Specified by:
getCategoriesAndThreads
in interfaceMBCategoryLocalService
-
getCategoriesAndThreads
public List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status, int start, int end) - Specified by:
getCategoriesAndThreads
in interfaceMBCategoryLocalService
-
getCategoriesAndThreadsCount
public int getCategoriesAndThreadsCount(long groupId, long categoryId) - Specified by:
getCategoriesAndThreadsCount
in interfaceMBCategoryLocalService
-
getCategoriesAndThreadsCount
public int getCategoriesAndThreadsCount(long groupId, long categoryId, int status) - Specified by:
getCategoriesAndThreadsCount
in interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId) - Specified by:
getCategoriesCount
in interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, int status) - Specified by:
getCategoriesCount
in interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long parentCategoryId) - Specified by:
getCategoriesCount
in interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long parentCategoryId, int status) - Specified by:
getCategoriesCount
in interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long excludedCategoryId, long parentCategoryId, int status) - Specified by:
getCategoriesCount
in interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long[] parentCategoryIds) - Specified by:
getCategoriesCount
in interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long[] parentCategoryIds, int status) - Specified by:
getCategoriesCount
in interfaceMBCategoryLocalService
-
getCategoriesCount
public int getCategoriesCount(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status) - Specified by:
getCategoriesCount
in interfaceMBCategoryLocalService
-
getCategory
public MBCategory getCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCategory
in interfaceMBCategoryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCompanyCategories
- Specified by:
getCompanyCategories
in interfaceMBCategoryLocalService
-
getCompanyCategoriesCount
public int getCompanyCategoriesCount(long companyId) - Specified by:
getCompanyCategoriesCount
in interfaceMBCategoryLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceMBCategoryLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceMBCategoryLocalService
-
getMBCategories
Returns a range of all the message boards categories.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBCategoryModelImpl
.- Specified by:
getMBCategories
in 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:
getMBCategoriesByUuidAndCompanyId
in 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:
getMBCategoriesByUuidAndCompanyId
in 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:
getMBCategoriesCount
in 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:
getMBCategory
in 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:
getMBCategory
in 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:
getMBCategoryByExternalReferenceCode
in 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:
getMBCategoryByUuidAndGroupId
in 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:
getOSGiServiceIdentifier
in 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:
getPersistedModel
in interfaceMBCategoryLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getSubcategoryIds
- Specified by:
getSubcategoryIds
in interfaceMBCategoryLocalService
-
getSubscribedCategories
- Specified by:
getSubscribedCategories
in interfaceMBCategoryLocalService
-
getSubscribedCategoriesCount
public int getSubscribedCategoriesCount(long groupId, long userId) - Specified by:
getSubscribedCategoriesCount
in interfaceMBCategoryLocalService
-
moveCategoriesToTrash
public void moveCategoriesToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveCategoriesToTrash
in 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:
moveCategory
in 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:
moveCategoryFromTrash
in 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:
moveCategoryToTrash
in 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:
restoreCategoryFromTrash
in 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:
subscribeCategory
in 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:
unsubscribeCategory
in 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:
updateCategory
in 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:
updateMBCategory
in 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:
updateStatus
in interfaceMBCategoryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBCategory> getCTPersistence()- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>
- Specified by:
getCTPersistence
in interfaceMBCategoryLocalService
-
getModelClass
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>
- Specified by:
getModelClass
in 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:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBCategory>
- Specified by:
updateWithUnsafeFunction
in interfaceMBCategoryLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBCategoryLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBCategoryLocalService>
-