Enum StaticContentNature
- java.lang.Object
-
- java.lang.Enum<StaticContentNature>
-
- org.cyclos.model.contentmanagement.staticcontents.StaticContentNature
-
- All Implemented Interfaces:
Serializable,Comparable<StaticContentNature>,HasMessageKey
public enum StaticContentNature extends Enum<StaticContentNature> implements HasMessageKey
It represents the different static pages associated to a configuration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN_HELPEMAIL_TEMPLATEFOOTERFRONTEND_DASHBOARDFRONTEND_FOOTERFRONTEND_HELPFRONTEND_HOMEGUEST_HOMEHEADERHOMELOGGED_USER_HOMELOGIN_FOOTERLOGIN_HEADERMOBILE_HELPMOBILE_POS_HELPPAY_FOOTERPAY_HEADERUSER_HELPWELCOME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowVariables()MessageKeygetMessageKey()booleanisHelpContent()static List<StaticContentNature>mobileNatures()StaticContentTypetype()static StaticContentNaturevalueOf(String name)Returns the enum constant of this type with the specified name.static StaticContentNature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEADER
public static final StaticContentNature HEADER
-
FOOTER
public static final StaticContentNature FOOTER
-
LOGGED_USER_HOME
public static final StaticContentNature LOGGED_USER_HOME
-
GUEST_HOME
public static final StaticContentNature GUEST_HOME
-
ADMIN_HELP
public static final StaticContentNature ADMIN_HELP
-
USER_HELP
public static final StaticContentNature USER_HELP
-
FRONTEND_HOME
public static final StaticContentNature FRONTEND_HOME
-
FRONTEND_DASHBOARD
public static final StaticContentNature FRONTEND_DASHBOARD
-
FRONTEND_FOOTER
public static final StaticContentNature FRONTEND_FOOTER
-
FRONTEND_HELP
public static final StaticContentNature FRONTEND_HELP
-
WELCOME
public static final StaticContentNature WELCOME
-
HOME
public static final StaticContentNature HOME
-
LOGIN_HEADER
public static final StaticContentNature LOGIN_HEADER
-
LOGIN_FOOTER
public static final StaticContentNature LOGIN_FOOTER
-
MOBILE_HELP
public static final StaticContentNature MOBILE_HELP
-
MOBILE_POS_HELP
public static final StaticContentNature MOBILE_POS_HELP
-
PAY_HEADER
public static final StaticContentNature PAY_HEADER
-
PAY_FOOTER
public static final StaticContentNature PAY_FOOTER
-
EMAIL_TEMPLATE
public static final StaticContentNature EMAIL_TEMPLATE
-
-
Method Detail
-
values
public static StaticContentNature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StaticContentNature c : StaticContentNature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StaticContentNature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
mobileNatures
public static List<StaticContentNature> mobileNatures()
-
allowVariables
public boolean allowVariables()
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
isHelpContent
public boolean isHelpContent()
-
type
public StaticContentType type()
-
-