001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class AssetVocabularyServiceUtil {
038
043 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
044 long groupId, java.lang.String title,
045 com.liferay.portal.service.ServiceContext serviceContext)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService().addVocabulary(groupId, title, serviceContext);
048 }
049
050 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
051 long groupId, java.lang.String title,
052 java.util.Map<java.util.Locale, java.lang.String> titleMap,
053 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
054 java.lang.String settings,
055 com.liferay.portal.service.ServiceContext serviceContext)
056 throws com.liferay.portal.kernel.exception.PortalException {
057 return getService()
058 .addVocabulary(groupId, title, titleMap, descriptionMap,
059 settings, serviceContext);
060 }
061
062
066 @Deprecated
067 public static void deleteVocabularies(long[] vocabularyIds)
068 throws com.liferay.portal.kernel.exception.PortalException {
069 getService().deleteVocabularies(vocabularyIds);
070 }
071
072 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
073 long[] vocabularyIds,
074 com.liferay.portal.service.ServiceContext serviceContext)
075 throws com.liferay.portal.kernel.exception.PortalException {
076 return getService().deleteVocabularies(vocabularyIds, serviceContext);
077 }
078
079 public static void deleteVocabulary(long vocabularyId)
080 throws com.liferay.portal.kernel.exception.PortalException {
081 getService().deleteVocabulary(vocabularyId);
082 }
083
084 public static com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
085 long vocabularyId)
086 throws com.liferay.portal.kernel.exception.PortalException {
087 return getService().fetchVocabulary(vocabularyId);
088 }
089
090
095 public static java.lang.String getBeanIdentifier() {
096 return getService().getBeanIdentifier();
097 }
098
099
102 @Deprecated
103 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
104 long companyId)
105 throws com.liferay.portal.kernel.exception.PortalException {
106 return getService().getCompanyVocabularies(companyId);
107 }
108
109 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
110 long groupId)
111 throws com.liferay.portal.kernel.exception.PortalException {
112 return getService().getGroupVocabularies(groupId);
113 }
114
115 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
116 long groupId, boolean createDefaultVocabulary)
117 throws com.liferay.portal.kernel.exception.PortalException {
118 return getService()
119 .getGroupVocabularies(groupId, createDefaultVocabulary);
120 }
121
122 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
123 long groupId, boolean createDefaultVocabulary, int start, int end,
124 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
125 throws com.liferay.portal.kernel.exception.PortalException {
126 return getService()
127 .getGroupVocabularies(groupId, createDefaultVocabulary,
128 start, end, obc);
129 }
130
131 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
132 long groupId, java.lang.String name, int start, int end,
133 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
134 return getService().getGroupVocabularies(groupId, name, start, end, obc);
135 }
136
137 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
138 long groupId, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
140 return getService().getGroupVocabularies(groupId, start, end, obc);
141 }
142
143 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
144 long[] groupIds) {
145 return getService().getGroupVocabularies(groupIds);
146 }
147
148 public static int getGroupVocabulariesCount(long groupId) {
149 return getService().getGroupVocabulariesCount(groupId);
150 }
151
152 public static int getGroupVocabulariesCount(long groupId,
153 java.lang.String name) {
154 return getService().getGroupVocabulariesCount(groupId, name);
155 }
156
157 public static int getGroupVocabulariesCount(long[] groupIds) {
158 return getService().getGroupVocabulariesCount(groupIds);
159 }
160
161 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
162 long groupId, java.lang.String name, int start, int end,
163 boolean addDefaultVocabulary,
164 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
165 throws com.liferay.portal.kernel.exception.PortalException {
166 return getService()
167 .getGroupVocabulariesDisplay(groupId, name, start, end,
168 addDefaultVocabulary, obc);
169 }
170
171 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
172 long groupId, java.lang.String name, int start, int end,
173 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
174 throws com.liferay.portal.kernel.exception.PortalException {
175 return getService()
176 .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
177 }
178
179 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
180 long[] groupIds) {
181 return getService().getGroupsVocabularies(groupIds);
182 }
183
184 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
185 long[] groupIds, java.lang.String className) {
186 return getService().getGroupsVocabularies(groupIds, className);
187 }
188
189 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
190 long[] groupIds, java.lang.String className, long classTypePK) {
191 return getService()
192 .getGroupsVocabularies(groupIds, className, classTypePK);
193 }
194
195
198 @Deprecated
199 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
200 long groupId, java.lang.String name, int start, int end,
201 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
202 throws com.liferay.portal.kernel.exception.PortalException {
203 return getService()
204 .getJSONGroupVocabularies(groupId, name, start, end, obc);
205 }
206
207
211 @Deprecated
212 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
213 long[] vocabularyIds)
214 throws com.liferay.portal.kernel.exception.PortalException {
215 return getService().getVocabularies(vocabularyIds);
216 }
217
218 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
219 long vocabularyId)
220 throws com.liferay.portal.kernel.exception.PortalException {
221 return getService().getVocabulary(vocabularyId);
222 }
223
224 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
225 long groupId, java.lang.String title, int start, int end,
226 boolean addDefaultVocabulary)
227 throws com.liferay.portal.kernel.exception.PortalException {
228 return getService()
229 .searchVocabulariesDisplay(groupId, title, start, end,
230 addDefaultVocabulary);
231 }
232
233
238 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
239 getService().setBeanIdentifier(beanIdentifier);
240 }
241
242 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
243 long vocabularyId, java.lang.String title,
244 java.util.Map<java.util.Locale, java.lang.String> titleMap,
245 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
246 java.lang.String settings,
247 com.liferay.portal.service.ServiceContext serviceContext)
248 throws com.liferay.portal.kernel.exception.PortalException {
249 return getService()
250 .updateVocabulary(vocabularyId, title, titleMap,
251 descriptionMap, settings, serviceContext);
252 }
253
254 public static AssetVocabularyService getService() {
255 if (_service == null) {
256 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
257
258 ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
259 "_service");
260 }
261
262 return _service;
263 }
264
265
268 @Deprecated
269 public void setService(AssetVocabularyService service) {
270 }
271
272 private static AssetVocabularyService _service;
273 }