Class RestProductArchive
java.lang.Object
de.dlr.proseo.archivemgr.rest.model.RestProductArchive
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringInterface protocol for this archive, one of { AIP, AUXIP, PODIP, PRIP, SIMPLEAIP }List of product class names (product types) retrievable from this archiveprotected StringBase URI to access the archive (of the form "http[s]://<hostname>[:<port>]", no trailing slash)protected StringClient-ID for OpenID-based token requestsprotected StringClient secret for OpenID-based token requestsprotected StringShort code for the archive (unique key)protected StringThe context path of the archive service endpointprotected LongThe persistent id of this objectprotected StringDescriptive name for the archiveprotected StringPassword for Basic Authentication (CAUTION - Clear text)protected BooleanFlag indicating whether credentials for OpenID-based token requests shall be sent in request body(package private) static final longprotected BooleanFlag indicating whether token-based authentication shall be usedprotected StringThe full URI for token requests (may be routed to a different host from the archive service itself)protected StringThe username for Basic Authentication (for token or service requests, depending on authentication method)protected LongA version identifier to track updates to the object (especially to detect concurrent update attempts) -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RestProductArchive.RestProductArchive(Long id, Long version, String code, String name, String archiveType, String baseUri, String context, Boolean tokenRequired, String tokenUri, String username, String password, String clientId, String clientSecret, Boolean sendAuthInBody, List<String> availableProductClasses) Creates a new RestProductArchive. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull @Pattern(regexp="^(AIP|AUXIP|PODIP|PRIP|SIMPLEAIP)$") StringReturns the archiveType.Returns the availableProductClasses.@NotNull StringReturns the baseUri.Returns the clientId.Returns the clientSecret.@NotNull StringgetCode()Returns the code.@NotNull StringReturns the context.getId()Returns the id.@NotNull StringgetName()Returns the name.Returns the password.Returns the sendAuthInBody.@NotNull BooleanReturns the tokenRequired.Returns the tokenUri.Returns the username.Returns the version.inthashCode()voidsetArchiveType(String archiveType) Set the archiveType.voidsetAvailableProductClasses(List<String> availableProductClasses) Set the availableProductClasses.voidsetBaseUri(String baseUri) Set the baseUri.voidsetClientId(String clientId) Set the clientId.voidsetClientSecret(String clientSecret) Set the clientSecret.voidSet the code.voidsetContext(String context) Set the context.voidSet the id.voidSet the name.voidsetPassword(String password) Set the password.voidsetSendAuthInBody(Boolean sendAuthInBody) Set the sendAuthInBody.voidsetTokenRequired(Boolean tokenRequired) Set the tokenRequired.voidsetTokenUri(String tokenUri) Set the tokenUri.voidsetUsername(String username) Set the username.voidsetVersion(Long version) Set the version.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
id
The persistent id of this object -
version
A version identifier to track updates to the object (especially to detect concurrent update attempts) -
code
Short code for the archive (unique key) -
name
Descriptive name for the archive -
archiveType
Interface protocol for this archive, one of { AIP, AUXIP, PODIP, PRIP, SIMPLEAIP } -
baseUri
Base URI to access the archive (of the form "http[s]://<hostname>[:<port>]", no trailing slash) -
context
The context path of the archive service endpoint -
tokenRequired
Flag indicating whether token-based authentication shall be used -
tokenUri
The full URI for token requests (may be routed to a different host from the archive service itself) -
username
The username for Basic Authentication (for token or service requests, depending on authentication method) -
password
Password for Basic Authentication (CAUTION - Clear text) -
clientId
Client-ID for OpenID-based token requests -
clientSecret
Client secret for OpenID-based token requests -
sendAuthInBody
Flag indicating whether credentials for OpenID-based token requests shall be sent in request body -
availableProductClasses
List of product class names (product types) retrievable from this archive
-
-
Constructor Details
-
RestProductArchive
public RestProductArchive()Creates a new RestProductArchive. -
RestProductArchive
public RestProductArchive(Long id, Long version, String code, String name, String archiveType, String baseUri, String context, Boolean tokenRequired, String tokenUri, String username, String password, String clientId, String clientSecret, Boolean sendAuthInBody, List<String> availableProductClasses) Creates a new RestProductArchive.
-
-
Method Details
-
getId
Returns the id.- Returns:
- id
-
setId
Set the id.- Parameters:
id- the new id
-
getVersion
Returns the version.- Returns:
- version
-
setVersion
Set the version.- Parameters:
version- the new version
-
getCode
Returns the code.- Returns:
- code
-
setCode
Set the code.- Parameters:
code- the new code
-
getName
Returns the name.- Returns:
- name
-
setName
Set the name.- Parameters:
name- the new name
-
getArchiveType
@NotNull @Pattern(regexp="^(AIP|AUXIP|PODIP|PRIP|SIMPLEAIP)$") public @NotNull @Pattern(regexp="^(AIP|AUXIP|PODIP|PRIP|SIMPLEAIP)$") String getArchiveType()Returns the archiveType.- Returns:
- archiveType
-
setArchiveType
Set the archiveType.- Parameters:
archiveType- the new archiveType
-
getBaseUri
Returns the baseUri.- Returns:
- baseUri
-
setBaseUri
Set the baseUri.- Parameters:
baseUri- the new baseUri
-
getContext
Returns the context.- Returns:
- context
-
setContext
Set the context.- Parameters:
context- the new context
-
getTokenRequired
Returns the tokenRequired.- Returns:
- tokenRequired
-
setTokenRequired
Set the tokenRequired.- Parameters:
tokenRequired- the new tokenRequired
-
getTokenUri
Returns the tokenUri.- Returns:
- tokenUri
-
setTokenUri
Set the tokenUri.- Parameters:
tokenUri- the new tokenUri
-
getUsername
Returns the username.- Returns:
- username
-
setUsername
Set the username.- Parameters:
username- the new username
-
getPassword
Returns the password.- Returns:
- password
-
setPassword
Set the password.- Parameters:
password- the new password
-
getClientId
Returns the clientId.- Returns:
- clientId
-
setClientId
Set the clientId.- Parameters:
clientId- the new clientId
-
getClientSecret
Returns the clientSecret.- Returns:
- clientSecret
-
setClientSecret
Set the clientSecret.- Parameters:
clientSecret- the new clientSecret
-
getSendAuthInBody
Returns the sendAuthInBody.- Returns:
- sendAuthInBody
-
setSendAuthInBody
Set the sendAuthInBody.- Parameters:
sendAuthInBody- the new sendAuthInBody
-
getAvailableProductClasses
Returns the availableProductClasses.- Returns:
- availableProductClasses
-
setAvailableProductClasses
Set the availableProductClasses.- Parameters:
availableProductClasses- the new availableProductClasses
-
hashCode
public int hashCode() -
equals
-
toString
-