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 com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
76 long vocabularyId)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException {
79 return getService().getAssetVocabulary(vocabularyId);
80 }
81
82 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
83 int start, int end)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().getAssetVocabularies(start, end);
86 }
87
88 public static int getAssetVocabulariesCount()
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().getAssetVocabulariesCount();
91 }
92
93 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
94 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
95 throws com.liferay.portal.kernel.exception.SystemException {
96 return getService().updateAssetVocabulary(assetVocabulary);
97 }
98
99 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
100 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
101 boolean merge)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().updateAssetVocabulary(assetVocabulary, merge);
104 }
105
106 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
107 java.lang.String uuid, long userId,
108 java.util.Map<java.util.Locale, String> titleMap,
109 java.util.Map<java.util.Locale, String> descriptionMap,
110 java.lang.String settings,
111 com.liferay.portal.service.ServiceContext serviceContext)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException {
114 return getService()
115 .addVocabulary(uuid, userId, titleMap, descriptionMap,
116 settings, serviceContext);
117 }
118
119 public static void addVocabularyResources(
120 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
121 boolean addCommunityPermissions, boolean addGuestPermissions)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException {
124 getService()
125 .addVocabularyResources(vocabulary, addCommunityPermissions,
126 addGuestPermissions);
127 }
128
129 public static void addVocabularyResources(
130 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
131 java.lang.String[] communityPermissions,
132 java.lang.String[] guestPermissions)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 getService()
136 .addVocabularyResources(vocabulary, communityPermissions,
137 guestPermissions);
138 }
139
140 public static void deleteVocabulary(
141 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException {
144 getService().deleteVocabulary(vocabulary);
145 }
146
147 public static void deleteVocabulary(long vocabularyId)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 getService().deleteVocabulary(vocabularyId);
151 }
152
153 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
154 long companyId)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getService().getCompanyVocabularies(companyId);
157 }
158
159 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
160 long[] groupIds)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException {
163 return getService().getGroupsVocabularies(groupIds);
164 }
165
166 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
167 long groupId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException {
170 return getService().getGroupVocabularies(groupId);
171 }
172
173 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
174 long groupId, java.lang.String name)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException {
177 return getService().getGroupVocabulary(groupId, name);
178 }
179
180 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
181 long vocabularyId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException {
184 return getService().getVocabulary(vocabularyId);
185 }
186
187 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
188 long vocabularyId, java.util.Map<java.util.Locale, String> titleMap,
189 java.util.Map<java.util.Locale, String> descriptionMap,
190 java.lang.String settings,
191 com.liferay.portal.service.ServiceContext serviceContext)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 return getService()
195 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
196 settings, serviceContext);
197 }
198
199 public static AssetVocabularyLocalService getService() {
200 if (_service == null) {
201 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
202 }
203
204 return _service;
205 }
206
207 public void setService(AssetVocabularyLocalService service) {
208 _service = service;
209 }
210
211 private static AssetVocabularyLocalService _service;
212 }