Enum Class OsmScopes
- All Implemented Interfaces:
Serializable,Comparable<OsmScopes>,Constable
The possible scopes for OSM
- Since:
- 18650
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRead private GPS tracesRead user preferencesModify the mapWrite diary postsUpload GPS tracesModify notesModify user preferences -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OsmScopes[]Get the scopes JOSM requests when it is authorized.static OsmScopesReturns the enum constant of this class with the specified name.static OsmScopes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
read_prefs
Read user preferences -
write_prefs
Modify user preferences -
write_diary
Write diary posts -
write_api
Modify the map -
read_gpx
Read private GPS traces -
write_gpx
Upload GPS traces -
write_notes
Modify notes
-
-
Constructor Details
-
OsmScopes
private OsmScopes()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getJosmScopes
Get the scopes JOSM requests when it is authorized. An OAuth 2.0 application which JOSM is to use must be registered with at least these.- Returns:
- the scopes, in the order they are requested
- Since:
- 19707
-