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