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