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