001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class AssetCategoryPropertyLocalServiceUtil {
033 public static com.liferay.portlet.asset.model.AssetCategoryProperty addAssetCategoryProperty(
034 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addAssetCategoryProperty(assetCategoryProperty);
037 }
038
039 public static com.liferay.portlet.asset.model.AssetCategoryProperty createAssetCategoryProperty(
040 long categoryPropertyId) {
041 return getService().createAssetCategoryProperty(categoryPropertyId);
042 }
043
044 public static void deleteAssetCategoryProperty(long categoryPropertyId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteAssetCategoryProperty(categoryPropertyId);
048 }
049
050 public static void deleteAssetCategoryProperty(
051 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteAssetCategoryProperty(assetCategoryProperty);
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.AssetCategoryProperty getAssetCategoryProperty(
087 long categoryPropertyId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getAssetCategoryProperty(categoryPropertyId);
091 }
092
093 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getAssetCategoryProperties(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getAssetCategoryProperties(start, end);
097 }
098
099 public static int getAssetCategoryPropertiesCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getAssetCategoryPropertiesCount();
102 }
103
104 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
105 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updateAssetCategoryProperty(assetCategoryProperty);
108 }
109
110 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
111 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty,
112 boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService()
115 .updateAssetCategoryProperty(assetCategoryProperty, merge);
116 }
117
118 public static com.liferay.portlet.asset.model.AssetCategoryProperty addCategoryProperty(
119 long userId, long categoryId, java.lang.String key,
120 java.lang.String value)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService().addCategoryProperty(userId, categoryId, key, value);
124 }
125
126 public static void deleteCategoryProperties(long entryId)
127 throws com.liferay.portal.kernel.exception.SystemException {
128 getService().deleteCategoryProperties(entryId);
129 }
130
131 public static void deleteCategoryProperty(
132 com.liferay.portlet.asset.model.AssetCategoryProperty categoryProperty)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 getService().deleteCategoryProperty(categoryProperty);
135 }
136
137 public static void deleteCategoryProperty(long categoryPropertyId)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 getService().deleteCategoryProperty(categoryPropertyId);
141 }
142
143 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties()
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getService().getCategoryProperties();
146 }
147
148 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
149 long entryId)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService().getCategoryProperties(entryId);
152 }
153
154 public static com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
155 long categoryPropertyId)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException {
158 return getService().getCategoryProperty(categoryPropertyId);
159 }
160
161 public static com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
162 long categoryId, java.lang.String key)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return getService().getCategoryProperty(categoryId, key);
166 }
167
168 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
169 long groupId, java.lang.String key)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getService().getCategoryPropertyValues(groupId, key);
172 }
173
174 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
175 long categoryPropertyId, java.lang.String key, java.lang.String value)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 return getService()
179 .updateCategoryProperty(categoryPropertyId, key, value);
180 }
181
182 public static AssetCategoryPropertyLocalService getService() {
183 if (_service == null) {
184 _service = (AssetCategoryPropertyLocalService)PortalBeanLocatorUtil.locate(AssetCategoryPropertyLocalService.class.getName());
185 }
186
187 return _service;
188 }
189
190 public void setService(AssetCategoryPropertyLocalService service) {
191 _service = service;
192 }
193
194 private static AssetCategoryPropertyLocalService _service;
195 }