Class SingletonSubResource


  • public final class SingletonSubResource
    extends SubResource
    Represents a one-to-one relationship between a parent resource and a child sub-resource. Removal of the parent resource implies that the child (the sub-resource) is also removed. Singletons only support read, update, patch, and action CREST requests.
    • Method Detail

      • urlTemplate

        public SingletonSubResource urlTemplate​(String urlTemplate)
        Sets the relative URL template of the single sub-resource. The template must comprise of at least one path element. Any URL template variables will be substituted into the DN template.
        Parameters:
        urlTemplate - The relative URL template.
        Returns:
        A reference to this object.
      • dnTemplate

        public SingletonSubResource dnTemplate​(String dnTemplate)
        Sets the relative DN template of the single sub-resource LDAP entry. The template must comprise of at least one RDN. Any DN template variables will be substituted using values extracted from the URL template.
        Parameters:
        dnTemplate - The relative DN template.
        Returns:
        A reference to this object.
      • isReadOnly

        public SingletonSubResource isReadOnly​(boolean readOnly)
        Indicates whether this sub-resource singleton only supports read operations.
        Parameters:
        readOnly - true if this sub-resource singleton is read-only.
        Returns:
        A reference to this object.