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 void deleteVocabularies(long[] vocabularyIds)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 getService().deleteVocabularies(vocabularyIds);
090 }
091
092 public static void deleteVocabulary(long vocabularyId)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 getService().deleteVocabulary(vocabularyId);
096 }
097
098 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
099 long companyId)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 return getService().getCompanyVocabularies(companyId);
103 }
104
105 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
106 long[] groupIds)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getService().getGroupsVocabularies(groupIds);
110 }
111
112 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
113 long[] groupIds, java.lang.String className)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return getService().getGroupsVocabularies(groupIds, className);
117 }
118
119 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
120 long groupId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService().getGroupVocabularies(groupId);
124 }
125
126 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
127 long groupId, int start, int end,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getService().getGroupVocabularies(groupId, start, end, obc);
131 }
132
133 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
134 long groupId, java.lang.String name, int start, int end,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getService().getGroupVocabularies(groupId, name, start, end, obc);
138 }
139
140 public static int getGroupVocabulariesCount(long groupId)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getService().getGroupVocabulariesCount(groupId);
143 }
144
145 public static int getGroupVocabulariesCount(long groupId,
146 java.lang.String name)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getService().getGroupVocabulariesCount(groupId, name);
149 }
150
151 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
152 long groupId, java.lang.String name, 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 .getJSONGroupVocabularies(groupId, name, start, end, obc);
158 }
159
160 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
161 long[] vocabularyIds)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException {
164 return getService().getVocabularies(vocabularyIds);
165 }
166
167 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
168 long vocabularyId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException {
171 return getService().getVocabulary(vocabularyId);
172 }
173
174
177 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
178 long vocabularyId,
179 java.util.Map<java.util.Locale, java.lang.String> titleMap,
180 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
181 java.lang.String settings,
182 com.liferay.portal.service.ServiceContext serviceContext)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService()
186 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
187 settings, serviceContext);
188 }
189
190 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
191 long vocabularyId, java.lang.String title,
192 java.util.Map<java.util.Locale, java.lang.String> titleMap,
193 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
194 java.lang.String settings,
195 com.liferay.portal.service.ServiceContext serviceContext)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 return getService()
199 .updateVocabulary(vocabularyId, title, titleMap,
200 descriptionMap, settings, serviceContext);
201 }
202
203 public static AssetVocabularyService getService() {
204 if (_service == null) {
205 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
206
207 ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
208 "_service");
209 }
210
211 return _service;
212 }
213
214
217 public void setService(AssetVocabularyService service) {
218 }
219
220 private static AssetVocabularyService _service;
221 }