001    /**
002     * Copyright (c) 2000-2013 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.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link PasswordPolicyLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PasswordPolicyLocalService
024     * @generated
025     */
026    public class PasswordPolicyLocalServiceWrapper
027            implements PasswordPolicyLocalService,
028                    ServiceWrapper<PasswordPolicyLocalService> {
029            public PasswordPolicyLocalServiceWrapper(
030                    PasswordPolicyLocalService passwordPolicyLocalService) {
031                    _passwordPolicyLocalService = passwordPolicyLocalService;
032            }
033    
034            /**
035            * Adds the password policy to the database. Also notifies the appropriate model listeners.
036            *
037            * @param passwordPolicy the password policy
038            * @return the password policy that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
042                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _passwordPolicyLocalService.addPasswordPolicy(passwordPolicy);
045            }
046    
047            /**
048            * Creates a new password policy with the primary key. Does not add the password policy to the database.
049            *
050            * @param passwordPolicyId the primary key for the new password policy
051            * @return the new password policy
052            */
053            public com.liferay.portal.model.PasswordPolicy createPasswordPolicy(
054                    long passwordPolicyId) {
055                    return _passwordPolicyLocalService.createPasswordPolicy(passwordPolicyId);
056            }
057    
058            /**
059            * Deletes the password policy with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param passwordPolicyId the primary key of the password policy
062            * @return the password policy that was removed
063            * @throws PortalException if a password policy with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public com.liferay.portal.model.PasswordPolicy deletePasswordPolicy(
067                    long passwordPolicyId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _passwordPolicyLocalService.deletePasswordPolicy(passwordPolicyId);
071            }
072    
073            /**
074            * Deletes the password policy from the database. Also notifies the appropriate model listeners.
075            *
076            * @param passwordPolicy the password policy
077            * @return the password policy that was removed
078            * @throws PortalException
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portal.model.PasswordPolicy deletePasswordPolicy(
082                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return _passwordPolicyLocalService.deletePasswordPolicy(passwordPolicy);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _passwordPolicyLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * 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.PasswordPolicyModelImpl}. 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.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery, start, end);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * 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.PasswordPolicyModelImpl}. 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.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery, start,
147                            end, orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            public long dynamicQueryCount(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _passwordPolicyLocalService.dynamicQueryCount(dynamicQuery);
161            }
162    
163            public com.liferay.portal.model.PasswordPolicy fetchPasswordPolicy(
164                    long passwordPolicyId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _passwordPolicyLocalService.fetchPasswordPolicy(passwordPolicyId);
167            }
168    
169            /**
170            * Returns the password policy with the primary key.
171            *
172            * @param passwordPolicyId the primary key of the password policy
173            * @return the password policy
174            * @throws PortalException if a password policy with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
178                    long passwordPolicyId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _passwordPolicyLocalService.getPasswordPolicy(passwordPolicyId);
182            }
183    
184            public com.liferay.portal.model.PersistedModel getPersistedModel(
185                    java.io.Serializable primaryKeyObj)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _passwordPolicyLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns a range of all the password policies.
193            *
194            * <p>
195            * 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.PasswordPolicyModelImpl}. 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.
196            * </p>
197            *
198            * @param start the lower bound of the range of password policies
199            * @param end the upper bound of the range of password policies (not inclusive)
200            * @return the range of password policies
201            * @throws SystemException if a system exception occurred
202            */
203            public java.util.List<com.liferay.portal.model.PasswordPolicy> getPasswordPolicies(
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _passwordPolicyLocalService.getPasswordPolicies(start, end);
207            }
208    
209            /**
210            * Returns the number of password policies.
211            *
212            * @return the number of password policies
213            * @throws SystemException if a system exception occurred
214            */
215            public int getPasswordPoliciesCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _passwordPolicyLocalService.getPasswordPoliciesCount();
218            }
219    
220            /**
221            * Updates the password policy in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param passwordPolicy the password policy
224            * @return the password policy that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
228                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicy);
231            }
232    
233            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _passwordPolicyLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _passwordPolicyLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            /**
252            * @deprecated As of 6.2.0, replaced by {@link #addPasswordPolicy(long,
253            boolean, String, String, boolean, boolean, long, boolean,
254            boolean, int, int, int, int, int, int, String, boolean, int,
255            boolean, long, long, int, boolean, int, long, long, long,
256            ServiceContext)}
257            */
258            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
259                    long userId, boolean defaultPolicy, java.lang.String name,
260                    java.lang.String description, boolean changeable,
261                    boolean changeRequired, long minAge, boolean checkSyntax,
262                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
263                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
264                    boolean history, int historyCount, boolean expireable, long maxAge,
265                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
266                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    return _passwordPolicyLocalService.addPasswordPolicy(userId,
270                            defaultPolicy, name, description, changeable, changeRequired,
271                            minAge, checkSyntax, allowDictionaryWords, minAlphanumeric,
272                            minLength, minLowerCase, minNumbers, minSymbols, minUpperCase,
273                            history, historyCount, expireable, maxAge, warningTime, graceLimit,
274                            lockout, maxFailure, lockoutDuration, resetFailureCount,
275                            resetTicketMaxAge);
276            }
277    
278            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
279                    long userId, boolean defaultPolicy, java.lang.String name,
280                    java.lang.String description, boolean changeable,
281                    boolean changeRequired, long minAge, boolean checkSyntax,
282                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
283                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
284                    java.lang.String regex, boolean history, int historyCount,
285                    boolean expireable, long maxAge, long warningTime, int graceLimit,
286                    boolean lockout, int maxFailure, long lockoutDuration,
287                    long resetFailureCount, long resetTicketMaxAge,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _passwordPolicyLocalService.addPasswordPolicy(userId,
292                            defaultPolicy, name, description, changeable, changeRequired,
293                            minAge, checkSyntax, allowDictionaryWords, minAlphanumeric,
294                            minLength, minLowerCase, minNumbers, minSymbols, minUpperCase,
295                            regex, history, historyCount, expireable, maxAge, warningTime,
296                            graceLimit, lockout, maxFailure, lockoutDuration,
297                            resetFailureCount, resetTicketMaxAge, serviceContext);
298            }
299    
300            public void checkDefaultPasswordPolicy(long companyId)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _passwordPolicyLocalService.checkDefaultPasswordPolicy(companyId);
304            }
305    
306            public com.liferay.portal.model.PasswordPolicy fetchPasswordPolicy(
307                    long companyId, java.lang.String name)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _passwordPolicyLocalService.fetchPasswordPolicy(companyId, name);
310            }
311    
312            public com.liferay.portal.model.PasswordPolicy fetchPasswordPolicyByUuidAndCompanyId(
313                    java.lang.String uuid, long companyId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _passwordPolicyLocalService.fetchPasswordPolicyByUuidAndCompanyId(uuid,
316                            companyId);
317            }
318    
319            public com.liferay.portal.model.PasswordPolicy getDefaultPasswordPolicy(
320                    long companyId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    return _passwordPolicyLocalService.getDefaultPasswordPolicy(companyId);
324            }
325    
326            /**
327            * @deprecated As of 6.1.0
328            */
329            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
330                    long companyId, long organizationId, long locationId)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
334                            organizationId, locationId);
335            }
336    
337            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
338                    long companyId, long[] organizationIds)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
342                            organizationIds);
343            }
344    
345            public com.liferay.portal.model.PasswordPolicy getPasswordPolicyByUserId(
346                    long userId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return _passwordPolicyLocalService.getPasswordPolicyByUserId(userId);
350            }
351    
352            public java.util.List<com.liferay.portal.model.PasswordPolicy> search(
353                    long companyId, java.lang.String name, int start, int end,
354                    com.liferay.portal.kernel.util.OrderByComparator obc)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _passwordPolicyLocalService.search(companyId, name, start, end,
357                            obc);
358            }
359    
360            public int searchCount(long companyId, java.lang.String name)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _passwordPolicyLocalService.searchCount(companyId, name);
363            }
364    
365            /**
366            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
367            String, String, boolean, boolean, long, boolean, boolean,
368            int, int, int, int, int, int, String, boolean, int, boolean,
369            long, long, int, boolean, int, long, long, long,
370            ServiceContext)}
371            */
372            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
373                    long passwordPolicyId, java.lang.String name,
374                    java.lang.String description, boolean changeable,
375                    boolean changeRequired, long minAge, boolean checkSyntax,
376                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
377                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
378                    boolean history, int historyCount, boolean expireable, long maxAge,
379                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
380                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicyId,
384                            name, description, changeable, changeRequired, minAge, checkSyntax,
385                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
386                            minNumbers, minSymbols, minUpperCase, history, historyCount,
387                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
388                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
389            }
390    
391            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
392                    long passwordPolicyId, java.lang.String name,
393                    java.lang.String description, boolean changeable,
394                    boolean changeRequired, long minAge, boolean checkSyntax,
395                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
396                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
397                    java.lang.String regex, boolean history, int historyCount,
398                    boolean expireable, long maxAge, long warningTime, int graceLimit,
399                    boolean lockout, int maxFailure, long lockoutDuration,
400                    long resetFailureCount, long resetTicketMaxAge,
401                    com.liferay.portal.service.ServiceContext serviceContext)
402                    throws com.liferay.portal.kernel.exception.PortalException,
403                            com.liferay.portal.kernel.exception.SystemException {
404                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicyId,
405                            name, description, changeable, changeRequired, minAge, checkSyntax,
406                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
407                            minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
408                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
409                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
410                            serviceContext);
411            }
412    
413            /**
414             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
415             */
416            public PasswordPolicyLocalService getWrappedPasswordPolicyLocalService() {
417                    return _passwordPolicyLocalService;
418            }
419    
420            /**
421             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
422             */
423            public void setWrappedPasswordPolicyLocalService(
424                    PasswordPolicyLocalService passwordPolicyLocalService) {
425                    _passwordPolicyLocalService = passwordPolicyLocalService;
426            }
427    
428            public PasswordPolicyLocalService getWrappedService() {
429                    return _passwordPolicyLocalService;
430            }
431    
432            public void setWrappedService(
433                    PasswordPolicyLocalService passwordPolicyLocalService) {
434                    _passwordPolicyLocalService = passwordPolicyLocalService;
435            }
436    
437            private PasswordPolicyLocalService _passwordPolicyLocalService;
438    }