Interface FlagData
public interface FlagData
Represents flag permission data stored in a
FlagDefinition.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FlagData.Builderbuilder()Gets a new claim builder instance forFlagData.Builder.Gets theContext's associated with this data.getFlag()Gets theFlagassociated with this data.default booleanChecks ifFlagDatamatches this data.boolean
-
Method Details
-
getFlag
Flag getFlag()Gets theFlagassociated with this data.- Returns:
- The flag
-
getContexts
Gets theContext's associated with this data.- Returns:
- The contexts
-
matches
Checks ifFlagDatamatches this data.- Parameters:
flagData- The flag data to check- Returns:
- Whether this data matches
-
matches
- Parameters:
flag- The flag to checkcontexts- The contexts to check- Returns:
- Whether this data matches
-
builder
Gets a new claim builder instance forFlagData.Builder.- Returns:
- A new claim builder instance
-