Class OsmPrivileges


  • public class OsmPrivileges
    extends Object
    List of permissions granted to the current OSM connection.
    Since:
    2747
    • 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