Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DARIAH-DE
DARIAH-DE Common
Commits
dc132fae
Commit
dc132fae
authored
Feb 27, 2017
by
Stefan Funk
Browse files
New RELEASE version >>> 2.4.0
parent
abf5bedd
Changes
10
Hide whitespace changes
Inline
Side-by-side
cli-tools/pom.xml
View file @
dc132fae
...
...
@@ -6,7 +6,7 @@
<parent>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
common
</artifactId>
<version>
2.
3
.0
-SNAPSHOT
</version>
<version>
2.
4
.0
</version>
</parent>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
cli-tools
</artifactId>
...
...
confclient/pom.xml
View file @
dc132fae
...
...
@@ -6,7 +6,7 @@
<parent>
<artifactId>
common
</artifactId>
<groupId>
info.textgrid.middleware
</groupId>
<version>
2.
3
.0
-SNAPSHOT
</version>
<version>
2.
4
.0
</version>
</parent>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
confclient
</artifactId>
...
...
esutils/pom.xml
View file @
dc132fae
...
...
@@ -4,7 +4,7 @@
<parent>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
common
</artifactId>
<version>
2.
3
.0
-SNAPSHOT
</version>
<version>
2.
4
.0
</version>
</parent>
<groupId>
info.textgrid.utils
</groupId>
<artifactId>
esutils
</artifactId>
...
...
httpclients/pom.xml
View file @
dc132fae
...
...
@@ -6,7 +6,7 @@
<parent>
<artifactId>
common
</artifactId>
<groupId>
info.textgrid.middleware
</groupId>
<version>
2.
3
.0
-SNAPSHOT
</version>
<version>
2.
4
.0
</version>
</parent>
<groupId>
info.textgrid.utils
</groupId>
<artifactId>
httpclients
</artifactId>
...
...
metadata-core-jaxb/pom.xml
View file @
dc132fae
...
...
@@ -4,7 +4,7 @@
<parent>
<artifactId>
common
</artifactId>
<groupId>
info.textgrid.middleware
</groupId>
<version>
2.
3
.0
-SNAPSHOT
</version>
<version>
2.
4
.0
</version>
</parent>
<groupId>
info.textgrid.namespaces
</groupId>
<artifactId>
metadata-core-jaxb
</artifactId>
...
...
pom.xml
View file @
dc132fae
...
...
@@ -4,14 +4,14 @@
<artifactId>
common
</artifactId>
<groupId>
info.textgrid.middleware
</groupId>
<name>
TextGrid :: Common Tools and Packages
</name>
<version>
2.
3
.0
-SNAPSHOT
</version>
<version>
2.
4
.0
</version>
<packaging>
pom
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<felix.version>
2.3.4
</felix.version>
<jaxb-plugin.version>
0.12.3
</jaxb-plugin.version>
<junit.version>
4.8.1
</junit.version>
<java-compiler.version>
1.
7
</java-compiler.version>
<java-compiler.version>
1.
8
</java-compiler.version>
</properties>
<url>
https://projects.gwdg.de/projects/common
</url>
<scm>
...
...
projectfile-jaxb/pom.xml
View file @
dc132fae
...
...
@@ -4,7 +4,7 @@
<parent>
<artifactId>
common
</artifactId>
<groupId>
info.textgrid.middleware
</groupId>
<version>
2.
3
.0
-SNAPSHOT
</version>
<version>
2.
4
.0
</version>
</parent>
<groupId>
info.textgrid.namespaces
</groupId>
<artifactId>
projectfile-jaxb
</artifactId>
...
...
textgrid-clients/pom.xml
View file @
dc132fae
...
...
@@ -7,40 +7,39 @@
<parent>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
common
</artifactId>
<version>
2.
3
.0
-SNAPSHOT
</version>
<version>
2.
4
.0
</version>
</parent>
<groupId>
info.textgrid.middleware.clients
</groupId>
<artifactId>
textgrid-clients
</artifactId>
<version>
0.0.2-SNAPSHOT
</version>
<name>
TextGrid :: Clients
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<cxf.version>
3.1.
5
</cxf.version>
<tgsearch.version>
3.6.3
</tgsearch.version>
<tgcrud.version>
6.0
.0
</tgcrud.version>
<tgauth.version>
1.
7.2-SNAPSHOT
</tgauth.version>
<cxf.version>
3.1.
7
</cxf.version>
<tgsearch
-api
.version>
3.6.3
</tgsearch
-api
.version>
<tgcrud
-client
.version>
7.4
.0
</tgcrud
-client
.version>
<tgauth
-client
.version>
1.
8.0
</tgauth
-client
.version>
</properties>
<dependencies>
<dependency>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
tgsearch-api
</artifactId>
<version>
${tgsearch.version}
</version>
<version>
${tgsearch
-api
.version}
</version>
</dependency>
<dependency>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
tgcrud-client
</artifactId>
<version>
${tgcrud.version}
</version>
<version>
${tgcrud
-client
.version}
</version>
</dependency>
<!-- <dependency> <groupId>info.textgrid.middleware</groupId> <artifactId>confclient</artifactId>
<version>2.0.0</version> </dependency> -->
<dependency>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
tgauth-client
</artifactId>
<version>
${tgauth.version}
</version>
<version>
${tgauth
-client
.version}
</version>
<exclusions>
<exclusion>
<groupId>
org.apache.cxf
</groupId>
...
...
@@ -55,7 +54,7 @@
<dependency>
<groupId>
info.textgrid.middleware
</groupId>
<artifactId>
tgauth-client-crud
</artifactId>
<version>
${tgauth.version}
</version>
<version>
${tgauth
-client
.version}
</version>
<exclusions>
<exclusion>
<groupId>
org.apache.cxf
</groupId>
...
...
@@ -96,8 +95,8 @@
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.1
</version>
<configuration>
<source>
1.7
</source>
<target>
1.7
</target>
<source>
${java-compiler.version}
</source>
<target>
${java-compiler.version}
</target>
<fork>
true
</fork>
<showDeprecation>
true
</showDeprecation>
<showWarnings>
true
</showWarnings>
...
...
textgrid-clients/src/main/java/info/textgrid/clients/CrudClient.java
View file @
dc132fae
...
...
@@ -18,61 +18,70 @@ import info.textgrid.namespaces.middleware.tgcrud.services.tgcrudservice.tgcrudc
/**
* Client for TG-Crud
*
* @see <a href="https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html">TG-Crud documentation</a>
* @see <a href=
* "https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html">TG-Crud
* documentation</a>
* @author Ubbo Veentjer
*/
public
class
CrudClient
{
/**
* URL of the tgcrud endpoint on textgrid production system (textgridlab.org)
* URL of the tgcrud endpoint on textgrid production system
* (textgridlab.org)
*/
public
static
final
String
DEFAULT_ENDPOINT
=
"https://textgridlab.org/1.0/tgcrud/TGCrudService"
;
private
TGCrudService
tgcrud
;
public
static
final
String
DEFAULT_ENDPOINT
=
"https://textgridlab.org/1.0/tgcrud/TGCrudService"
;
private
TGCrudService
tgcrud
;
/**
* Setup the tgcrud client
*
* As endpoint the {@link #DEFAULT_ENDPOINT} may be used
*
to work with the
textgrid production system textgridlab.org
* As endpoint the {@link #DEFAULT_ENDPOINT} may be used
to work with the
* textgrid production system textgridlab.org
*
* @param endpoint - the http(s) url of tgcrud service
*/
public
CrudClient
(
String
endpoint
)
throws
CrudClientException
{
* @param endpoint
* - the http(s) url of tgcrud service
*/
public
CrudClient
(
String
endpoint
)
throws
CrudClientException
{
try
{
tgcrud
=
TGCrudClientUtilities
.
getTgcrud
(
endpoint
);
}
catch
(
MalformedURLException
e
)
{
throw
new
CrudClientException
(
e
);
}
}
/**
* Turn on GZIP Compresson for communication with service
* Turn on GZIP compression for communication with service
*
* @return
*/
public
CrudClient
enableGzipCompression
()
{
Client
client
=
ClientProxy
.
getClient
(
tgcrud
);
client
.
getInInterceptors
().
add
(
new
GZIPInInterceptor
());
client
.
getOutInterceptors
().
add
(
new
GZIPOutInterceptor
());
client
.
getInInterceptors
().
add
(
new
GZIPInInterceptor
());
client
.
getOutInterceptors
().
add
(
new
GZIPOutInterceptor
());
return
this
;
}
/**
* Prepare a Create
p
peration
* Prepare a Create
o
peration
*
* @see info.textgrid.clients.tgcrud.CreateOperation
* @see <a href="https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#create">TG-crud API - Create</a>
* @see <a href=
* "https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#create">TG-crud
* API - Create</a>
* @return
*/
public
CreateOperation
create
()
{
return
new
CreateOperation
(
tgcrud
);
}
/**
* Prepare a Read operation
*
* @see info.textgrid.clients.tgcrud.ReadOperation
* @see <a href="https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#read">TG-crud API - Read</a>
* @see <a href=
* "https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#read">TG-crud
* API - Read</a>
* @return
*/
public
ReadOperation
read
()
{
...
...
@@ -83,18 +92,22 @@ public class CrudClient {
* Prepare an Update operation
*
* @see info.textgrid.clients.tgcrud.UpdateOperation
* @see <a href="https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#update">TG-crud API - Update</a>
* @see <a href=
* "https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#update">TG-crud
* API - Update</a>
* @return
*/
public
UpdateOperation
update
()
{
return
new
UpdateOperation
(
tgcrud
);
}
}
/**
* Prepare a Delete operation
*
* @see info.textgrid.clients.tgcrud.DeleteOperation
* @see <a href="https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#delete">TG-crud API - Delete</a>
* @see <a href=
* "https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#delete">TG-crud
* API - Delete</a>
* @return
*/
public
DeleteOperation
delete
()
{
...
...
textgrid-clients/src/main/java/info/textgrid/clients/SearchClient.java
View file @
dc132fae
...
...
@@ -62,7 +62,7 @@ public class SearchClient {
}
/**
* Turn on GZIP
C
ompresson for communication with service
* Turn on GZIP
c
ompress
i
on for communication with service
* @return
*/
public
SearchClient
enableGzipCompression
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment