Package org.keycloak.common
Class Profile
- java.lang.Object
-
- org.keycloak.common.Profile
-
public class Profile extends Object
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProfile.Featurestatic classProfile.ProfileName
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Profileconfigure(ProfileConfigResolver... resolvers)static Profiledefaults()Set<Profile.Feature>getAllFeatures()Set<Profile.Feature>getDeprecatedFeatures()Set<Profile.Feature>getDisabledFeatures()Set<Profile.Feature>getExperimentalFeatures()Map<Profile.Feature,Boolean>getFeatures()Set<Profile.Feature>getFeatures(Profile.Feature.Type type)static ProfilegetInstance()Profile.ProfileNamegetName()Set<Profile.Feature>getPreviewFeatures()static Profileinit(Profile.ProfileName profileName, Map<Profile.Feature,Boolean> features)static booleanisFeatureEnabled(Profile.Feature feature)
-
-
-
Method Detail
-
defaults
public static Profile defaults()
-
configure
public static Profile configure(ProfileConfigResolver... resolvers)
-
init
public static Profile init(Profile.ProfileName profileName, Map<Profile.Feature,Boolean> features)
-
getInstance
public static Profile getInstance()
-
isFeatureEnabled
public static boolean isFeatureEnabled(Profile.Feature feature)
-
getName
public Profile.ProfileName getName()
-
getAllFeatures
public Set<Profile.Feature> getAllFeatures()
-
getDisabledFeatures
public Set<Profile.Feature> getDisabledFeatures()
-
getPreviewFeatures
public Set<Profile.Feature> getPreviewFeatures()
- Returns:
- all features of type "preview" or "preview_disabled_by_default"
-
getExperimentalFeatures
public Set<Profile.Feature> getExperimentalFeatures()
-
getDeprecatedFeatures
public Set<Profile.Feature> getDeprecatedFeatures()
-
getFeatures
public Set<Profile.Feature> getFeatures(Profile.Feature.Type type)
-
getFeatures
public Map<Profile.Feature,Boolean> getFeatures()
-
-