com.liferay.portlet.messageboards.service.impl
Class MBCategoryLocalServiceImpl
java.lang.Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
com.liferay.portlet.messageboards.service.impl.MBCategoryLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.message.boards.kernel.service.MBCategoryLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
public class MBCategoryLocalServiceImpl
- extends MBCategoryLocalServiceBaseImpl
| Fields inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl |
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, persistedModelLocalServiceRegistry, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence |
|
Method Summary |
com.liferay.message.boards.kernel.model.MBCategory |
addCategory(long userId,
long parentCategoryId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
com.liferay.message.boards.kernel.model.MBCategory |
addCategory(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(com.liferay.message.boards.kernel.model.MBCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addCategoryResources(com.liferay.message.boards.kernel.model.MBCategory category,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
|
void |
deleteCategories(long groupId)
|
void |
deleteCategory(long categoryId)
|
void |
deleteCategory(com.liferay.message.boards.kernel.model.MBCategory category)
|
void |
deleteCategory(com.liferay.message.boards.kernel.model.MBCategory category,
boolean includeTrashedEntries)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(long groupId)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(long groupId,
int status)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(long groupId,
long[] parentCategoryIds,
int start,
int end)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(long groupId,
long[] parentCategoryIds,
int status,
int start,
int end)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status,
int start,
int end)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(long groupId,
long parentCategoryId,
int start,
int end)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(long groupId,
long parentCategoryId,
int status,
int start,
int end)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(long groupId,
long excludedCategoryId,
long parentCategoryId,
int status,
int start,
int end)
|
List<Object> |
getCategoriesAndThreads(long groupId,
long categoryId)
|
List<Object> |
getCategoriesAndThreads(long groupId,
long categoryId,
int status)
|
List<Object> |
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)
|
com.liferay.message.boards.kernel.model.MBCategory |
getCategory(long categoryId)
|
List<com.liferay.message.boards.kernel.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.message.boards.kernel.model.MBCategory category,
long parentCategoryId)
|
List<Long> |
getSubcategoryIds(List<Long> categoryIds,
long groupId,
long categoryId)
|
List<com.liferay.message.boards.kernel.model.MBCategory> |
getSubscribedCategories(long groupId,
long userId,
int start,
int end)
|
int |
getSubscribedCategoriesCount(long groupId,
long userId)
|
protected void |
mergeCategories(com.liferay.message.boards.kernel.model.MBCategory fromCategory,
long toCategoryId)
|
void |
moveCategoriesToTrash(long groupId,
long userId)
|
com.liferay.message.boards.kernel.model.MBCategory |
moveCategory(long categoryId,
long parentCategoryId,
boolean mergeWithParentCategory)
|
com.liferay.message.boards.kernel.model.MBCategory |
moveCategoryFromTrash(long userId,
long categoryId,
long newCategoryId)
|
com.liferay.message.boards.kernel.model.MBCategory |
moveCategoryToTrash(long userId,
long categoryId)
|
protected void |
moveDependentsToTrash(com.liferay.portal.kernel.model.User user,
List<Object> categoriesAndThreads,
long trashEntryId)
|
void |
restoreCategoryFromTrash(long userId,
long categoryId)
|
protected void |
restoreDependentsFromTrash(com.liferay.portal.kernel.model.User user,
List<Object> categoriesAndThreads)
|
void |
subscribeCategory(long userId,
long groupId,
long categoryId)
|
void |
unsubscribeCategory(long userId,
long groupId,
long categoryId)
|
com.liferay.message.boards.kernel.model.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)
|
protected void |
updateChildCategoriesDisplayStyle(com.liferay.message.boards.kernel.model.MBCategory category,
String displayStyle)
|
com.liferay.message.boards.kernel.model.MBCategory |
updateMessageCount(long categoryId)
|
com.liferay.message.boards.kernel.model.MBCategory |
updateStatistics(long categoryId)
|
com.liferay.message.boards.kernel.model.MBCategory |
updateStatus(long userId,
long categoryId,
int status)
|
com.liferay.message.boards.kernel.model.MBCategory |
updateThreadCount(long categoryId)
|
protected void |
validate(String name)
|
| Methods inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl |
addMBCategory, afterPropertiesSet, createMBCategory, deleteMBCategory, deleteMBCategory, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBCategory, fetchMBCategoryByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getMBCategories, getMBCategoriesByUuidAndCompanyId, getMBCategoriesByUuidAndCompanyId, getMBCategoriesCount, getMBCategory, getMBCategoryByUuidAndGroupId, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, updateMBCategory |
| Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl |
getClassLoader, getLocalizationMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBCategoryLocalServiceImpl
public MBCategoryLocalServiceImpl()
addCategory
public com.liferay.message.boards.kernel.model.MBCategory addCategory(long userId,
long parentCategoryId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
addCategory
public com.liferay.message.boards.kernel.model.MBCategory addCategory(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
- Throws:
com.liferay.portal.kernel.exception.PortalException
addCategoryResources
public void addCategoryResources(long categoryId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException
- 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
addCategoryResources
public void addCategoryResources(com.liferay.message.boards.kernel.model.MBCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
addCategoryResources
public void addCategoryResources(com.liferay.message.boards.kernel.model.MBCategory category,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteCategories
public void deleteCategories(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteCategory
public void deleteCategory(long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteCategory
public void deleteCategory(com.liferay.message.boards.kernel.model.MBCategory category)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteCategory
@SystemEvent(action=1,
type=1)
public void deleteCategory(com.liferay.message.boards.kernel.model.MBCategory category,
boolean includeTrashedEntries)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(long groupId)
getCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(long groupId,
int status)
getCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(long groupId,
long parentCategoryId,
int start,
int end)
getCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(long groupId,
long parentCategoryId,
int status,
int start,
int end)
getCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(long groupId,
long excludedCategoryId,
long parentCategoryId,
int status,
int start,
int end)
getCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(long groupId,
long[] parentCategoryIds,
int start,
int end)
getCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(long groupId,
long[] parentCategoryIds,
int status,
int start,
int end)
getCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status,
int start,
int end)
getCategoriesAndThreads
public List<Object> getCategoriesAndThreads(long groupId,
long categoryId)
getCategoriesAndThreads
public List<Object> getCategoriesAndThreads(long groupId,
long categoryId,
int status)
getCategoriesAndThreads
public List<Object> getCategoriesAndThreads(long groupId,
long categoryId,
int status,
int start,
int end)
getCategoriesAndThreadsCount
public int getCategoriesAndThreadsCount(long groupId,
long categoryId)
getCategoriesAndThreadsCount
public int getCategoriesAndThreadsCount(long groupId,
long categoryId,
int status)
getCategoriesCount
public int getCategoriesCount(long groupId)
getCategoriesCount
public int getCategoriesCount(long groupId,
int status)
getCategoriesCount
public int getCategoriesCount(long groupId,
long parentCategoryId)
getCategoriesCount
public int getCategoriesCount(long groupId,
long parentCategoryId,
int status)
getCategoriesCount
public int getCategoriesCount(long groupId,
long excludedCategoryId,
long parentCategoryId,
int status)
getCategoriesCount
public int getCategoriesCount(long groupId,
long[] parentCategoryIds)
getCategoriesCount
public int getCategoriesCount(long groupId,
long[] parentCategoryIds,
int status)
getCategoriesCount
public int getCategoriesCount(long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status)
getCategory
public com.liferay.message.boards.kernel.model.MBCategory getCategory(long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCompanyCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getCompanyCategories(long companyId,
int start,
int end)
getCompanyCategoriesCount
public int getCompanyCategoriesCount(long companyId)
getSubcategoryIds
public List<Long> getSubcategoryIds(List<Long> categoryIds,
long groupId,
long categoryId)
getSubscribedCategories
public List<com.liferay.message.boards.kernel.model.MBCategory> getSubscribedCategories(long groupId,
long userId,
int start,
int end)
getSubscribedCategoriesCount
public int getSubscribedCategoriesCount(long groupId,
long userId)
moveCategoriesToTrash
public void moveCategoriesToTrash(long groupId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveCategory
public com.liferay.message.boards.kernel.model.MBCategory moveCategory(long categoryId,
long parentCategoryId,
boolean mergeWithParentCategory)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveCategoryFromTrash
public com.liferay.message.boards.kernel.model.MBCategory moveCategoryFromTrash(long userId,
long categoryId,
long newCategoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveCategoryToTrash
public com.liferay.message.boards.kernel.model.MBCategory moveCategoryToTrash(long userId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
restoreCategoryFromTrash
public void restoreCategoryFromTrash(long userId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
subscribeCategory
public void subscribeCategory(long userId,
long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
unsubscribeCategory
public void unsubscribeCategory(long userId,
long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateCategory
public com.liferay.message.boards.kernel.model.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
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateMessageCount
public com.liferay.message.boards.kernel.model.MBCategory updateMessageCount(long categoryId)
updateStatistics
public com.liferay.message.boards.kernel.model.MBCategory updateStatistics(long categoryId)
updateStatus
public com.liferay.message.boards.kernel.model.MBCategory updateStatus(long userId,
long categoryId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateThreadCount
public com.liferay.message.boards.kernel.model.MBCategory updateThreadCount(long categoryId)
getParentCategoryId
protected long getParentCategoryId(long groupId,
long parentCategoryId)
getParentCategoryId
protected long getParentCategoryId(com.liferay.message.boards.kernel.model.MBCategory category,
long parentCategoryId)
mergeCategories
protected void mergeCategories(com.liferay.message.boards.kernel.model.MBCategory fromCategory,
long toCategoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveDependentsToTrash
protected void moveDependentsToTrash(com.liferay.portal.kernel.model.User user,
List<Object> categoriesAndThreads,
long trashEntryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
restoreDependentsFromTrash
protected void restoreDependentsFromTrash(com.liferay.portal.kernel.model.User user,
List<Object> categoriesAndThreads)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateChildCategoriesDisplayStyle
protected void updateChildCategoriesDisplayStyle(com.liferay.message.boards.kernel.model.MBCategory category,
String displayStyle)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
validate
protected void validate(String name)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException