1
22
23 package com.liferay.portlet.blogs.service;
24
25
51 public class BlogsCategoryServiceUtil {
52 public static com.liferay.portlet.blogs.model.BlogsCategory addCategory(
53 long parentCategoryId, java.lang.String name,
54 java.lang.String description, boolean addCommunityPermissions,
55 boolean addGuestPermissions)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 BlogsCategoryService blogsCategoryService = BlogsCategoryServiceFactory.getService();
59
60 return blogsCategoryService.addCategory(parentCategoryId, name,
61 description, addCommunityPermissions, addGuestPermissions);
62 }
63
64 public static com.liferay.portlet.blogs.model.BlogsCategory addCategory(
65 long parentCategoryId, java.lang.String name,
66 java.lang.String description, java.lang.String[] communityPermissions,
67 java.lang.String[] guestPermissions)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException, java.rmi.RemoteException {
70 BlogsCategoryService blogsCategoryService = BlogsCategoryServiceFactory.getService();
71
72 return blogsCategoryService.addCategory(parentCategoryId, name,
73 description, communityPermissions, guestPermissions);
74 }
75
76 public static void deleteCategory(long categoryId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException, java.rmi.RemoteException {
79 BlogsCategoryService blogsCategoryService = BlogsCategoryServiceFactory.getService();
80 blogsCategoryService.deleteCategory(categoryId);
81 }
82
83 public static com.liferay.portlet.blogs.model.BlogsCategory getCategory(
84 long categoryId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException, java.rmi.RemoteException {
87 BlogsCategoryService blogsCategoryService = BlogsCategoryServiceFactory.getService();
88
89 return blogsCategoryService.getCategory(categoryId);
90 }
91
92 public static com.liferay.portlet.blogs.model.BlogsCategory updateCategory(
93 long categoryId, long parentCategoryId, java.lang.String name,
94 java.lang.String description)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException, java.rmi.RemoteException {
97 BlogsCategoryService blogsCategoryService = BlogsCategoryServiceFactory.getService();
98
99 return blogsCategoryService.updateCategory(categoryId,
100 parentCategoryId, name, description);
101 }
102 }