001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class AssetCategoryServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
059 long parentCategoryId,
060 java.util.Map<java.util.Locale, java.lang.String> titleMap,
061 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062 long vocabularyId, java.lang.String[] categoryProperties,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return getService()
067 .addCategory(parentCategoryId, titleMap, descriptionMap,
068 vocabularyId, categoryProperties, serviceContext);
069 }
070
071 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
072 java.lang.String title, long vocabularyId,
073 com.liferay.portal.service.ServiceContext serviceContext)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().addCategory(title, vocabularyId, serviceContext);
077 }
078
079 public static void deleteCategories(long[] categoryIds)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 getService().deleteCategories(categoryIds);
083 }
084
085 public static void deleteCategory(long categoryId)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException {
088 getService().deleteCategory(categoryId);
089 }
090
091 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
092 java.lang.String className, long classPK)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 return getService().getCategories(className, classPK);
096 }
097
098 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
099 long categoryId)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 return getService().getCategory(categoryId);
103 }
104
105 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
106 long parentCategoryId)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getService().getChildCategories(parentCategoryId);
110 }
111
112 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
113 long parentCategoryId, int start, int end,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 return getService().getChildCategories(parentCategoryId, start, end, obc);
118 }
119
120
123 public static com.liferay.portal.kernel.json.JSONArray getJSONSearch(
124 long groupId, java.lang.String name, long[] vocabularyIds, int start,
125 int end)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException {
128 return getService()
129 .getJSONSearch(groupId, name, vocabularyIds, start, end);
130 }
131
132 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
133 long vocabularyId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException {
137 return getService()
138 .getJSONVocabularyCategories(vocabularyId, start, end, obc);
139 }
140
141 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
142 long groupId, java.lang.String name, long vocabularyId, int start,
143 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException {
146 return getService()
147 .getJSONVocabularyCategories(groupId, name, vocabularyId,
148 start, end, obc);
149 }
150
151 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
152 long vocabularyId, int start, int end,
153 com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException {
156 return getService()
157 .getVocabularyCategories(vocabularyId, start, end, obc);
158 }
159
160 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
161 long parentCategoryId, long vocabularyId, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return getService()
166 .getVocabularyCategories(parentCategoryId, vocabularyId,
167 start, end, obc);
168 }
169
170 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
171 long groupId, java.lang.String name, long vocabularyId, int start,
172 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getService()
175 .getVocabularyCategories(groupId, name, vocabularyId, start,
176 end, obc);
177 }
178
179 public static int getVocabularyCategoriesCount(long groupId,
180 long vocabularyId)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getService().getVocabularyCategoriesCount(groupId, vocabularyId);
183 }
184
185 public static int getVocabularyCategoriesCount(long groupId,
186 java.lang.String name, long vocabularyId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getService()
189 .getVocabularyCategoriesCount(groupId, name, vocabularyId);
190 }
191
192 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
193 long vocabularyId, int start, int end,
194 com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException {
197 return getService()
198 .getVocabularyRootCategories(vocabularyId, start, end, obc);
199 }
200
201 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
202 long categoryId, long parentCategoryId, long vocabularyId,
203 com.liferay.portal.service.ServiceContext serviceContext)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException {
206 return getService()
207 .moveCategory(categoryId, parentCategoryId, vocabularyId,
208 serviceContext);
209 }
210
211 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
212 long groupId, java.lang.String keywords, long vocabularyId, int start,
213 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService()
216 .search(groupId, keywords, vocabularyId, start, end, obc);
217 }
218
219 public static com.liferay.portal.kernel.json.JSONArray search(
220 long groupId, java.lang.String name,
221 java.lang.String[] categoryProperties, int start, int end)
222 throws com.liferay.portal.kernel.exception.PortalException,
223 com.liferay.portal.kernel.exception.SystemException {
224 return getService().search(groupId, name, categoryProperties, start, end);
225 }
226
227 public static com.liferay.portal.kernel.json.JSONArray search(
228 long[] groupIds, java.lang.String name, long[] vocabularyIds,
229 int start, int end)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 return getService().search(groupIds, name, vocabularyIds, start, end);
233 }
234
235 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
236 long categoryId, long parentCategoryId,
237 java.util.Map<java.util.Locale, java.lang.String> titleMap,
238 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
239 long vocabularyId, java.lang.String[] categoryProperties,
240 com.liferay.portal.service.ServiceContext serviceContext)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException {
243 return getService()
244 .updateCategory(categoryId, parentCategoryId, titleMap,
245 descriptionMap, vocabularyId, categoryProperties, serviceContext);
246 }
247
248 public static AssetCategoryService getService() {
249 if (_service == null) {
250 _service = (AssetCategoryService)PortalBeanLocatorUtil.locate(AssetCategoryService.class.getName());
251
252 ReferenceRegistry.registerReference(AssetCategoryServiceUtil.class,
253 "_service");
254 }
255
256 return _service;
257 }
258
259
262 public void setService(AssetCategoryService service) {
263 }
264
265 private static AssetCategoryService _service;
266 }