Package org.forgerock.opendj.rest2ldap
Class SingletonSubResource
- java.lang.Object
-
- org.forgerock.opendj.rest2ldap.SubResource
-
- org.forgerock.opendj.rest2ldap.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingletonSubResource
dnTemplate(String dnTemplate)
Sets the relative DN template of the single sub-resource LDAP entry.SingletonSubResource
isReadOnly(boolean readOnly)
Indicates whether this sub-resource singleton only supports read operations.String
toString()
SingletonSubResource
urlTemplate(String urlTemplate)
Sets the relative URL template of the single sub-resource.-
Methods inherited from class org.forgerock.opendj.rest2ldap.SubResource
equals, hashCode
-
-
-
-
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 theDN 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 theURL 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.
-
toString
public String toString()
- Specified by:
toString
in classSubResource
-
-