| File was renamed from opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/NameStrategy.java |
| | |
| | | import org.forgerock.opendj.ldap.requests.SearchRequest; |
| | | |
| | | /** |
| | | * A name strategy is responsible for naming REST resources and LDAP entries. |
| | | * A naming strategy is responsible for naming REST resources and LDAP entries. |
| | | */ |
| | | abstract class NameStrategy { |
| | | abstract class NamingStrategy { |
| | | /* |
| | | * This interface is an abstract class so that methods can be made package |
| | | * private until API is finalized. |
| | | */ |
| | | |
| | | NameStrategy() { |
| | | NamingStrategy() { |
| | | // Nothing to do. |
| | | } |
| | | |
| | |
| | | abstract SearchRequest createSearchRequest(Connection connection, DN baseDN, String resourceId); |
| | | |
| | | /** |
| | | * Adds the name of any LDAP attribute required by this name strategy to the |
| | | * Adds the name of any LDAP attribute required by this naming strategy to the |
| | | * provided set. |
| | | * |
| | | * @param connection |
| | |
| | | * The set into which any required LDAP attribute name should be |
| | | * put. |
| | | */ |
| | | abstract void getLDAPAttributes(Connection connection, Set<String> ldapAttributes); |
| | | abstract void getLdapAttributes(Connection connection, Set<String> ldapAttributes); |
| | | |
| | | /** |
| | | * Retrieves the resource ID from the provided LDAP entry. Implementations |