- java.lang.Object
-
- java.lang.Enum<PreferenceCategory>
-
- net.bis5.mattermost.model.PreferenceCategory
-
- All Implemented Interfaces:
Serializable,Comparable<PreferenceCategory>,HasCode<PreferenceCategory>
public enum PreferenceCategory extends Enum<PreferenceCategory> implements HasCode<PreferenceCategory>
The type of preference category.- Author:
- Takayuki Maruyama
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADVANCED_SETTINGSAUTHORIZED_OAUTH_APPCUSTOM_STATUSDIRECT_CHANNEL_SHOWDISPLAY_SETTINGSFAVORITE_CHANNELFLAGGED_POSTGROUOP_CHANNEL_SHOWLASTNOTIFICATIONSRECOMMENDED_NEXT_STEPSSIDEBAR_SETTINGSTHEMETUTORIAL_STEPS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()static PreferenceCategoryof(String code)static PreferenceCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static PreferenceCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIRECT_CHANNEL_SHOW
public static final PreferenceCategory DIRECT_CHANNEL_SHOW
-
GROUOP_CHANNEL_SHOW
public static final PreferenceCategory GROUOP_CHANNEL_SHOW
- Since:
- Mattermost Server 5.26
-
TUTORIAL_STEPS
public static final PreferenceCategory TUTORIAL_STEPS
-
ADVANCED_SETTINGS
public static final PreferenceCategory ADVANCED_SETTINGS
-
FLAGGED_POST
public static final PreferenceCategory FLAGGED_POST
-
FAVORITE_CHANNEL
public static final PreferenceCategory FAVORITE_CHANNEL
- Since:
- Mattermost Server 4.1
-
SIDEBAR_SETTINGS
public static final PreferenceCategory SIDEBAR_SETTINGS
- Since:
- Mattermost Server 5.4
-
DISPLAY_SETTINGS
public static final PreferenceCategory DISPLAY_SETTINGS
-
RECOMMENDED_NEXT_STEPS
public static final PreferenceCategory RECOMMENDED_NEXT_STEPS
- Since:
- Mattermost Server 5.38
-
THEME
public static final PreferenceCategory THEME
-
AUTHORIZED_OAUTH_APP
public static final PreferenceCategory AUTHORIZED_OAUTH_APP
-
LAST
public static final PreferenceCategory LAST
-
CUSTOM_STATUS
public static final PreferenceCategory CUSTOM_STATUS
- Since:
- Mattermost Server 5.33
-
NOTIFICATIONS
public static final PreferenceCategory NOTIFICATIONS
-
-
Method Detail
-
values
public static PreferenceCategory[] 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 (PreferenceCategory c : PreferenceCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PreferenceCategory 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
-
of
public static PreferenceCategory of(String code)
-
getCode
public String getCode()
- Specified by:
getCodein interfaceHasCode<PreferenceCategory>
-
-