Changeset 16127 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-03-15T00:03:59+01:00 (4 years ago)
Author:
Don-vip
Message:

see #17285 - add privacy-policy-url

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r16101 r16127  
    260260    /** Text of a text attribution displayed when using the imagery */
    261261    private String attributionText;
     262    /** Link to the privacy policy of the operator */
     263    private String privacyPolicyURL;
    262264    /** Link to a reference stating the permission for OSM usage */
    263265    private String permissionReferenceURL;
     
    828830    }
    829831
     832    /**
     833     * Return the privacy policy URL.
     834     * @return The url
     835     * @see #setPrivacyPolicyURL
     836     * @since 16127
     837     */
     838    public String getPrivacyPolicyURL() {
     839        return privacyPolicyURL;
     840    }
     841
    830842    @Override
    831843    public Image getAttributionImage() {
     
    905917    public void setPermissionReferenceURL(String url) {
    906918        permissionReferenceURL = url;
     919    }
     920
     921    /**
     922     * Sets the privacy policy URL.
     923     * @param url The url.
     924     * @see #getPrivacyPolicyURL()
     925     * @since 16127
     926     */
     927    public void setPrivacyPolicyURL(String url) {
     928        privacyPolicyURL = url;
    907929    }
    908930
  • trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java

    r15716 r16127  
    220220                        "terms-of-use-text",
    221221                        "terms-of-use-url",
     222                        "privacy-policy-url",
    222223                        "permission-ref",
    223224                        "country-code",
     
    485486                    entry.setTermsOfUseText(accumulator.toString());
    486487                    break;
     488                case "privacy-policy-url":
     489                    entry.setPrivacyPolicyURL(accumulator.toString());
     490                    break;
    487491                case "permission-ref":
    488492                    entry.setPermissionReferenceURL(accumulator.toString());
Note: See TracChangeset for help on using the changeset viewer.