Class OsmPrivileges
- java.lang.Object
-
- org.openstreetmap.josm.data.oauth.OsmPrivileges
-
public class OsmPrivileges extends java.lang.Object
List of permissions granted to the current OSM connection.- Since:
- 2747
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowModifyNotes
private boolean
allowReadGpx
private boolean
allowReadPrefs
private boolean
allowWriteApi
private boolean
allowWriteDiary
private boolean
allowWriteGpx
private boolean
allowWritePrefs
-
Constructor Summary
Constructors Constructor Description OsmPrivileges()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllowModifyNotes()
Determines if the client is allowed to modify notes.boolean
isAllowReadGpx()
Determines if the client is allowed to read private GPS traces.boolean
isAllowReadPrefs()
Determines if the client is allowed to read user preferences.boolean
isAllowWriteApi()
Determines if the client is allowed to modify the map.boolean
isAllowWriteDiary()
Determines if the client is allowed to write diary.boolean
isAllowWriteGpx()
Determines if the client is allowed to upload GPS traces.boolean
isAllowWritePrefs()
Determines if the client is allowed to modify user preferences.void
setAllowModifyNotes(boolean allowModifyNotes)
Sets whether the client is allowed to modify notes.void
setAllowReadGpx(boolean allowReadGpx)
Sets whether the client is allowed to read private GPS traces.void
setAllowReadPrefs(boolean allowReadPrefs)
Sets whether the client is allowed to read user preferences.void
setAllowWriteApi(boolean allowWriteApi)
Sets whether the client is allowed to modify the map.void
setAllowWriteDiary(boolean allowWriteDiary)
Sets whether the client is allowed to write diary.void
setAllowWriteGpx(boolean allowWriteGpx)
Sets whether the client is allowed to upload GPS traces.void
setAllowWritePrefs(boolean allowWritePrefs)
Sets whether the client is allowed to modify user preferences.
-
-
-
Field Detail
-
allowWriteApi
private boolean allowWriteApi
-
allowWriteGpx
private boolean allowWriteGpx
-
allowReadGpx
private boolean allowReadGpx
-
allowReadPrefs
private boolean allowReadPrefs
-
allowWritePrefs
private boolean allowWritePrefs
-
allowModifyNotes
private boolean allowModifyNotes
-
allowWriteDiary
private boolean allowWriteDiary
-
-
Constructor Detail
-
OsmPrivileges
public OsmPrivileges()
-
-
Method Detail
-
isAllowWriteApi
public boolean isAllowWriteApi()
Determines if the client is allowed to modify the map.- Returns:
true
if the client is allowed to modify the map,false
otherwise
-
setAllowWriteApi
public void setAllowWriteApi(boolean allowWriteApi)
Sets whether the client is allowed to modify the map.- Parameters:
allowWriteApi
-true
if the client is allowed to modify the map,false
otherwise
-
isAllowWriteGpx
public boolean isAllowWriteGpx()
Determines if the client is allowed to upload GPS traces.- Returns:
true
if the client is allowed to upload GPS traces,false
otherwise
-
setAllowWriteGpx
public void setAllowWriteGpx(boolean allowWriteGpx)
Sets whether the client is allowed to upload GPS traces.- Parameters:
allowWriteGpx
-true
if the client is allowed to upload GPS traces,false
otherwise
-
isAllowReadGpx
public boolean isAllowReadGpx()
Determines if the client is allowed to read private GPS traces.- Returns:
true
if the client is allowed to read private GPS traces,false
otherwise
-
setAllowReadGpx
public void setAllowReadGpx(boolean allowReadGpx)
Sets whether the client is allowed to read private GPS traces.- Parameters:
allowReadGpx
-true
if the client is allowed to read private GPS traces,false
otherwise
-
isAllowReadPrefs
public boolean isAllowReadPrefs()
Determines if the client is allowed to read user preferences.- Returns:
true
if the client is allowed to read user preferences,false
otherwise
-
setAllowReadPrefs
public void setAllowReadPrefs(boolean allowReadPrefs)
Sets whether the client is allowed to read user preferences.- Parameters:
allowReadPrefs
-true
if the client is allowed to read user preferences,false
otherwise
-
isAllowWritePrefs
public boolean isAllowWritePrefs()
Determines if the client is allowed to modify user preferences.- Returns:
true
if the client is allowed to modify user preferences,false
otherwise
-
setAllowWritePrefs
public void setAllowWritePrefs(boolean allowWritePrefs)
Sets whether the client is allowed to modify user preferences.- Parameters:
allowWritePrefs
-true
if the client is allowed to modify user preferences,false
otherwise
-
isAllowModifyNotes
public boolean isAllowModifyNotes()
Determines if the client is allowed to modify notes.- Returns:
true
if the client is allowed to modify notes,false
otherwise
-
setAllowModifyNotes
public void setAllowModifyNotes(boolean allowModifyNotes)
Sets whether the client is allowed to modify notes.- Parameters:
allowModifyNotes
-true
if the client is allowed to modify notes,false
otherwise
-
isAllowWriteDiary
public boolean isAllowWriteDiary()
Determines if the client is allowed to write diary.- Returns:
true
if the client is allowed to write diary,false
otherwise- Since:
- 17972
-
setAllowWriteDiary
public void setAllowWriteDiary(boolean allowWriteDiary)
Sets whether the client is allowed to write diary.- Parameters:
allowWriteDiary
-true
if the client is allowed to write diary,false
otherwise- Since:
- 17972
-
-