mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Guy Paddock
27.52.2017 a2a71e1777beb48f98e64811ca6cd43286b79be3
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/SubResource.java
@@ -60,9 +60,10 @@
    String urlTemplate = "";
    String dnTemplateString = "";
    boolean isReadOnly = false;
    Rest2Ldap rest2Ldap;
    Resource resource;
    protected boolean isReadOnly = false;
    protected Rest2Ldap rest2Ldap;
    protected Resource resource;
    SubResource(final String resourceId) {
        this.resourceId = resourceId;
@@ -80,9 +81,27 @@
    @Override
    public final String toString() {
        return getUrlTemplate();
    }
    /**
     * Gets the URL template that must match for this sub-resource to apply to a given request.
     *
     * @return  The URL template for this sub-resource.
     */
    public String getUrlTemplate() {
        return urlTemplate;
    }
    /**
     * Gets whether or not this sub-resource has been configured for read-only access.
     *
     * @return  {@code true} if the sub-resource is read-only; {@code false} otherwise.
     */
    public boolean isReadOnly() {
        return isReadOnly;
    }
    final Resource getResource() {
        return resource;
    }