|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TermsOfServiceAcceptanceFrequency>
org.silverpeas.termsOfService.constant.TermsOfServiceAcceptanceFrequency
public enum TermsOfServiceAcceptanceFrequency
User: Yohann Chastagnier Date: 10/09/13
Enum Constant Summary | |
---|---|
ALWAYS
|
|
DAILY
|
|
MONTHLY
|
|
NEVER
|
|
ONE
|
|
WEEKLY
|
|
YEARLY
|
Method Summary | |
---|---|
static TermsOfServiceAcceptanceFrequency |
decode(String tosAcceptanceFrequency)
Decode from a string value. |
protected boolean |
isAcceptanceDateExpired(Date referenceDate,
Date tosAcceptanceDate,
String locale)
Indicates if the given acceptance date of terms of service is valid compared to the reference date. |
boolean |
isAcceptanceDateExpired(Date tosAcceptanceDate,
String locale)
Indicates if the given acceptance date of terms of service is valid compared to the current date. |
boolean |
isActivated()
Indicates if terms of service frequency is activated. |
static TermsOfServiceAcceptanceFrequency |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TermsOfServiceAcceptanceFrequency[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TermsOfServiceAcceptanceFrequency NEVER
public static final TermsOfServiceAcceptanceFrequency ONE
public static final TermsOfServiceAcceptanceFrequency DAILY
public static final TermsOfServiceAcceptanceFrequency WEEKLY
public static final TermsOfServiceAcceptanceFrequency MONTHLY
public static final TermsOfServiceAcceptanceFrequency YEARLY
public static final TermsOfServiceAcceptanceFrequency ALWAYS
Method Detail |
---|
public static TermsOfServiceAcceptanceFrequency[] values()
for (TermsOfServiceAcceptanceFrequency c : TermsOfServiceAcceptanceFrequency.values()) System.out.println(c);
public static TermsOfServiceAcceptanceFrequency valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean isActivated()
public boolean isAcceptanceDateExpired(Date tosAcceptanceDate, String locale)
tosAcceptanceDate
- locale
-
protected boolean isAcceptanceDateExpired(Date referenceDate, Date tosAcceptanceDate, String locale)
referenceDate
- tosAcceptanceDate
- locale
-
public static TermsOfServiceAcceptanceFrequency decode(String tosAcceptanceFrequency)
tosAcceptanceFrequency
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |