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