001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class AssetVocabularyLocalServiceUtil {
033 public static com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
034 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addAssetVocabulary(assetVocabulary);
037 }
038
039 public static com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
040 long vocabularyId) {
041 return getService().createAssetVocabulary(vocabularyId);
042 }
043
044 public static void deleteAssetVocabulary(long vocabularyId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteAssetVocabulary(vocabularyId);
048 }
049
050 public static void deleteAssetVocabulary(
051 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteAssetVocabulary(assetVocabulary);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
087 long vocabularyId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getAssetVocabulary(vocabularyId);
091 }
092
093 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
094 java.lang.String uuid, long groupId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().getAssetVocabularyByUuidAndGroupId(uuid, groupId);
098 }
099
100 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getAssetVocabularies(start, end);
104 }
105
106 public static int getAssetVocabulariesCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getAssetVocabulariesCount();
109 }
110
111 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
112 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateAssetVocabulary(assetVocabulary);
115 }
116
117 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
118 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateAssetVocabulary(assetVocabulary, merge);
122 }
123
124 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
125 long userId,
126 java.util.Map<java.util.Locale, java.lang.String> titleMap,
127 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
128 java.lang.String settings,
129 com.liferay.portal.service.ServiceContext serviceContext)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException {
132 return getService()
133 .addVocabulary(userId, titleMap, descriptionMap, settings,
134 serviceContext);
135 }
136
137 public static void addVocabularyResources(
138 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
139 boolean addCommunityPermissions, boolean addGuestPermissions)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 getService()
143 .addVocabularyResources(vocabulary, addCommunityPermissions,
144 addGuestPermissions);
145 }
146
147 public static void addVocabularyResources(
148 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 getService()
154 .addVocabularyResources(vocabulary, communityPermissions,
155 guestPermissions);
156 }
157
158 public static void deleteVocabulary(
159 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException {
162 getService().deleteVocabulary(vocabulary);
163 }
164
165 public static void deleteVocabulary(long vocabularyId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException {
168 getService().deleteVocabulary(vocabularyId);
169 }
170
171 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
172 long companyId)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getService().getCompanyVocabularies(companyId);
175 }
176
177 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
178 long[] groupIds)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getGroupsVocabularies(groupIds);
182 }
183
184 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
185 long groupId)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getGroupVocabularies(groupId);
189 }
190
191 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
192 long groupId, java.lang.String name)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException {
195 return getService().getGroupVocabulary(groupId, name);
196 }
197
198 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
199 long vocabularyId)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService().getVocabulary(vocabularyId);
203 }
204
205 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
206 long vocabularyId,
207 java.util.Map<java.util.Locale, java.lang.String> titleMap,
208 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
209 java.lang.String settings,
210 com.liferay.portal.service.ServiceContext serviceContext)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException {
213 return getService()
214 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
215 settings, serviceContext);
216 }
217
218 public static AssetVocabularyLocalService getService() {
219 if (_service == null) {
220 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
221 }
222
223 return _service;
224 }
225
226 public void setService(AssetVocabularyLocalService service) {
227 _service = service;
228 }
229
230 private static AssetVocabularyLocalService _service;
231 }