001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.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    /**
023     * Provides the local service utility for WebDAVProps. This utility wraps
024     * {@link com.liferay.portal.service.impl.WebDAVPropsLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see WebDAVPropsLocalService
032     * @see com.liferay.portal.service.base.WebDAVPropsLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.WebDAVPropsLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class WebDAVPropsLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.WebDAVPropsLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
044                    return getService().getActionableDynamicQuery();
045            }
046    
047            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
048                    return getService().dynamicQuery();
049            }
050    
051            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
052                    return getService().getIndexableActionableDynamicQuery();
053            }
054    
055            /**
056            * @throws PortalException
057            */
058            public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
059                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return getService().deletePersistedModel(persistedModel);
062            }
063    
064            public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
065                    java.io.Serializable primaryKeyObj)
066                    throws com.liferay.portal.kernel.exception.PortalException {
067                    return getService().getPersistedModel(primaryKeyObj);
068            }
069    
070            /**
071            * Adds the web d a v props to the database. Also notifies the appropriate model listeners.
072            *
073            * @param webDAVProps the web d a v props
074            * @return the web d a v props that was added
075            */
076            public static com.liferay.portal.kernel.model.WebDAVProps addWebDAVProps(
077                    com.liferay.portal.kernel.model.WebDAVProps webDAVProps) {
078                    return getService().addWebDAVProps(webDAVProps);
079            }
080    
081            /**
082            * Creates a new web d a v props with the primary key. Does not add the web d a v props to the database.
083            *
084            * @param webDavPropsId the primary key for the new web d a v props
085            * @return the new web d a v props
086            */
087            public static com.liferay.portal.kernel.model.WebDAVProps createWebDAVProps(
088                    long webDavPropsId) {
089                    return getService().createWebDAVProps(webDavPropsId);
090            }
091    
092            /**
093            * Deletes the web d a v props from the database. Also notifies the appropriate model listeners.
094            *
095            * @param webDAVProps the web d a v props
096            * @return the web d a v props that was removed
097            */
098            public static com.liferay.portal.kernel.model.WebDAVProps deleteWebDAVProps(
099                    com.liferay.portal.kernel.model.WebDAVProps webDAVProps) {
100                    return getService().deleteWebDAVProps(webDAVProps);
101            }
102    
103            /**
104            * Deletes the web d a v props with the primary key from the database. Also notifies the appropriate model listeners.
105            *
106            * @param webDavPropsId the primary key of the web d a v props
107            * @return the web d a v props that was removed
108            * @throws PortalException if a web d a v props with the primary key could not be found
109            */
110            public static com.liferay.portal.kernel.model.WebDAVProps deleteWebDAVProps(
111                    long webDavPropsId)
112                    throws com.liferay.portal.kernel.exception.PortalException {
113                    return getService().deleteWebDAVProps(webDavPropsId);
114            }
115    
116            public static com.liferay.portal.kernel.model.WebDAVProps fetchWebDAVProps(
117                    long webDavPropsId) {
118                    return getService().fetchWebDAVProps(webDavPropsId);
119            }
120    
121            public static com.liferay.portal.kernel.model.WebDAVProps getWebDAVProps(
122                    long companyId, java.lang.String className, long classPK) {
123                    return getService().getWebDAVProps(companyId, className, classPK);
124            }
125    
126            /**
127            * Returns the web d a v props with the primary key.
128            *
129            * @param webDavPropsId the primary key of the web d a v props
130            * @return the web d a v props
131            * @throws PortalException if a web d a v props with the primary key could not be found
132            */
133            public static com.liferay.portal.kernel.model.WebDAVProps getWebDAVProps(
134                    long webDavPropsId)
135                    throws com.liferay.portal.kernel.exception.PortalException {
136                    return getService().getWebDAVProps(webDavPropsId);
137            }
138    
139            /**
140            * Updates the web d a v props in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
141            *
142            * @param webDAVProps the web d a v props
143            * @return the web d a v props that was updated
144            */
145            public static com.liferay.portal.kernel.model.WebDAVProps updateWebDAVProps(
146                    com.liferay.portal.kernel.model.WebDAVProps webDAVProps) {
147                    return getService().updateWebDAVProps(webDAVProps);
148            }
149    
150            /**
151            * Returns the number of web d a v propses.
152            *
153            * @return the number of web d a v propses
154            */
155            public static int getWebDAVPropsesCount() {
156                    return getService().getWebDAVPropsesCount();
157            }
158    
159            /**
160            * Returns the OSGi service identifier.
161            *
162            * @return the OSGi service identifier
163            */
164            public static java.lang.String getOSGiServiceIdentifier() {
165                    return getService().getOSGiServiceIdentifier();
166            }
167    
168            /**
169            * Performs a dynamic query on the database and returns the matching rows.
170            *
171            * @param dynamicQuery the dynamic query
172            * @return the matching rows
173            */
174            public static <T> java.util.List<T> dynamicQuery(
175                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
176                    return getService().dynamicQuery(dynamicQuery);
177            }
178    
179            /**
180            * Performs a dynamic query on the database and returns a range of the matching rows.
181            *
182            * <p>
183            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebDAVPropsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
184            * </p>
185            *
186            * @param dynamicQuery the dynamic query
187            * @param start the lower bound of the range of model instances
188            * @param end the upper bound of the range of model instances (not inclusive)
189            * @return the range of matching rows
190            */
191            public static <T> java.util.List<T> dynamicQuery(
192                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
193                    int end) {
194                    return getService().dynamicQuery(dynamicQuery, start, end);
195            }
196    
197            /**
198            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
199            *
200            * <p>
201            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebDAVPropsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
202            * </p>
203            *
204            * @param dynamicQuery the dynamic query
205            * @param start the lower bound of the range of model instances
206            * @param end the upper bound of the range of model instances (not inclusive)
207            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
208            * @return the ordered range of matching rows
209            */
210            public static <T> java.util.List<T> dynamicQuery(
211                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
212                    int end,
213                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
214                    return getService()
215                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
216            }
217    
218            /**
219            * Returns a range of all the web d a v propses.
220            *
221            * <p>
222            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebDAVPropsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
223            * </p>
224            *
225            * @param start the lower bound of the range of web d a v propses
226            * @param end the upper bound of the range of web d a v propses (not inclusive)
227            * @return the range of web d a v propses
228            */
229            public static java.util.List<com.liferay.portal.kernel.model.WebDAVProps> getWebDAVPropses(
230                    int start, int end) {
231                    return getService().getWebDAVPropses(start, end);
232            }
233    
234            /**
235            * Returns the number of rows matching the dynamic query.
236            *
237            * @param dynamicQuery the dynamic query
238            * @return the number of rows matching the dynamic query
239            */
240            public static long dynamicQueryCount(
241                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
242                    return getService().dynamicQueryCount(dynamicQuery);
243            }
244    
245            /**
246            * Returns the number of rows matching the dynamic query.
247            *
248            * @param dynamicQuery the dynamic query
249            * @param projection the projection to apply to the query
250            * @return the number of rows matching the dynamic query
251            */
252            public static long dynamicQueryCount(
253                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
254                    com.liferay.portal.kernel.dao.orm.Projection projection) {
255                    return getService().dynamicQueryCount(dynamicQuery, projection);
256            }
257    
258            public static void deleteWebDAVProps(java.lang.String className,
259                    long classPK) {
260                    getService().deleteWebDAVProps(className, classPK);
261            }
262    
263            public static void storeWebDAVProps(
264                    com.liferay.portal.kernel.model.WebDAVProps webDavProps)
265                    throws com.liferay.portal.kernel.exception.PortalException {
266                    getService().storeWebDAVProps(webDavProps);
267            }
268    
269            public static WebDAVPropsLocalService getService() {
270                    if (_service == null) {
271                            _service = (WebDAVPropsLocalService)PortalBeanLocatorUtil.locate(WebDAVPropsLocalService.class.getName());
272    
273                            ReferenceRegistry.registerReference(WebDAVPropsLocalServiceUtil.class,
274                                    "_service");
275                    }
276    
277                    return _service;
278            }
279    
280            private static WebDAVPropsLocalService _service;
281    }