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