public class MBCategoryLocalServiceImpl extends MBCategoryLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, groupService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadFlagLocalService, mbThreadFlagPersistence, mbThreadLocalService, mbThreadPersistence, mbThreadService, persistedModelLocalServiceRegistry, resourceLocalService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService| Constructor and Description |
|---|
MBCategoryLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portlet.messageboards.model.MBCategory |
addCategory(long userId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext) |
com.liferay.portlet.messageboards.model.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,
com.liferay.portal.service.ServiceContext serviceContext) |
void |
addCategoryResources(long categoryId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addCategoryResources(long categoryId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
void |
addCategoryResources(com.liferay.portlet.messageboards.model.MBCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addCategoryResources(com.liferay.portlet.messageboards.model.MBCategory category,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
void |
deleteCategories(long groupId) |
void |
deleteCategory(long categoryId) |
void |
deleteCategory(com.liferay.portlet.messageboards.model.MBCategory category) |
void |
deleteCategory(com.liferay.portlet.messageboards.model.MBCategory category,
boolean includeTrashedEntries) |
java.util.List<com.liferay.portlet.messageboards.model.MBCategory> |
getCategories(long groupId) |
java.util.List<com.liferay.portlet.messageboards.model.MBCategory> |
getCategories(long groupId,
int status) |
java.util.List<com.liferay.portlet.messageboards.model.MBCategory> |
getCategories(long groupId,
long[] parentCategoryIds,
int start,
int end) |
java.util.List<com.liferay.portlet.messageboards.model.MBCategory> |
getCategories(long groupId,
long[] parentCategoryIds,
int status,
int start,
int end) |
java.util.List<com.liferay.portlet.messageboards.model.MBCategory> |
getCategories(long groupId,
long parentCategoryId,
int start,
int end) |
java.util.List<com.liferay.portlet.messageboards.model.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) |
com.liferay.portlet.messageboards.model.MBCategory |
getCategory(long categoryId) |
java.util.List<com.liferay.portlet.messageboards.model.MBCategory> |
getCompanyCategories(long companyId,
int start,
int end) |
int |
getCompanyCategoriesCount(long companyId) |
protected long |
getParentCategoryId(long groupId,
long parentCategoryId) |
protected long |
getParentCategoryId(com.liferay.portlet.messageboards.model.MBCategory category,
long parentCategoryId) |
java.util.List<java.lang.Long> |
getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
long groupId,
long categoryId) |
java.util.List<com.liferay.portlet.messageboards.model.MBCategory> |
getSubscribedCategories(long groupId,
long userId,
int start,
int end) |
int |
getSubscribedCategoriesCount(long groupId,
long userId) |
protected void |
mergeCategories(com.liferay.portlet.messageboards.model.MBCategory fromCategory,
long toCategoryId) |
void |
moveCategoriesToTrash(long groupId,
long userId) |
com.liferay.portlet.messageboards.model.MBCategory |
moveCategory(long categoryId,
long parentCategoryId,
boolean mergeWithParentCategory) |
com.liferay.portlet.messageboards.model.MBCategory |
moveCategoryFromTrash(long userId,
long categoryId,
long newCategoryId) |
com.liferay.portlet.messageboards.model.MBCategory |
moveCategoryToTrash(long userId,
long categoryId) |
protected void |
moveDependentsToTrash(com.liferay.portal.model.User user,
java.util.List<java.lang.Object> categoriesAndThreads,
long trashEntryId) |
void |
restoreCategoryFromTrash(long userId,
long categoryId) |
protected void |
restoreDependentsFromTrash(com.liferay.portal.model.User user,
java.util.List<java.lang.Object> categoriesAndThreads,
long trashEntryId) |
void |
subscribeCategory(long userId,
long groupId,
long categoryId) |
void |
unsubscribeCategory(long userId,
long groupId,
long categoryId) |
com.liferay.portlet.messageboards.model.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,
com.liferay.portal.service.ServiceContext serviceContext) |
protected void |
updateChildCategoriesDisplayStyle(com.liferay.portlet.messageboards.model.MBCategory category,
java.lang.String displayStyle) |
com.liferay.portlet.messageboards.model.MBCategory |
updateStatus(long userId,
long categoryId,
int status) |
protected void |
validate(java.lang.String name) |
addMBCategory, afterPropertiesSet, createMBCategory, deleteMBCategory, deleteMBCategory, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBCategory, fetchMBCategoryByUuidAndCompanyId, fetchMBCategoryByUuidAndGroupId, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategories, getMBCategoriesCount, getMBCategory, getMBCategoryByUuidAndCompanyId, getMBCategoryByUuidAndGroupId, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadFlagLocalService, setMBThreadFlagPersistence, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateMBCategorypublic com.liferay.portlet.messageboards.model.MBCategory addCategory(long userId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.messageboards.model.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,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addCategoryResources(long categoryId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addCategoryResources(long categoryId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addCategoryResources(com.liferay.portlet.messageboards.model.MBCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addCategoryResources(com.liferay.portlet.messageboards.model.MBCategory category,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteCategories(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteCategory(long categoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException@SystemEvent(action=1,
type=1)
public void deleteCategory(com.liferay.portlet.messageboards.model.MBCategory category)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException@SystemEvent(action=1,
type=1)
public void deleteCategory(com.liferay.portlet.messageboards.model.MBCategory category,
boolean includeTrashedEntries)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId,
int status)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId,
long parentCategoryId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId,
long parentCategoryId,
int status,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId,
long[] parentCategoryIds,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId,
long[] parentCategoryIds,
int status,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<java.lang.Object> getCategoriesAndThreads(long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getCategoriesCount(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getCategoriesCount(long groupId,
int status)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getCategoriesCount(long groupId,
long parentCategoryId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getCategoriesCount(long groupId,
long parentCategoryId,
int status)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getCategoriesCount(long groupId,
long[] parentCategoryIds)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getCategoriesCount(long groupId,
long[] parentCategoryIds,
int status)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.messageboards.model.MBCategory getCategory(long categoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getCompanyCategoriesCount(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<java.lang.Long> getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(long groupId,
long userId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getSubscribedCategoriesCount(long groupId,
long userId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic void moveCategoriesToTrash(long groupId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.messageboards.model.MBCategory moveCategory(long categoryId,
long parentCategoryId,
boolean mergeWithParentCategory)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(long userId,
long categoryId,
long newCategoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(long userId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void restoreCategoryFromTrash(long userId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void subscribeCategory(long userId,
long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void unsubscribeCategory(long userId,
long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.messageboards.model.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,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.messageboards.model.MBCategory updateStatus(long userId,
long categoryId,
int status)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected long getParentCategoryId(long groupId,
long parentCategoryId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected long getParentCategoryId(com.liferay.portlet.messageboards.model.MBCategory category,
long parentCategoryId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected void mergeCategories(com.liferay.portlet.messageboards.model.MBCategory fromCategory,
long toCategoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void moveDependentsToTrash(com.liferay.portal.model.User user,
java.util.List<java.lang.Object> categoriesAndThreads,
long trashEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void restoreDependentsFromTrash(com.liferay.portal.model.User user,
java.util.List<java.lang.Object> categoriesAndThreads,
long trashEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void updateChildCategoriesDisplayStyle(com.liferay.portlet.messageboards.model.MBCategory category,
java.lang.String displayStyle)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void validate(java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException