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