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
034 public class AssetVocabularyServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059
063 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
064 java.util.Map<java.util.Locale, java.lang.String> titleMap,
065 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066 java.lang.String settings,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService()
071 .addVocabulary(titleMap, descriptionMap, settings,
072 serviceContext);
073 }
074
075 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
076 java.lang.String title,
077 java.util.Map<java.util.Locale, java.lang.String> titleMap,
078 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
079 java.lang.String settings,
080 com.liferay.portal.service.ServiceContext serviceContext)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException {
083 return getService()
084 .addVocabulary(title, titleMap, descriptionMap, settings,
085 serviceContext);
086 }
087
088 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
089 java.lang.String title,
090 com.liferay.portal.service.ServiceContext serviceContext)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 return getService().addVocabulary(title, serviceContext);
094 }
095
096
100 public static void deleteVocabularies(long[] vocabularyIds)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException {
103 getService().deleteVocabularies(vocabularyIds);
104 }
105
106 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
107 long[] vocabularyIds,
108 com.liferay.portal.service.ServiceContext serviceContext)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException {
111 return getService().deleteVocabularies(vocabularyIds, serviceContext);
112 }
113
114 public static void deleteVocabulary(long vocabularyId)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 getService().deleteVocabulary(vocabularyId);
118 }
119
120 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
121 long companyId)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException {
124 return getService().getCompanyVocabularies(companyId);
125 }
126
127 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
128 long[] groupIds)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException {
131 return getService().getGroupsVocabularies(groupIds);
132 }
133
134 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
135 long[] groupIds, java.lang.String className)
136 throws com.liferay.portal.kernel.exception.PortalException,
137 com.liferay.portal.kernel.exception.SystemException {
138 return getService().getGroupsVocabularies(groupIds, className);
139 }
140
141 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
142 long groupId)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException {
145 return getService().getGroupVocabularies(groupId);
146 }
147
148 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
149 long groupId, boolean createDefaultVocabulary)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 return getService()
153 .getGroupVocabularies(groupId, createDefaultVocabulary);
154 }
155
156 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
157 long groupId, int start, int end,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getService().getGroupVocabularies(groupId, start, end, obc);
161 }
162
163 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
164 long groupId, java.lang.String name, int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getService().getGroupVocabularies(groupId, name, start, end, obc);
168 }
169
170 public static int getGroupVocabulariesCount(long groupId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().getGroupVocabulariesCount(groupId);
173 }
174
175 public static int getGroupVocabulariesCount(long groupId,
176 java.lang.String name)
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getService().getGroupVocabulariesCount(groupId, name);
179 }
180
181 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
182 long groupId, java.lang.String name, int start, int end,
183 boolean addDefaultVocabulary,
184 com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException {
187 return getService()
188 .getGroupVocabulariesDisplay(groupId, name, start, end,
189 addDefaultVocabulary, obc);
190 }
191
192 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
193 long groupId, java.lang.String name, 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 .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
199 }
200
201
204 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
205 long groupId, java.lang.String name, int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException {
209 return getService()
210 .getJSONGroupVocabularies(groupId, name, start, end, obc);
211 }
212
213 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
214 long[] vocabularyIds)
215 throws com.liferay.portal.kernel.exception.PortalException,
216 com.liferay.portal.kernel.exception.SystemException {
217 return getService().getVocabularies(vocabularyIds);
218 }
219
220 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
221 long vocabularyId)
222 throws com.liferay.portal.kernel.exception.PortalException,
223 com.liferay.portal.kernel.exception.SystemException {
224 return getService().getVocabulary(vocabularyId);
225 }
226
227
231 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
232 long vocabularyId,
233 java.util.Map<java.util.Locale, java.lang.String> titleMap,
234 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
235 java.lang.String settings,
236 com.liferay.portal.service.ServiceContext serviceContext)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService()
240 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
241 settings, serviceContext);
242 }
243
244 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
245 long vocabularyId, java.lang.String title,
246 java.util.Map<java.util.Locale, java.lang.String> titleMap,
247 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
248 java.lang.String settings,
249 com.liferay.portal.service.ServiceContext serviceContext)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return getService()
253 .updateVocabulary(vocabularyId, title, titleMap,
254 descriptionMap, settings, serviceContext);
255 }
256
257 public static AssetVocabularyService getService() {
258 if (_service == null) {
259 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
260
261 ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
262 "_service");
263 }
264
265 return _service;
266 }
267
268
271 public void setService(AssetVocabularyService service) {
272 }
273
274 private static AssetVocabularyService _service;
275 }