|
| 1 | +/* |
| 2 | + * DISCLAIMER |
| 3 | + * |
| 4 | + * Copyright 2018 ArangoDB GmbH, Cologne, Germany |
| 5 | + * |
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + * you may not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, software |
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * See the License for the specific language governing permissions and |
| 16 | + * limitations under the License. |
| 17 | + * |
| 18 | + * Copyright holder is ArangoDB GmbH, Cologne, Germany |
| 19 | + */ |
| 20 | + |
| 21 | +package com.arangodb; |
| 22 | + |
| 23 | +import com.arangodb.entity.ViewEntity; |
| 24 | +import com.arangodb.entity.arangosearch.SearchAliasPropertiesEntity; |
| 25 | +import com.arangodb.model.arangosearch.SearchAliasCreateOptions; |
| 26 | +import com.arangodb.model.arangosearch.SearchAliasPropertiesOptions; |
| 27 | + |
| 28 | +/** |
| 29 | + * Interface for operations on ArangoDB view level for SearchAlias views. |
| 30 | + * |
| 31 | + * @author Michele Rastelli |
| 32 | + * @see <a href="https://www.arangodb.com/docs/stable/http/views-search-alias.html">View API Documentation</a> |
| 33 | + * @since ArangoDB 3.10 |
| 34 | + */ |
| 35 | +public interface SearchAlias extends ArangoView { |
| 36 | + |
| 37 | + /** |
| 38 | + * Creates a view, then returns view information from the server. |
| 39 | + * |
| 40 | + * @return information about the view |
| 41 | + * @throws ArangoDBException |
| 42 | + * @see <a href="https://www.arangodb.com/docs/stable/http/views-search-alias.html#create-a-search-alias-view">API |
| 43 | + * Documentation</a> |
| 44 | + */ |
| 45 | + ViewEntity create() throws ArangoDBException; |
| 46 | + |
| 47 | + /** |
| 48 | + * Creates a view with the given {@code options}, then returns view information from the server. |
| 49 | + * |
| 50 | + * @param options Additional options, can be null |
| 51 | + * @return information about the view |
| 52 | + * @throws ArangoDBException |
| 53 | + * @see <a href="https://www.arangodb.com/docs/stable/http/views-search-alias.html#create-a-search-alias-view">API |
| 54 | + * Documentation</a> |
| 55 | + */ |
| 56 | + ViewEntity create(SearchAliasCreateOptions options) throws ArangoDBException; |
| 57 | + |
| 58 | + /** |
| 59 | + * Reads the properties of the specified view. |
| 60 | + * |
| 61 | + * @return properties of the view |
| 62 | + * @throws ArangoDBException |
| 63 | + * @see <a href="https://www.arangodb.com/docs/stable/http/views-search-alias.html#read-properties-of-a-view">API |
| 64 | + * Documentation</a> |
| 65 | + */ |
| 66 | + SearchAliasPropertiesEntity getProperties() throws ArangoDBException; |
| 67 | + |
| 68 | + /** |
| 69 | + * Partially changes properties of the view. |
| 70 | + * |
| 71 | + * @param options properties to change |
| 72 | + * @return properties of the view |
| 73 | + * @throws ArangoDBException |
| 74 | + * @see <a href= |
| 75 | + * "https://www.arangodb.com/docs/stable/http/views-search-alias.html#partially-changes-properties-of-a-search-alias-view">API |
| 76 | + * Documentation</a> |
| 77 | + */ |
| 78 | + SearchAliasPropertiesEntity updateProperties(SearchAliasPropertiesOptions options) throws ArangoDBException; |
| 79 | + |
| 80 | + /** |
| 81 | + * Changes properties of the view. |
| 82 | + * |
| 83 | + * @param options properties to change |
| 84 | + * @return properties of the view |
| 85 | + * @throws ArangoDBException |
| 86 | + * @see <a href= |
| 87 | + * "https://www.arangodb.com/docs/stable/http/views-search-alias.html#changes-properties-of-a-search-alias-view">API |
| 88 | + * Documentation</a> |
| 89 | + */ |
| 90 | + SearchAliasPropertiesEntity replaceProperties(SearchAliasPropertiesOptions options) throws ArangoDBException; |
| 91 | + |
| 92 | +} |
0 commit comments