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.model;
016    
017    import com.liferay.portal.kernel.bean.AutoEscape;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.service.ServiceContext;
020    
021    import com.liferay.portlet.expando.model.ExpandoBridge;
022    
023    import java.io.Serializable;
024    
025    import java.util.Date;
026    
027    /**
028     * The base model interface for the PasswordPolicy service. Represents a row in the "PasswordPolicy" database table, with each column mapped to a property of this class.
029     *
030     * <p>
031     * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.PasswordPolicyModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portal.model.impl.PasswordPolicyImpl}.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see PasswordPolicy
036     * @see com.liferay.portal.model.impl.PasswordPolicyImpl
037     * @see com.liferay.portal.model.impl.PasswordPolicyModelImpl
038     * @generated
039     */
040    public interface PasswordPolicyModel extends AuditedModel,
041            BaseModel<PasswordPolicy> {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. All methods that expect a password policy model instance should use the {@link PasswordPolicy} interface instead.
046             */
047    
048            /**
049             * Returns the primary key of this password policy.
050             *
051             * @return the primary key of this password policy
052             */
053            public long getPrimaryKey();
054    
055            /**
056             * Sets the primary key of this password policy.
057             *
058             * @param primaryKey the primary key of this password policy
059             */
060            public void setPrimaryKey(long primaryKey);
061    
062            /**
063             * Returns the password policy ID of this password policy.
064             *
065             * @return the password policy ID of this password policy
066             */
067            public long getPasswordPolicyId();
068    
069            /**
070             * Sets the password policy ID of this password policy.
071             *
072             * @param passwordPolicyId the password policy ID of this password policy
073             */
074            public void setPasswordPolicyId(long passwordPolicyId);
075    
076            /**
077             * Returns the company ID of this password policy.
078             *
079             * @return the company ID of this password policy
080             */
081            public long getCompanyId();
082    
083            /**
084             * Sets the company ID of this password policy.
085             *
086             * @param companyId the company ID of this password policy
087             */
088            public void setCompanyId(long companyId);
089    
090            /**
091             * Returns the user ID of this password policy.
092             *
093             * @return the user ID of this password policy
094             */
095            public long getUserId();
096    
097            /**
098             * Sets the user ID of this password policy.
099             *
100             * @param userId the user ID of this password policy
101             */
102            public void setUserId(long userId);
103    
104            /**
105             * Returns the user uuid of this password policy.
106             *
107             * @return the user uuid of this password policy
108             * @throws SystemException if a system exception occurred
109             */
110            public String getUserUuid() throws SystemException;
111    
112            /**
113             * Sets the user uuid of this password policy.
114             *
115             * @param userUuid the user uuid of this password policy
116             */
117            public void setUserUuid(String userUuid);
118    
119            /**
120             * Returns the user name of this password policy.
121             *
122             * @return the user name of this password policy
123             */
124            @AutoEscape
125            public String getUserName();
126    
127            /**
128             * Sets the user name of this password policy.
129             *
130             * @param userName the user name of this password policy
131             */
132            public void setUserName(String userName);
133    
134            /**
135             * Returns the create date of this password policy.
136             *
137             * @return the create date of this password policy
138             */
139            public Date getCreateDate();
140    
141            /**
142             * Sets the create date of this password policy.
143             *
144             * @param createDate the create date of this password policy
145             */
146            public void setCreateDate(Date createDate);
147    
148            /**
149             * Returns the modified date of this password policy.
150             *
151             * @return the modified date of this password policy
152             */
153            public Date getModifiedDate();
154    
155            /**
156             * Sets the modified date of this password policy.
157             *
158             * @param modifiedDate the modified date of this password policy
159             */
160            public void setModifiedDate(Date modifiedDate);
161    
162            /**
163             * Returns the default policy of this password policy.
164             *
165             * @return the default policy of this password policy
166             */
167            public boolean getDefaultPolicy();
168    
169            /**
170             * Returns <code>true</code> if this password policy is default policy.
171             *
172             * @return <code>true</code> if this password policy is default policy; <code>false</code> otherwise
173             */
174            public boolean isDefaultPolicy();
175    
176            /**
177             * Sets whether this password policy is default policy.
178             *
179             * @param defaultPolicy the default policy of this password policy
180             */
181            public void setDefaultPolicy(boolean defaultPolicy);
182    
183            /**
184             * Returns the name of this password policy.
185             *
186             * @return the name of this password policy
187             */
188            @AutoEscape
189            public String getName();
190    
191            /**
192             * Sets the name of this password policy.
193             *
194             * @param name the name of this password policy
195             */
196            public void setName(String name);
197    
198            /**
199             * Returns the description of this password policy.
200             *
201             * @return the description of this password policy
202             */
203            @AutoEscape
204            public String getDescription();
205    
206            /**
207             * Sets the description of this password policy.
208             *
209             * @param description the description of this password policy
210             */
211            public void setDescription(String description);
212    
213            /**
214             * Returns the changeable of this password policy.
215             *
216             * @return the changeable of this password policy
217             */
218            public boolean getChangeable();
219    
220            /**
221             * Returns <code>true</code> if this password policy is changeable.
222             *
223             * @return <code>true</code> if this password policy is changeable; <code>false</code> otherwise
224             */
225            public boolean isChangeable();
226    
227            /**
228             * Sets whether this password policy is changeable.
229             *
230             * @param changeable the changeable of this password policy
231             */
232            public void setChangeable(boolean changeable);
233    
234            /**
235             * Returns the change required of this password policy.
236             *
237             * @return the change required of this password policy
238             */
239            public boolean getChangeRequired();
240    
241            /**
242             * Returns <code>true</code> if this password policy is change required.
243             *
244             * @return <code>true</code> if this password policy is change required; <code>false</code> otherwise
245             */
246            public boolean isChangeRequired();
247    
248            /**
249             * Sets whether this password policy is change required.
250             *
251             * @param changeRequired the change required of this password policy
252             */
253            public void setChangeRequired(boolean changeRequired);
254    
255            /**
256             * Returns the min age of this password policy.
257             *
258             * @return the min age of this password policy
259             */
260            public long getMinAge();
261    
262            /**
263             * Sets the min age of this password policy.
264             *
265             * @param minAge the min age of this password policy
266             */
267            public void setMinAge(long minAge);
268    
269            /**
270             * Returns the check syntax of this password policy.
271             *
272             * @return the check syntax of this password policy
273             */
274            public boolean getCheckSyntax();
275    
276            /**
277             * Returns <code>true</code> if this password policy is check syntax.
278             *
279             * @return <code>true</code> if this password policy is check syntax; <code>false</code> otherwise
280             */
281            public boolean isCheckSyntax();
282    
283            /**
284             * Sets whether this password policy is check syntax.
285             *
286             * @param checkSyntax the check syntax of this password policy
287             */
288            public void setCheckSyntax(boolean checkSyntax);
289    
290            /**
291             * Returns the allow dictionary words of this password policy.
292             *
293             * @return the allow dictionary words of this password policy
294             */
295            public boolean getAllowDictionaryWords();
296    
297            /**
298             * Returns <code>true</code> if this password policy is allow dictionary words.
299             *
300             * @return <code>true</code> if this password policy is allow dictionary words; <code>false</code> otherwise
301             */
302            public boolean isAllowDictionaryWords();
303    
304            /**
305             * Sets whether this password policy is allow dictionary words.
306             *
307             * @param allowDictionaryWords the allow dictionary words of this password policy
308             */
309            public void setAllowDictionaryWords(boolean allowDictionaryWords);
310    
311            /**
312             * Returns the min alphanumeric of this password policy.
313             *
314             * @return the min alphanumeric of this password policy
315             */
316            public int getMinAlphanumeric();
317    
318            /**
319             * Sets the min alphanumeric of this password policy.
320             *
321             * @param minAlphanumeric the min alphanumeric of this password policy
322             */
323            public void setMinAlphanumeric(int minAlphanumeric);
324    
325            /**
326             * Returns the min length of this password policy.
327             *
328             * @return the min length of this password policy
329             */
330            public int getMinLength();
331    
332            /**
333             * Sets the min length of this password policy.
334             *
335             * @param minLength the min length of this password policy
336             */
337            public void setMinLength(int minLength);
338    
339            /**
340             * Returns the min lower case of this password policy.
341             *
342             * @return the min lower case of this password policy
343             */
344            public int getMinLowerCase();
345    
346            /**
347             * Sets the min lower case of this password policy.
348             *
349             * @param minLowerCase the min lower case of this password policy
350             */
351            public void setMinLowerCase(int minLowerCase);
352    
353            /**
354             * Returns the min numbers of this password policy.
355             *
356             * @return the min numbers of this password policy
357             */
358            public int getMinNumbers();
359    
360            /**
361             * Sets the min numbers of this password policy.
362             *
363             * @param minNumbers the min numbers of this password policy
364             */
365            public void setMinNumbers(int minNumbers);
366    
367            /**
368             * Returns the min symbols of this password policy.
369             *
370             * @return the min symbols of this password policy
371             */
372            public int getMinSymbols();
373    
374            /**
375             * Sets the min symbols of this password policy.
376             *
377             * @param minSymbols the min symbols of this password policy
378             */
379            public void setMinSymbols(int minSymbols);
380    
381            /**
382             * Returns the min upper case of this password policy.
383             *
384             * @return the min upper case of this password policy
385             */
386            public int getMinUpperCase();
387    
388            /**
389             * Sets the min upper case of this password policy.
390             *
391             * @param minUpperCase the min upper case of this password policy
392             */
393            public void setMinUpperCase(int minUpperCase);
394    
395            /**
396             * Returns the history of this password policy.
397             *
398             * @return the history of this password policy
399             */
400            public boolean getHistory();
401    
402            /**
403             * Returns <code>true</code> if this password policy is history.
404             *
405             * @return <code>true</code> if this password policy is history; <code>false</code> otherwise
406             */
407            public boolean isHistory();
408    
409            /**
410             * Sets whether this password policy is history.
411             *
412             * @param history the history of this password policy
413             */
414            public void setHistory(boolean history);
415    
416            /**
417             * Returns the history count of this password policy.
418             *
419             * @return the history count of this password policy
420             */
421            public int getHistoryCount();
422    
423            /**
424             * Sets the history count of this password policy.
425             *
426             * @param historyCount the history count of this password policy
427             */
428            public void setHistoryCount(int historyCount);
429    
430            /**
431             * Returns the expireable of this password policy.
432             *
433             * @return the expireable of this password policy
434             */
435            public boolean getExpireable();
436    
437            /**
438             * Returns <code>true</code> if this password policy is expireable.
439             *
440             * @return <code>true</code> if this password policy is expireable; <code>false</code> otherwise
441             */
442            public boolean isExpireable();
443    
444            /**
445             * Sets whether this password policy is expireable.
446             *
447             * @param expireable the expireable of this password policy
448             */
449            public void setExpireable(boolean expireable);
450    
451            /**
452             * Returns the max age of this password policy.
453             *
454             * @return the max age of this password policy
455             */
456            public long getMaxAge();
457    
458            /**
459             * Sets the max age of this password policy.
460             *
461             * @param maxAge the max age of this password policy
462             */
463            public void setMaxAge(long maxAge);
464    
465            /**
466             * Returns the warning time of this password policy.
467             *
468             * @return the warning time of this password policy
469             */
470            public long getWarningTime();
471    
472            /**
473             * Sets the warning time of this password policy.
474             *
475             * @param warningTime the warning time of this password policy
476             */
477            public void setWarningTime(long warningTime);
478    
479            /**
480             * Returns the grace limit of this password policy.
481             *
482             * @return the grace limit of this password policy
483             */
484            public int getGraceLimit();
485    
486            /**
487             * Sets the grace limit of this password policy.
488             *
489             * @param graceLimit the grace limit of this password policy
490             */
491            public void setGraceLimit(int graceLimit);
492    
493            /**
494             * Returns the lockout of this password policy.
495             *
496             * @return the lockout of this password policy
497             */
498            public boolean getLockout();
499    
500            /**
501             * Returns <code>true</code> if this password policy is lockout.
502             *
503             * @return <code>true</code> if this password policy is lockout; <code>false</code> otherwise
504             */
505            public boolean isLockout();
506    
507            /**
508             * Sets whether this password policy is lockout.
509             *
510             * @param lockout the lockout of this password policy
511             */
512            public void setLockout(boolean lockout);
513    
514            /**
515             * Returns the max failure of this password policy.
516             *
517             * @return the max failure of this password policy
518             */
519            public int getMaxFailure();
520    
521            /**
522             * Sets the max failure of this password policy.
523             *
524             * @param maxFailure the max failure of this password policy
525             */
526            public void setMaxFailure(int maxFailure);
527    
528            /**
529             * Returns the lockout duration of this password policy.
530             *
531             * @return the lockout duration of this password policy
532             */
533            public long getLockoutDuration();
534    
535            /**
536             * Sets the lockout duration of this password policy.
537             *
538             * @param lockoutDuration the lockout duration of this password policy
539             */
540            public void setLockoutDuration(long lockoutDuration);
541    
542            /**
543             * Returns the require unlock of this password policy.
544             *
545             * @return the require unlock of this password policy
546             */
547            public boolean getRequireUnlock();
548    
549            /**
550             * Returns <code>true</code> if this password policy is require unlock.
551             *
552             * @return <code>true</code> if this password policy is require unlock; <code>false</code> otherwise
553             */
554            public boolean isRequireUnlock();
555    
556            /**
557             * Sets whether this password policy is require unlock.
558             *
559             * @param requireUnlock the require unlock of this password policy
560             */
561            public void setRequireUnlock(boolean requireUnlock);
562    
563            /**
564             * Returns the reset failure count of this password policy.
565             *
566             * @return the reset failure count of this password policy
567             */
568            public long getResetFailureCount();
569    
570            /**
571             * Sets the reset failure count of this password policy.
572             *
573             * @param resetFailureCount the reset failure count of this password policy
574             */
575            public void setResetFailureCount(long resetFailureCount);
576    
577            /**
578             * Returns the reset ticket max age of this password policy.
579             *
580             * @return the reset ticket max age of this password policy
581             */
582            public long getResetTicketMaxAge();
583    
584            /**
585             * Sets the reset ticket max age of this password policy.
586             *
587             * @param resetTicketMaxAge the reset ticket max age of this password policy
588             */
589            public void setResetTicketMaxAge(long resetTicketMaxAge);
590    
591            public boolean isNew();
592    
593            public void setNew(boolean n);
594    
595            public boolean isCachedModel();
596    
597            public void setCachedModel(boolean cachedModel);
598    
599            public boolean isEscapedModel();
600    
601            public Serializable getPrimaryKeyObj();
602    
603            public void setPrimaryKeyObj(Serializable primaryKeyObj);
604    
605            public ExpandoBridge getExpandoBridge();
606    
607            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
608    
609            public Object clone();
610    
611            public int compareTo(PasswordPolicy passwordPolicy);
612    
613            public int hashCode();
614    
615            public CacheModel<PasswordPolicy> toCacheModel();
616    
617            public PasswordPolicy toEscapedModel();
618    
619            public PasswordPolicy toUnescapedModel();
620    
621            public String toString();
622    
623            public String toXmlString();
624    }