001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 to add
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 to delete
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 to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deletePasswordPolicy(
077                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _passwordPolicyLocalService.deletePasswordPolicy(passwordPolicy);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _passwordPolicyLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the password policy with the primary key.
155            *
156            * @param passwordPolicyId the primary key of the password policy to get
157            * @return the password policy
158            * @throws PortalException if a password policy with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
162                    long passwordPolicyId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _passwordPolicyLocalService.getPasswordPolicy(passwordPolicyId);
166            }
167    
168            /**
169            * Gets a range of all the password policies.
170            *
171            * <p>
172            * 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.
173            * </p>
174            *
175            * @param start the lower bound of the range of password policies to return
176            * @param end the upper bound of the range of password policies to return (not inclusive)
177            * @return the range of password policies
178            * @throws SystemException if a system exception occurred
179            */
180            public java.util.List<com.liferay.portal.model.PasswordPolicy> getPasswordPolicies(
181                    int start, int end)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _passwordPolicyLocalService.getPasswordPolicies(start, end);
184            }
185    
186            /**
187            * Gets the number of password policies.
188            *
189            * @return the number of password policies
190            * @throws SystemException if a system exception occurred
191            */
192            public int getPasswordPoliciesCount()
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _passwordPolicyLocalService.getPasswordPoliciesCount();
195            }
196    
197            /**
198            * Updates the password policy in the database. Also notifies the appropriate model listeners.
199            *
200            * @param passwordPolicy the password policy to update
201            * @return the password policy that was updated
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
205                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicy);
208            }
209    
210            /**
211            * Updates the password policy in the database. Also notifies the appropriate model listeners.
212            *
213            * @param passwordPolicy the password policy to update
214            * @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.
215            * @return the password policy that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
219                    com.liferay.portal.model.PasswordPolicy passwordPolicy, boolean merge)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicy,
222                            merge);
223            }
224    
225            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
226                    long userId, boolean defaultPolicy, java.lang.String name,
227                    java.lang.String description, boolean changeable,
228                    boolean changeRequired, long minAge, boolean checkSyntax,
229                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
230                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
231                    boolean history, int historyCount, boolean expireable, long maxAge,
232                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
233                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
234                    throws com.liferay.portal.kernel.exception.PortalException,
235                            com.liferay.portal.kernel.exception.SystemException {
236                    return _passwordPolicyLocalService.addPasswordPolicy(userId,
237                            defaultPolicy, name, description, changeable, changeRequired,
238                            minAge, checkSyntax, allowDictionaryWords, minAlphanumeric,
239                            minLength, minLowerCase, minNumbers, minSymbols, minUpperCase,
240                            history, historyCount, expireable, maxAge, warningTime, graceLimit,
241                            lockout, maxFailure, lockoutDuration, resetFailureCount,
242                            resetTicketMaxAge);
243            }
244    
245            public void checkDefaultPasswordPolicy(long companyId)
246                    throws com.liferay.portal.kernel.exception.PortalException,
247                            com.liferay.portal.kernel.exception.SystemException {
248                    _passwordPolicyLocalService.checkDefaultPasswordPolicy(companyId);
249            }
250    
251            public com.liferay.portal.model.PasswordPolicy getDefaultPasswordPolicy(
252                    long companyId)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return _passwordPolicyLocalService.getDefaultPasswordPolicy(companyId);
256            }
257    
258            /**
259            * @deprecated
260            */
261            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
262                    long companyId, long organizationId, long locationId)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
266                            organizationId, locationId);
267            }
268    
269            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
270                    long companyId, long[] organizationIds)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
274                            organizationIds);
275            }
276    
277            public com.liferay.portal.model.PasswordPolicy getPasswordPolicyByUserId(
278                    long userId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _passwordPolicyLocalService.getPasswordPolicyByUserId(userId);
282            }
283    
284            public java.util.List<com.liferay.portal.model.PasswordPolicy> search(
285                    long companyId, java.lang.String name, int start, int end,
286                    com.liferay.portal.kernel.util.OrderByComparator obc)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return _passwordPolicyLocalService.search(companyId, name, start, end,
289                            obc);
290            }
291    
292            public int searchCount(long companyId, java.lang.String name)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    return _passwordPolicyLocalService.searchCount(companyId, name);
295            }
296    
297            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
298                    long passwordPolicyId, java.lang.String name,
299                    java.lang.String description, boolean changeable,
300                    boolean changeRequired, long minAge, boolean checkSyntax,
301                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
302                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
303                    boolean history, int historyCount, boolean expireable, long maxAge,
304                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
305                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicyId,
309                            name, description, changeable, changeRequired, minAge, checkSyntax,
310                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
311                            minNumbers, minSymbols, minUpperCase, history, historyCount,
312                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
313                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
314            }
315    
316            public PasswordPolicyLocalService getWrappedPasswordPolicyLocalService() {
317                    return _passwordPolicyLocalService;
318            }
319    
320            private PasswordPolicyLocalService _passwordPolicyLocalService;
321    }