Interface Scopes
- All Superinterfaces:
Constructible
,Extensible<Scopes>
,Map<String,
String>
Scopes is a property of OAuth Flow Object.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds name of an existing scope object and item parameters to a Scopes instance as a key-value pair in a map.boolean
containsKey
(Object key) Deprecated.since 1.1Deprecated.since 1.1default String
Returns a scope description for a given scope name.Returns a copy map (potentially immutable) of scopes.default boolean
Check whether a scope item is present in the map.Deprecated.since 1.1void
Deprecated.since 1.1Deprecated.since 1.1void
removeScope
(String scope) Removes the given scope item to this Scopes.void
Set the scope items map to this ScopesMethods inherited from interface org.eclipse.microprofile.openapi.models.Extensible
addExtension, extensions, getExtensions, removeExtension, setExtensions
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Method Details
-
addScope
Adds name of an existing scope object and item parameters to a Scopes instance as a key-value pair in a map.- Parameters:
scope
- the name of a scopedescription
- description of the scope. null values will be rejected (implementation will throw an exception) or ignored.- Returns:
- Scopes instance with the added key-value pair
-
removeScope
Removes the given scope item to this Scopes.- Parameters:
scope
- the name of a scope
-
getScopes
Returns a copy map (potentially immutable) of scopes.- Returns:
- all items
-
setScopes
Set the scope items map to this Scopes- Parameters:
items
- key-value pair in a map.
-
hasScope
Check whether a scope item is present in the map. This is a convenience method forgetScopes().containsKey(name)
- Parameters:
scope
- the name of a scope.- Returns:
- a boolean to indicate if the scope item is present or not.
-
getScope
Returns a scope description for a given scope name. This is a convenience method forgetScopes().get(name)
- Parameters:
scope
- the name of a scope.- Returns:
- the corresponding description or null.
-
get
Deprecated.since 1.1In the next version,Scopes
will no longer extendsMap
, this method will no longer be present. UsegetScope(String)
instead. -
containsKey
Deprecated.since 1.1In the next version,Scopes
will no longer extendsMap
, this method will no longer be present. UsehasScope(String)
instead.- Specified by:
containsKey
in interfaceMap<String,
String>
-
put
Deprecated.since 1.1In the next version,Scopes
will no longer extendsMap
, this method will no longer be present. UseaddScope(String, String)
instead. -
putAll
Deprecated.since 1.1In the next version,Scopes
will no longer extendsMap
, this method will no longer be present. UsesetScopes(Map)
instead. -
remove
Deprecated.since 1.1In the next version,Scopes
will no longer extendsMap
, this method will no longer be present. UseremoveScope(String)
instead.
-