Skip to content

Commit bfad8ea

Browse files
committed
Move DocRefInfo
1 parent 3ff23e5 commit bfad8ea

File tree

6 files changed

+57
-43
lines changed

6 files changed

+57
-43
lines changed

stroom-query-api/src/main/java/stroom/query/api/v2/DocRefInfo.java renamed to stroom-docref/src/main/java/stroom/docref/DocRefInfo.java

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1-
package stroom.query.api.v2;
2-
3-
import stroom.docref.DocRef;
1+
/*
2+
* Copyright 2019 Crown Copyright
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package stroom.docref;
418

519
import java.util.Objects;
620

stroom-query-audit/src/main/java/stroom/query/audit/service/DocRefService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package stroom.query.audit.service;
22

33
import stroom.docref.DocRef;
4-
import stroom.query.api.v2.DocRefInfo;
4+
import stroom.docref.DocRefInfo;
55
import stroom.query.audit.ExportDTO;
66
import stroom.query.audit.model.DocRefEntity;
77
import stroom.query.security.ServiceUser;

stroom-query-sample/build.gradle

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
ext.moduleName = 'stroom.query.sample'
1818

19-
//apply plugin: 'com.benjaminsproule.swagger'
19+
apply plugin: 'com.benjaminsproule.swagger'
2020

2121
dependencies {
2222
//--------Project----------
@@ -29,38 +29,38 @@ dependencies {
2929
implementation libs.ws_rs_api
3030
}
3131

32-
//// Generate swagger specs for the ExampleEndpoint
33-
//// This is to allow easier checking of the generated spec files when making changes to the model's swagger annotations
34-
//swagger {
35-
// apiSource {
36-
// springmvc = false //makes it search for jersey annotations
37-
// outputFormats = [ 'json', 'yaml' ]
38-
// locations = [ 'stroom.query.api.v2.sample.ExampleEndpoint' ]
39-
// schemes = [ 'http', 'https' ]
40-
// host = 'localhost:8080'
41-
// basePath = '/v2'
42-
// info {
43-
// title = 'stroom-query'
44-
// version = 'v2'
45-
// description = 'An API for querying data sources including the ability to request multiple result definitions'
46-
// contact {
47-
// name = 'GCHQ'
48-
// url = 'https://github.com/gchq/stroom-query'
49-
// }
50-
// license {
51-
// url = 'http://www.apache.org/licenses/LICENSE-2.0.html'
52-
// name = 'Apache 2.0'
53-
// }
54-
// }
55-
// //outputPath = "${project.buildDir}/generated/document.html"
56-
// swaggerDirectory = "${project.buildDir}"
57-
// }
58-
//}
59-
//
60-
//tasks.generateSwaggerDocumentation {
61-
// dependsOn classes
62-
//}
63-
//
64-
//tasks.build{
65-
// dependsOn generateSwaggerDocumentation
66-
//}
32+
// Generate swagger specs for the ExampleEndpoint
33+
// This is to allow easier checking of the generated spec files when making changes to the model's swagger annotations
34+
swagger {
35+
apiSource {
36+
springmvc = false //makes it search for jersey annotations
37+
outputFormats = [ 'json', 'yaml' ]
38+
locations = [ 'stroom.query.api.v2.sample.ExampleEndpoint' ]
39+
schemes = [ 'http', 'https' ]
40+
host = 'localhost:8080'
41+
basePath = '/v2'
42+
info {
43+
title = 'stroom-query'
44+
version = 'v2'
45+
description = 'An API for querying data sources including the ability to request multiple result definitions'
46+
contact {
47+
name = 'GCHQ'
48+
url = 'https://github.com/gchq/stroom-query'
49+
}
50+
license {
51+
url = 'http://www.apache.org/licenses/LICENSE-2.0.html'
52+
name = 'Apache 2.0'
53+
}
54+
}
55+
//outputPath = "${project.buildDir}/generated/document.html"
56+
swaggerDirectory = "${project.buildDir}"
57+
}
58+
}
59+
60+
tasks.generateSwaggerDocumentation {
61+
dependsOn classes
62+
}
63+
64+
tasks.build{
65+
dependsOn generateSwaggerDocumentation
66+
}

stroom-query-testing/src/main/java/stroom/query/testing/DocRefRemoteServiceIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import org.junit.jupiter.api.BeforeEach;
55
import org.junit.jupiter.api.Test;
66
import org.junit.jupiter.api.extension.ExtendWith;
7-
import stroom.query.api.v2.DocRefInfo;
7+
import stroom.docref.DocRefInfo;
88
import stroom.query.audit.ExportDTO;
99
import stroom.query.audit.client.DocRefServiceHttpClient;
1010
import stroom.query.audit.client.NotFoundException;

stroom-query-testing/src/main/java/stroom/query/testing/DocRefResourceIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.junit.jupiter.api.BeforeEach;
66
import org.junit.jupiter.api.Test;
77
import org.junit.jupiter.api.extension.ExtendWith;
8-
import stroom.query.api.v2.DocRefInfo;
8+
import stroom.docref.DocRefInfo;
99
import stroom.query.audit.ExportDTO;
1010
import stroom.query.audit.client.DocRefResourceHttpClient;
1111
import stroom.query.audit.model.DocRefEntity;

stroom-query-testing/src/main/java/stroom/query/testing/DocRefResourceNoAuthIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.junit.jupiter.api.BeforeEach;
66
import org.junit.jupiter.api.Test;
77
import org.junit.jupiter.api.extension.ExtendWith;
8-
import stroom.query.api.v2.DocRefInfo;
8+
import stroom.docref.DocRefInfo;
99
import stroom.query.audit.ExportDTO;
1010
import stroom.query.audit.client.DocRefResourceHttpClient;
1111
import stroom.query.audit.model.DocRefEntity;

0 commit comments

Comments
 (0)