Ignore:
Timestamp:
2018-02-24T18:58:28+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #8039, fix #10456: final fixes for the read-only/locked layers:

  • rename "read-only" to "locked" (in XML and Java classes/interfaces)
  • add a new download policy (true/never) to allow private layers forbidding only to download data, but allowing everything else

This leads to:

  • normal layers: download allowed, modifications allowed, upload allowed
  • private layers: download allowed or not (download=true/never), modifications allowed, upload allowed or not (upload=true/discouraged/never)
  • locked layers: nothing allowed, the data cannot be modified in any way
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Lockable.java

    r13452 r13453  
    33
    44/**
    5  * To be implemented by modifiable objects to offer a "read-only" mode.
    6  * @since 13434
     5 * To be implemented by modifiable objects to offer a "read-only/locked" mode.
     6 * @since 13453
    77 */
    8 public interface ReadOnly {
     8public interface Lockable {
    99
    1010    /**
    11      * Enables the read-only mode.
     11     * Enables the read-only/locked mode.
    1212     */
    13     void setReadOnly();
     13    void lock();
    1414
    1515    /**
    16      * Disables the read-only mode.
     16     * Disables the read-only/locked mode.
    1717     */
    18     void unsetReadOnly();
     18    void unlock();
    1919
    2020    /**
    21      * Determines if this is read-only (thus it cannot be modified).
    22      * @return {@code true} if this is read-only
     21     * Determines if this is read-only/locked (thus it cannot be modified).
     22     * @return {@code true} if this is read-only/locked
    2323     */
    24     boolean isReadOnly();
     24    boolean isLocked();
    2525}
Note: See TracChangeset for help on using the changeset viewer.