001    /**
002     * Copyright (c) 2000-2012 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            * @throws PortalException if a password policy with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deletePasswordPolicy(long passwordPolicyId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _passwordPolicyLocalService.deletePasswordPolicy(passwordPolicyId);
069            }
070    
071            /**
072            * Deletes the password policy from the database. Also notifies the appropriate model listeners.
073            *
074            * @param passwordPolicy the password policy
075            * @throws PortalException
076            * @throws SystemException if a system exception occurred
077            */
078            public void deletePasswordPolicy(
079                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    _passwordPolicyLocalService.deletePasswordPolicy(passwordPolicy);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery, start, end);
117            }
118    
119            /**
120            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param dynamicQuery the dynamic query
127            * @param start the lower bound of the range of model instances
128            * @param end the upper bound of the range of model instances (not inclusive)
129            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
130            * @return the ordered range of matching rows
131            * @throws SystemException if a system exception occurred
132            */
133            @SuppressWarnings("rawtypes")
134            public java.util.List dynamicQuery(
135                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136                    int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery, start,
140                            end, orderByComparator);
141            }
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _passwordPolicyLocalService.dynamicQueryCount(dynamicQuery);
154            }
155    
156            public com.liferay.portal.model.PasswordPolicy fetchPasswordPolicy(
157                    long passwordPolicyId)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _passwordPolicyLocalService.fetchPasswordPolicy(passwordPolicyId);
160            }
161    
162            /**
163            * Returns the password policy with the primary key.
164            *
165            * @param passwordPolicyId the primary key of the password policy
166            * @return the password policy
167            * @throws PortalException if a password policy with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
171                    long passwordPolicyId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _passwordPolicyLocalService.getPasswordPolicy(passwordPolicyId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _passwordPolicyLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns a range of all the password policies.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param start the lower bound of the range of password policies
192            * @param end the upper bound of the range of password policies (not inclusive)
193            * @return the range of password policies
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portal.model.PasswordPolicy> getPasswordPolicies(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _passwordPolicyLocalService.getPasswordPolicies(start, end);
200            }
201    
202            /**
203            * Returns the number of password policies.
204            *
205            * @return the number of password policies
206            * @throws SystemException if a system exception occurred
207            */
208            public int getPasswordPoliciesCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _passwordPolicyLocalService.getPasswordPoliciesCount();
211            }
212    
213            /**
214            * Updates the password policy in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param passwordPolicy the password policy
217            * @return the password policy that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
221                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicy);
224            }
225    
226            /**
227            * Updates the password policy in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param passwordPolicy the password policy
230            * @param merge whether to merge the password policy with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
231            * @return the password policy that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
235                    com.liferay.portal.model.PasswordPolicy passwordPolicy, boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicy,
238                            merge);
239            }
240    
241            /**
242            * Returns the Spring bean ID for this bean.
243            *
244            * @return the Spring bean ID for this bean
245            */
246            public java.lang.String getBeanIdentifier() {
247                    return _passwordPolicyLocalService.getBeanIdentifier();
248            }
249    
250            /**
251            * Sets the Spring bean ID for this bean.
252            *
253            * @param beanIdentifier the Spring bean ID for this bean
254            */
255            public void setBeanIdentifier(java.lang.String beanIdentifier) {
256                    _passwordPolicyLocalService.setBeanIdentifier(beanIdentifier);
257            }
258    
259            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
260                    long userId, boolean defaultPolicy, java.lang.String name,
261                    java.lang.String description, boolean changeable,
262                    boolean changeRequired, long minAge, boolean checkSyntax,
263                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
264                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
265                    boolean history, int historyCount, boolean expireable, long maxAge,
266                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
267                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return _passwordPolicyLocalService.addPasswordPolicy(userId,
271                            defaultPolicy, name, description, changeable, changeRequired,
272                            minAge, checkSyntax, allowDictionaryWords, minAlphanumeric,
273                            minLength, minLowerCase, minNumbers, minSymbols, minUpperCase,
274                            history, historyCount, expireable, maxAge, warningTime, graceLimit,
275                            lockout, maxFailure, lockoutDuration, resetFailureCount,
276                            resetTicketMaxAge);
277            }
278    
279            public void checkDefaultPasswordPolicy(long companyId)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _passwordPolicyLocalService.checkDefaultPasswordPolicy(companyId);
283            }
284    
285            public com.liferay.portal.model.PasswordPolicy getDefaultPasswordPolicy(
286                    long companyId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _passwordPolicyLocalService.getDefaultPasswordPolicy(companyId);
290            }
291    
292            /**
293            * @deprecated
294            */
295            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
296                    long companyId, long organizationId, long locationId)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
300                            organizationId, locationId);
301            }
302    
303            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
304                    long companyId, long[] organizationIds)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
308                            organizationIds);
309            }
310    
311            public com.liferay.portal.model.PasswordPolicy getPasswordPolicyByUserId(
312                    long userId)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _passwordPolicyLocalService.getPasswordPolicyByUserId(userId);
316            }
317    
318            public java.util.List<com.liferay.portal.model.PasswordPolicy> search(
319                    long companyId, java.lang.String name, int start, int end,
320                    com.liferay.portal.kernel.util.OrderByComparator obc)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _passwordPolicyLocalService.search(companyId, name, start, end,
323                            obc);
324            }
325    
326            public int searchCount(long companyId, java.lang.String name)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return _passwordPolicyLocalService.searchCount(companyId, name);
329            }
330    
331            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
332                    long passwordPolicyId, java.lang.String name,
333                    java.lang.String description, boolean changeable,
334                    boolean changeRequired, long minAge, boolean checkSyntax,
335                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
336                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
337                    boolean history, int historyCount, boolean expireable, long maxAge,
338                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
339                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicyId,
343                            name, description, changeable, changeRequired, minAge, checkSyntax,
344                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
345                            minNumbers, minSymbols, minUpperCase, history, historyCount,
346                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
347                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
348            }
349    
350            /**
351             * @deprecated Renamed to {@link #getWrappedService}
352             */
353            public PasswordPolicyLocalService getWrappedPasswordPolicyLocalService() {
354                    return _passwordPolicyLocalService;
355            }
356    
357            /**
358             * @deprecated Renamed to {@link #setWrappedService}
359             */
360            public void setWrappedPasswordPolicyLocalService(
361                    PasswordPolicyLocalService passwordPolicyLocalService) {
362                    _passwordPolicyLocalService = passwordPolicyLocalService;
363            }
364    
365            public PasswordPolicyLocalService getWrappedService() {
366                    return _passwordPolicyLocalService;
367            }
368    
369            public void setWrappedService(
370                    PasswordPolicyLocalService passwordPolicyLocalService) {
371                    _passwordPolicyLocalService = passwordPolicyLocalService;
372            }
373    
374            private PasswordPolicyLocalService _passwordPolicyLocalService;
375    }