|
23 | 23 | import javax.xml.namespace.NamespaceContext; |
24 | 24 |
|
25 | 25 | /** |
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. |
27 | 27 | * |
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> |
29 | 29 | */ |
| 30 | +@Deprecated |
30 | 31 | public interface NamespacesManager { |
31 | 32 | /** |
32 | 33 | * Returns the namespace URI bound to the specified prefix on the server. |
33 | 34 | * @param prefix the prefix for the binding |
34 | 35 | * @return the namespace URI |
35 | 36 | */ |
| 37 | + @Deprecated |
36 | 38 | String readPrefix(String prefix) throws ForbiddenUserException, FailedRequestException; |
37 | 39 | /** |
38 | 40 | * Reads all of the namespace bindings from the server. |
39 | 41 | * @return a namespace context with the bindings |
40 | 42 | */ |
| 43 | + @Deprecated |
41 | 44 | NamespaceContext readAll() throws ForbiddenUserException, FailedRequestException; |
42 | 45 | /** |
43 | 46 | * Creates a namespace binding on the server. |
44 | 47 | * @param prefix the prefix bound to the URI |
45 | 48 | * @param namespaceURI the URI bound to the prefix |
46 | 49 | */ |
| 50 | + @Deprecated |
47 | 51 | void addPrefix(String prefix, String namespaceURI) throws ForbiddenUserException, FailedRequestException; |
48 | 52 | /** |
49 | 53 | * Writes a namespace binding on the server. |
50 | 54 | * @param prefix the prefix bound to the URI |
51 | 55 | * @param namespaceURI the URI bound to the prefix |
52 | 56 | */ |
| 57 | + @Deprecated |
53 | 58 | void updatePrefix(String prefix, String namespaceURI) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException; |
54 | 59 | /** |
55 | 60 | * Deletes a namespace binding on the server. |
56 | 61 | * @param prefix the prefix bound to the URI |
57 | 62 | */ |
| 63 | + @Deprecated |
58 | 64 | void deletePrefix(String prefix) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException; |
59 | 65 | /** |
60 | 66 | * Deletes all namespace bindings on the server. |
61 | 67 | */ |
| 68 | + @Deprecated |
62 | 69 | void deleteAll() throws ForbiddenUserException, FailedRequestException; |
63 | 70 | /** |
64 | 71 | * Starts debugging client requests. You can suspend and resume debugging output |
65 | 72 | * using the methods of the logger. |
66 | 73 | * |
67 | 74 | * @param logger the logger that receives debugging output |
68 | 75 | */ |
| 76 | + @Deprecated |
69 | 77 | void startLogging(RequestLogger logger); |
70 | 78 | /** |
71 | 79 | * Stops debugging client requests. |
72 | 80 | */ |
| 81 | + @Deprecated |
73 | 82 | void stopLogging(); |
74 | 83 | } |
0 commit comments