Skip to content

Commit 7cfa4ef

Browse files
author
Charles Greer
committed
bug:43735 Deprecation of NamespacesManager
1 parent dbde9bc commit 7cfa4ef

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/admin/NamespacesManager.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,52 +23,61 @@
2323
import javax.xml.namespace.NamespaceContext;
2424

2525
/**
26-
* The NamespacesManager provides access and editing for the namespaces defined on the server.
26+
* Deprecated. To configure namespaces on a MarkLogic server, use Management REST API.
2727
*
28-
* To use NamespacesManager, an application must authenticate as rest-admin.
28+
* See <a href="https://docs.marklogic.com/REST/management/app-servers">Management REST API</a>
2929
*/
30+
@Deprecated
3031
public interface NamespacesManager {
3132
/**
3233
* Returns the namespace URI bound to the specified prefix on the server.
3334
* @param prefix the prefix for the binding
3435
* @return the namespace URI
3536
*/
37+
@Deprecated
3638
String readPrefix(String prefix) throws ForbiddenUserException, FailedRequestException;
3739
/**
3840
* Reads all of the namespace bindings from the server.
3941
* @return a namespace context with the bindings
4042
*/
43+
@Deprecated
4144
NamespaceContext readAll() throws ForbiddenUserException, FailedRequestException;
4245
/**
4346
* Creates a namespace binding on the server.
4447
* @param prefix the prefix bound to the URI
4548
* @param namespaceURI the URI bound to the prefix
4649
*/
50+
@Deprecated
4751
void addPrefix(String prefix, String namespaceURI) throws ForbiddenUserException, FailedRequestException;
4852
/**
4953
* Writes a namespace binding on the server.
5054
* @param prefix the prefix bound to the URI
5155
* @param namespaceURI the URI bound to the prefix
5256
*/
57+
@Deprecated
5358
void updatePrefix(String prefix, String namespaceURI) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException;
5459
/**
5560
* Deletes a namespace binding on the server.
5661
* @param prefix the prefix bound to the URI
5762
*/
63+
@Deprecated
5864
void deletePrefix(String prefix) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException;
5965
/**
6066
* Deletes all namespace bindings on the server.
6167
*/
68+
@Deprecated
6269
void deleteAll() throws ForbiddenUserException, FailedRequestException;
6370
/**
6471
* Starts debugging client requests. You can suspend and resume debugging output
6572
* using the methods of the logger.
6673
*
6774
* @param logger the logger that receives debugging output
6875
*/
76+
@Deprecated
6977
void startLogging(RequestLogger logger);
7078
/**
7179
* Stops debugging client requests.
7280
*/
81+
@Deprecated
7382
void stopLogging();
7483
}

marklogic-client-api/src/main/java/com/marklogic/client/admin/ServerConfigurationManager.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,13 @@ void writeConfiguration()
160160
* @return a new manager for query options
161161
*/
162162
QueryOptionsManager newQueryOptionsManager();
163-
/**
164-
* Creates a manager for listing, reading, writing, and deleting
165-
* namespace bindings.
166-
* @return a new manager for namespace bindings
167-
*/
163+
/**
164+
* Deprecated. To configure namespaces on a MarkLogic server, use Management REST API.
165+
* @return a new manager for namespace bindings
166+
*
167+
* See <a href="https://docs.marklogic.com/REST/management/app-servers">Management REST API</a>
168+
*/
169+
@Deprecated
168170
NamespacesManager newNamespacesManager();
169171
/**
170172
* Creates a manager for listing, reading, writing, and deleting

0 commit comments

Comments
 (0)