1
14
15 package com.liferay.portlet.asset.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class AssetVocabularyLocalServiceUtil {
40 public static com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
41 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addAssetVocabulary(assetVocabulary);
44 }
45
46 public static com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
47 long vocabularyId) {
48 return getService().createAssetVocabulary(vocabularyId);
49 }
50
51 public static void deleteAssetVocabulary(long vocabularyId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteAssetVocabulary(vocabularyId);
55 }
56
57 public static void deleteAssetVocabulary(
58 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteAssetVocabulary(assetVocabulary);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
91 long vocabularyId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getAssetVocabulary(vocabularyId);
95 }
96
97 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getAssetVocabularies(start, end);
101 }
102
103 public static int getAssetVocabulariesCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getAssetVocabulariesCount();
106 }
107
108 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
109 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateAssetVocabulary(assetVocabulary);
112 }
113
114 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
115 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
116 boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getService().updateAssetVocabulary(assetVocabulary, merge);
119 }
120
121 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
122 java.lang.String uuid, long userId,
123 java.util.Map<java.util.Locale, String> titleMap,
124 java.util.Map<java.util.Locale, String> descriptionMap,
125 java.lang.String settings,
126 com.liferay.portal.service.ServiceContext serviceContext)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException {
129 return getService()
130 .addVocabulary(uuid, userId, titleMap, descriptionMap,
131 settings, serviceContext);
132 }
133
134 public static void addVocabularyResources(
135 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
136 boolean addCommunityPermissions, boolean addGuestPermissions)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 getService()
140 .addVocabularyResources(vocabulary, addCommunityPermissions,
141 addGuestPermissions);
142 }
143
144 public static void addVocabularyResources(
145 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
146 java.lang.String[] communityPermissions,
147 java.lang.String[] guestPermissions)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 getService()
151 .addVocabularyResources(vocabulary, communityPermissions,
152 guestPermissions);
153 }
154
155 public static void deleteVocabulary(
156 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 getService().deleteVocabulary(vocabulary);
160 }
161
162 public static void deleteVocabulary(long vocabularyId)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException {
165 getService().deleteVocabulary(vocabularyId);
166 }
167
168 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
169 long companyId)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getService().getCompanyVocabularies(companyId);
172 }
173
174 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
175 long[] groupIds)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 return getService().getGroupsVocabularies(groupIds);
179 }
180
181 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
182 long groupId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getGroupVocabularies(groupId);
186 }
187
188 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
189 long groupId, java.lang.String name)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getGroupVocabulary(groupId, name);
193 }
194
195 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
196 long vocabularyId)
197 throws com.liferay.portal.kernel.exception.PortalException,
198 com.liferay.portal.kernel.exception.SystemException {
199 return getService().getVocabulary(vocabularyId);
200 }
201
202 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
203 long vocabularyId, java.util.Map<java.util.Locale, String> titleMap,
204 java.util.Map<java.util.Locale, String> descriptionMap,
205 java.lang.String settings,
206 com.liferay.portal.service.ServiceContext serviceContext)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException {
209 return getService()
210 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
211 settings, serviceContext);
212 }
213
214 public static AssetVocabularyLocalService getService() {
215 if (_service == null) {
216 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
217 }
218
219 return _service;
220 }
221
222 public void setService(AssetVocabularyLocalService service) {
223 _service = service;
224 }
225
226 private static AssetVocabularyLocalService _service;
227 }