Changeset 9201 in josm
- Timestamp:
- 2015-12-28T17:10:17+01:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/oauth/OsmPrivileges.java
r8510 r9201 2 2 package org.openstreetmap.josm.data.oauth; 3 3 4 /** 5 * List of permissions granted to the current OSM connection. 6 * @since 2747 7 */ 4 8 public class OsmPrivileges { 5 9 private boolean allowWriteApi; … … 10 14 private boolean allowModifyNotes; 11 15 16 /** 17 * Determines if the client is allowed to modify the map. 18 * @return {@code true} if the client is allowed to modify the map, {@code false} otherwise 19 */ 12 20 public boolean isAllowWriteApi() { 13 21 return allowWriteApi; 14 22 } 15 23 24 /** 25 * Sets whether the client is allowed to modify the map. 26 * @param allowWriteApi {@code true} if the client is allowed to modify the map, {@code false} otherwise 27 */ 16 28 public void setAllowWriteApi(boolean allowWriteApi) { 17 29 this.allowWriteApi = allowWriteApi; 18 30 } 19 31 32 /** 33 * Determines if the client is allowed to upload GPS traces. 34 * @return {@code true} if the client is allowed to upload GPS traces, {@code false} otherwise 35 */ 20 36 public boolean isAllowWriteGpx() { 21 37 return allowWriteGpx; 22 38 } 23 39 40 /** 41 * Sets whether the client is allowed to upload GPS traces. 42 * @param allowWriteGpx {@code true} if the client is allowed to upload GPS traces, {@code false} otherwise 43 */ 24 44 public void setAllowWriteGpx(boolean allowWriteGpx) { 25 45 this.allowWriteGpx = allowWriteGpx; 26 46 } 27 47 48 /** 49 * Determines if the client is allowed to read private GPS traces. 50 * @return {@code true} if the client is allowed to read private GPS traces, {@code false} otherwise 51 */ 28 52 public boolean isAllowReadGpx() { 29 53 return allowReadGpx; 30 54 } 31 55 56 /** 57 * Sets whether the client is allowed to read private GPS traces. 58 * @param allowReadGpx {@code true} if the client is allowed to read private GPS traces, {@code false} otherwise 59 */ 32 60 public void setAllowReadGpx(boolean allowReadGpx) { 33 61 this.allowReadGpx = allowReadGpx; 34 62 } 35 63 64 /** 65 * Determines if the client is allowed to read user preferences. 66 * @return {@code true} if the client is allowed to read user preferences, {@code false} otherwise 67 */ 36 68 public boolean isAllowReadPrefs() { 37 69 return allowReadPrefs; 38 70 } 39 71 72 /** 73 * Sets whether the client is allowed to read user preferences. 74 * @param allowReadPrefs {@code true} if the client is allowed to read user preferences, {@code false} otherwise 75 */ 40 76 public void setAllowReadPrefs(boolean allowReadPrefs) { 41 77 this.allowReadPrefs = allowReadPrefs; 42 78 } 43 79 80 /** 81 * Determines if the client is allowed to modify user preferences. 82 * @return {@code true} if the client is allowed to modify user preferences, {@code false} otherwise 83 */ 44 84 public boolean isAllowWritePrefs() { 45 85 return allowWritePrefs; 46 86 } 47 87 88 /** 89 * Sets whether the client is allowed to modify user preferences. 90 * @param allowWritePrefs {@code true} if the client is allowed to modify user preferences, {@code false} otherwise 91 */ 48 92 public void setAllowWritePrefs(boolean allowWritePrefs) { 49 93 this.allowWritePrefs = allowWritePrefs; 50 94 } 51 95 96 /** 97 * Determines if the client is allowed to modify notes. 98 * @return {@code true} if the client is allowed to modify notes, {@code false} otherwise 99 */ 52 100 public boolean isAllowModifyNotes() { 53 101 return allowModifyNotes; 54 102 } 55 103 104 /** 105 * Sets whether the client is allowed to modify notes. 106 * @param allowModifyNotes {@code true} if the client is allowed to modify notes, {@code false} otherwise 107 */ 56 108 public void setAllowModifyNotes(boolean allowModifyNotes) { 57 109 this.allowModifyNotes = allowModifyNotes;
Note:
See TracChangeset
for help on using the changeset viewer.