-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
145 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
common/src/main/java/de/uni_jena/thunibib/his/HISInOneClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package de.uni_jena.thunibib.his; | ||
|
||
import org.mycore.common.config.MCRConfiguration2; | ||
|
||
public class HISInOneClient { | ||
public static final String HIS_IN_ONE_BASE_URL = MCRConfiguration2.getStringOrThrow("ThUniBib.HISinOne.BaseURL"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package de.uni_jena.thunibib.his; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class Token { | ||
|
||
String access_token; | ||
String scope; | ||
String token_type; | ||
String expires_in; | ||
|
||
public Token() { | ||
} | ||
|
||
@JsonProperty("access_token") | ||
public String getAccessToken() { | ||
return access_token; | ||
} | ||
|
||
public void setAccessToken(String access_token) { | ||
this.access_token = access_token; | ||
} | ||
|
||
@JsonProperty("scope") | ||
public String getScope() { | ||
return scope; | ||
} | ||
|
||
public void setScope(String scope) { | ||
this.scope = scope; | ||
} | ||
|
||
@JsonProperty("expires_in") | ||
public String getExpiresIn() { | ||
return expires_in; | ||
} | ||
|
||
public void setExpiresIn(String expires_in) { | ||
this.expires_in = expires_in; | ||
} | ||
|
||
@JsonProperty("token_type") | ||
public String getTokenType() { | ||
return token_type; | ||
} | ||
|
||
public void setTokenType(String token_type) { | ||
this.token_type = token_type; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getAccessToken(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters