@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface MBCategoryLocalService extends BaseLocalService, PersistedModelLocalService
MBCategoryLocalServiceUtil,
com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl,
com.liferay.portlet.messageboards.service.impl.MBCategoryLocalServiceImpl| Modifier and Type | Method and Description |
|---|---|
MBCategory |
addCategory(long userId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
MBCategory |
addCategory(long userId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
java.lang.String displayStyle,
java.lang.String emailAddress,
java.lang.String inProtocol,
java.lang.String inServerName,
int inServerPort,
boolean inUseSSL,
java.lang.String inUserName,
java.lang.String inPassword,
int inReadInterval,
java.lang.String outEmailAddress,
boolean outCustom,
java.lang.String outServerName,
int outServerPort,
boolean outUseSSL,
java.lang.String outUserName,
java.lang.String outPassword,
boolean allowAnonymous,
boolean mailingListActive,
ServiceContext serviceContext) |
void |
addCategoryResources(long categoryId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addCategoryResources(long categoryId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
void |
addCategoryResources(MBCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addCategoryResources(MBCategory category,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
MBCategory |
addMBCategory(MBCategory mbCategory)
Adds the message boards category to the database.
|
MBCategory |
createMBCategory(long categoryId)
Creates a new message boards category with the primary key.
|
void |
deleteCategories(long groupId) |
void |
deleteCategory(long categoryId) |
void |
deleteCategory(MBCategory category) |
void |
deleteCategory(MBCategory category,
boolean includeTrashedEntries) |
MBCategory |
deleteMBCategory(long categoryId)
Deletes the message boards category with the primary key from the database.
|
MBCategory |
deleteMBCategory(MBCategory mbCategory)
Deletes the message boards category from the database.
|
DynamicQuery |
dynamicQuery() |
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
MBCategory |
fetchMBCategory(long categoryId) |
MBCategory |
fetchMBCategoryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the message boards category with the matching UUID and company.
|
MBCategory |
fetchMBCategoryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the message boards category matching the UUID and group.
|
java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
java.util.List<MBCategory> |
getCategories(long groupId) |
java.util.List<MBCategory> |
getCategories(long groupId,
int status) |
java.util.List<MBCategory> |
getCategories(long groupId,
long[] parentCategoryIds,
int start,
int end) |
java.util.List<MBCategory> |
getCategories(long groupId,
long[] parentCategoryIds,
int status,
int start,
int end) |
java.util.List<MBCategory> |
getCategories(long groupId,
long parentCategoryId,
int start,
int end) |
java.util.List<MBCategory> |
getCategories(long groupId,
long parentCategoryId,
int status,
int start,
int end) |
java.util.List<java.lang.Object> |
getCategoriesAndThreads(long groupId,
long categoryId) |
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 parentCategoryId,
int status) |
MBCategory |
getCategory(long categoryId) |
java.util.List<MBCategory> |
getCompanyCategories(long companyId,
int start,
int end) |
int |
getCompanyCategoriesCount(long companyId) |
java.util.List<MBCategory> |
getMBCategories(int start,
int end)
Returns a range of all the message boards categories.
|
int |
getMBCategoriesCount()
Returns the number of message boards categories.
|
MBCategory |
getMBCategory(long categoryId)
Returns the message boards category with the primary key.
|
MBCategory |
getMBCategoryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the message boards category with the matching UUID and company.
|
MBCategory |
getMBCategoryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the message boards category matching the UUID and group.
|
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<java.lang.Long> |
getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
long groupId,
long categoryId) |
java.util.List<MBCategory> |
getSubscribedCategories(long groupId,
long userId,
int start,
int end) |
int |
getSubscribedCategoriesCount(long groupId,
long userId) |
void |
moveCategoriesToTrash(long groupId,
long userId) |
MBCategory |
moveCategory(long categoryId,
long parentCategoryId,
boolean mergeWithParentCategory) |
MBCategory |
moveCategoryFromTrash(long userId,
long categoryId,
long newCategoryId) |
MBCategory |
moveCategoryToTrash(long userId,
long categoryId) |
void |
restoreCategoryFromTrash(long userId,
long categoryId) |
void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
subscribeCategory(long userId,
long groupId,
long categoryId) |
void |
unsubscribeCategory(long userId,
long groupId,
long categoryId) |
MBCategory |
updateCategory(long categoryId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
java.lang.String displayStyle,
java.lang.String emailAddress,
java.lang.String inProtocol,
java.lang.String inServerName,
int inServerPort,
boolean inUseSSL,
java.lang.String inUserName,
java.lang.String inPassword,
int inReadInterval,
java.lang.String outEmailAddress,
boolean outCustom,
java.lang.String outServerName,
int outServerPort,
boolean outUseSSL,
java.lang.String outUserName,
java.lang.String outPassword,
boolean allowAnonymous,
boolean mailingListActive,
boolean mergeWithParentCategory,
ServiceContext serviceContext) |
MBCategory |
updateMBCategory(MBCategory mbCategory)
Updates the message boards category in the database or adds it if it does not yet exist.
|
MBCategory |
updateStatus(long userId,
long categoryId,
int status) |
@Indexable(type=REINDEX) MBCategory addMBCategory(MBCategory mbCategory) throws SystemException
mbCategory - the message boards categorySystemException - if a system exception occurredMBCategory createMBCategory(long categoryId)
categoryId - the primary key for the new message boards category@Indexable(type=DELETE) MBCategory deleteMBCategory(long categoryId) throws PortalException, SystemException
categoryId - the primary key of the message boards categoryPortalException - if a message boards category with the primary key could not be foundSystemException - if a system exception occurred@Indexable(type=DELETE) MBCategory deleteMBCategory(MBCategory mbCategory) throws SystemException
mbCategory - the message boards categorySystemException - if a system exception occurredDynamicQuery dynamicQuery()
java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredjava.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)SystemException - if a system exception occurredjava.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBCategory fetchMBCategory(long categoryId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) MBCategory fetchMBCategoryByUuidAndCompanyId(java.lang.String uuid, long companyId) throws SystemException
uuid - the message boards category's UUIDcompanyId - the primary key of the companynull if a matching message boards category could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBCategory fetchMBCategoryByUuidAndGroupId(java.lang.String uuid, long groupId) throws SystemException
uuid - the message boards category's UUIDgroupId - the primary key of the groupnull if a matching message boards category could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBCategory getMBCategory(long categoryId) throws PortalException, SystemException
categoryId - the primary key of the message boards categoryPortalException - if a message boards category with the primary key could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel in interface PersistedModelLocalServicePortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) MBCategory getMBCategoryByUuidAndCompanyId(java.lang.String uuid, long companyId) throws PortalException, SystemException
uuid - the message boards category's UUIDcompanyId - the primary key of the companyPortalException - if a matching message boards category could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBCategory getMBCategoryByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException, SystemException
uuid - the message boards category's UUIDgroupId - the primary key of the groupPortalException - if a matching message boards category could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getMBCategories(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of message boards categoriesend - the upper bound of the range of message boards categories (not inclusive)SystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getMBCategoriesCount() throws SystemException
SystemException - if a system exception occurred@Indexable(type=REINDEX) MBCategory updateMBCategory(MBCategory mbCategory) throws SystemException
mbCategory - the message boards categorySystemException - if a system exception occurredjava.lang.String getBeanIdentifier()
void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanMBCategory addCategory(long userId, long parentCategoryId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionMBCategory addCategory(long userId, long parentCategoryId, java.lang.String name, java.lang.String description, java.lang.String displayStyle, java.lang.String emailAddress, java.lang.String inProtocol, java.lang.String inServerName, int inServerPort, boolean inUseSSL, java.lang.String inUserName, java.lang.String inPassword, int inReadInterval, java.lang.String outEmailAddress, boolean outCustom, java.lang.String outServerName, int outServerPort, boolean outUseSSL, java.lang.String outUserName, java.lang.String outPassword, boolean allowAnonymous, boolean mailingListActive, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionvoid addCategoryResources(long categoryId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid addCategoryResources(long categoryId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid addCategoryResources(MBCategory category, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalExceptionSystemExceptionvoid addCategoryResources(MBCategory category, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws PortalException, SystemException
PortalExceptionSystemExceptionvoid deleteCategories(long groupId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid deleteCategory(long categoryId)
throws PortalException,
SystemException
PortalExceptionSystemException@SystemEvent(action=1, type=1) void deleteCategory(MBCategory category) throws PortalException, SystemException
PortalExceptionSystemException@SystemEvent(action=1, type=1) void deleteCategory(MBCategory category, boolean includeTrashedEntries) throws PortalException, SystemException
PortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getCategories(long groupId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getCategories(long groupId, int status) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int start, int end) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<java.lang.Object> getCategoriesAndThreads(long groupId, long categoryId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoriesCount(long groupId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoriesCount(long groupId, int status) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoriesCount(long groupId, long parentCategoryId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoriesCount(long groupId, long parentCategoryId, int status) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoriesCount(long groupId, long[] parentCategoryIds) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoriesCount(long groupId, long[] parentCategoryIds, int status) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) MBCategory getCategory(long categoryId) throws PortalException, SystemException
PortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getCompanyCategories(long companyId, int start, int end) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyCategoriesCount(long companyId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<java.lang.Long> getSubcategoryIds(java.util.List<java.lang.Long> categoryIds, long groupId, long categoryId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MBCategory> getSubscribedCategories(long groupId, long userId, int start, int end) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) int getSubscribedCategoriesCount(long groupId, long userId) throws SystemException
SystemExceptionvoid moveCategoriesToTrash(long groupId,
long userId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionMBCategory moveCategory(long categoryId, long parentCategoryId, boolean mergeWithParentCategory) throws PortalException, SystemException
PortalExceptionSystemExceptionMBCategory moveCategoryFromTrash(long userId, long categoryId, long newCategoryId) throws PortalException, SystemException
PortalExceptionSystemExceptionMBCategory moveCategoryToTrash(long userId, long categoryId) throws PortalException, SystemException
PortalExceptionSystemExceptionvoid restoreCategoryFromTrash(long userId,
long categoryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid subscribeCategory(long userId,
long groupId,
long categoryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid unsubscribeCategory(long userId,
long groupId,
long categoryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionMBCategory updateCategory(long categoryId, long parentCategoryId, java.lang.String name, java.lang.String description, java.lang.String displayStyle, java.lang.String emailAddress, java.lang.String inProtocol, java.lang.String inServerName, int inServerPort, boolean inUseSSL, java.lang.String inUserName, java.lang.String inPassword, int inReadInterval, java.lang.String outEmailAddress, boolean outCustom, java.lang.String outServerName, int outServerPort, boolean outUseSSL, java.lang.String outUserName, java.lang.String outPassword, boolean allowAnonymous, boolean mailingListActive, boolean mergeWithParentCategory, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionMBCategory updateStatus(long userId, long categoryId, int status) throws PortalException, SystemException
PortalExceptionSystemException