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 booleanallowModifyNotesprivate booleanallowReadGpxprivate booleanallowReadPrefsprivate booleanallowWriteApiprivate booleanallowWriteDiaryprivate booleanallowWriteGpxprivate booleanallowWritePrefs
-
Constructor Summary
Constructors Constructor Description OsmPrivileges()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAllowModifyNotes()Determines if the client is allowed to modify notes.booleanisAllowReadGpx()Determines if the client is allowed to read private GPS traces.booleanisAllowReadPrefs()Determines if the client is allowed to read user preferences.booleanisAllowWriteApi()Determines if the client is allowed to modify the map.booleanisAllowWriteDiary()Determines if the client is allowed to write diary.booleanisAllowWriteGpx()Determines if the client is allowed to upload GPS traces.booleanisAllowWritePrefs()Determines if the client is allowed to modify user preferences.voidsetAllowModifyNotes(boolean allowModifyNotes)Sets whether the client is allowed to modify notes.voidsetAllowReadGpx(boolean allowReadGpx)Sets whether the client is allowed to read private GPS traces.voidsetAllowReadPrefs(boolean allowReadPrefs)Sets whether the client is allowed to read user preferences.voidsetAllowWriteApi(boolean allowWriteApi)Sets whether the client is allowed to modify the map.voidsetAllowWriteDiary(boolean allowWriteDiary)Sets whether the client is allowed to write diary.voidsetAllowWriteGpx(boolean allowWriteGpx)Sets whether the client is allowed to upload GPS traces.voidsetAllowWritePrefs(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:
trueif the client is allowed to modify the map,falseotherwise
-
setAllowWriteApi
public void setAllowWriteApi(boolean allowWriteApi)
Sets whether the client is allowed to modify the map.- Parameters:
allowWriteApi-trueif the client is allowed to modify the map,falseotherwise
-
isAllowWriteGpx
public boolean isAllowWriteGpx()
Determines if the client is allowed to upload GPS traces.- Returns:
trueif the client is allowed to upload GPS traces,falseotherwise
-
setAllowWriteGpx
public void setAllowWriteGpx(boolean allowWriteGpx)
Sets whether the client is allowed to upload GPS traces.- Parameters:
allowWriteGpx-trueif the client is allowed to upload GPS traces,falseotherwise
-
isAllowReadGpx
public boolean isAllowReadGpx()
Determines if the client is allowed to read private GPS traces.- Returns:
trueif the client is allowed to read private GPS traces,falseotherwise
-
setAllowReadGpx
public void setAllowReadGpx(boolean allowReadGpx)
Sets whether the client is allowed to read private GPS traces.- Parameters:
allowReadGpx-trueif the client is allowed to read private GPS traces,falseotherwise
-
isAllowReadPrefs
public boolean isAllowReadPrefs()
Determines if the client is allowed to read user preferences.- Returns:
trueif the client is allowed to read user preferences,falseotherwise
-
setAllowReadPrefs
public void setAllowReadPrefs(boolean allowReadPrefs)
Sets whether the client is allowed to read user preferences.- Parameters:
allowReadPrefs-trueif the client is allowed to read user preferences,falseotherwise
-
isAllowWritePrefs
public boolean isAllowWritePrefs()
Determines if the client is allowed to modify user preferences.- Returns:
trueif the client is allowed to modify user preferences,falseotherwise
-
setAllowWritePrefs
public void setAllowWritePrefs(boolean allowWritePrefs)
Sets whether the client is allowed to modify user preferences.- Parameters:
allowWritePrefs-trueif the client is allowed to modify user preferences,falseotherwise
-
isAllowModifyNotes
public boolean isAllowModifyNotes()
Determines if the client is allowed to modify notes.- Returns:
trueif the client is allowed to modify notes,falseotherwise
-
setAllowModifyNotes
public void setAllowModifyNotes(boolean allowModifyNotes)
Sets whether the client is allowed to modify notes.- Parameters:
allowModifyNotes-trueif the client is allowed to modify notes,falseotherwise
-
isAllowWriteDiary
public boolean isAllowWriteDiary()
Determines if the client is allowed to write diary.- Returns:
trueif the client is allowed to write diary,falseotherwise- Since:
- 17972
-
setAllowWriteDiary
public void setAllowWriteDiary(boolean allowWriteDiary)
Sets whether the client is allowed to write diary.- Parameters:
allowWriteDiary-trueif the client is allowed to write diary,falseotherwise- Since:
- 17972
-
-