|
1 | 1 | /*
|
2 | 2 | * Licensed to the Apache Software Foundation (ASF) under one or more
|
3 |
| - * contributor license agreements. See the NOTICE file distributed with this |
4 |
| - * work for additional information regarding copyright ownership. The ASF |
5 |
| - * licenses this file to You under the Apache License, Version 2.0 (the |
6 |
| - * "License"); you may not use this file except in compliance with the License. |
7 |
| - * You may obtain a copy of the License at |
| 3 | + * contributor license agreements. See the NOTICE file distributed with |
| 4 | + * this work for additional information regarding copyright ownership. |
| 5 | + * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | + * (the "License"); you may not use this file except in compliance with |
| 7 | + * the License. You may obtain a copy of the License at |
8 | 8 | *
|
9 | 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
10 | 10 | *
|
11 | 11 | * Unless required by applicable law or agreed to in writing, software
|
12 |
| - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
13 |
| - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
14 |
| - * License for the specific language governing permissions and limitations |
15 |
| - * under the License. |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + * See the License for the specific language governing permissions and |
| 15 | + * limitations under the License. |
16 | 16 | */
|
17 | 17 |
|
18 | 18 | package org.apache.hugegraph.api.auth;
|
19 | 19 |
|
20 | 20 | import java.util.List;
|
21 | 21 |
|
22 |
| -import io.swagger.v3.oas.annotations.tags.Tag; |
23 |
| -import jakarta.ws.rs.Consumes; |
24 |
| -import jakarta.ws.rs.DELETE; |
25 |
| -import jakarta.ws.rs.DefaultValue; |
26 |
| -import jakarta.ws.rs.GET; |
27 |
| -import jakarta.ws.rs.POST; |
28 |
| -import jakarta.ws.rs.PUT; |
29 |
| -import jakarta.ws.rs.PathParam; |
30 |
| -import jakarta.ws.rs.Produces; |
31 |
| -import jakarta.ws.rs.QueryParam; |
32 |
| -import jakarta.ws.rs.core.Context; |
33 |
| - |
34 |
| -import jakarta.inject.Singleton; |
35 |
| -import jakarta.ws.rs.Path; |
36 |
| -import org.apache.hugegraph.core.GraphManager; |
37 |
| -import org.apache.hugegraph.define.Checkable; |
38 |
| -import org.slf4j.Logger; |
39 |
| - |
40 | 22 | import org.apache.hugegraph.HugeGraph;
|
41 | 23 | import org.apache.hugegraph.api.API;
|
42 | 24 | import org.apache.hugegraph.api.filter.StatusFilter.Status;
|
43 | 25 | import org.apache.hugegraph.auth.HugeAccess;
|
44 | 26 | import org.apache.hugegraph.auth.HugePermission;
|
45 | 27 | import org.apache.hugegraph.backend.id.Id;
|
| 28 | +import org.apache.hugegraph.core.GraphManager; |
| 29 | +import org.apache.hugegraph.define.Checkable; |
46 | 30 | import org.apache.hugegraph.exception.NotFoundException;
|
47 | 31 | import org.apache.hugegraph.util.E;
|
48 | 32 | import org.apache.hugegraph.util.Log;
|
| 33 | +import org.slf4j.Logger; |
| 34 | + |
49 | 35 | import com.codahale.metrics.annotation.Timed;
|
50 | 36 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
51 | 37 | import com.fasterxml.jackson.annotation.JsonProperty;
|
52 | 38 |
|
| 39 | +import io.swagger.v3.oas.annotations.tags.Tag; |
| 40 | +import jakarta.inject.Singleton; |
| 41 | +import jakarta.ws.rs.Consumes; |
| 42 | +import jakarta.ws.rs.DELETE; |
| 43 | +import jakarta.ws.rs.DefaultValue; |
| 44 | +import jakarta.ws.rs.GET; |
| 45 | +import jakarta.ws.rs.POST; |
| 46 | +import jakarta.ws.rs.PUT; |
| 47 | +import jakarta.ws.rs.Path; |
| 48 | +import jakarta.ws.rs.PathParam; |
| 49 | +import jakarta.ws.rs.Produces; |
| 50 | +import jakarta.ws.rs.QueryParam; |
| 51 | +import jakarta.ws.rs.core.Context; |
| 52 | + |
53 | 53 | @Path("graphs/{graph}/auth/accesses")
|
54 | 54 | @Singleton
|
55 | 55 | @Tag(name = "AccessAPI")
|
|
0 commit comments