public class VaultClientId extends Object
The Vault Client Id appears in the API Usage Logs for tracking and logging purposes. It is in the form:
{company}-{organization}-{component/team}-{server | client}-{program}
For example, an integration developed by Verteo Biotech, Inc could be:
verteobiotech-vault-quality-client-myapp
The Vault Client Id can be set via the following approaches.
Set in the constructor:
VaultClientId clientId = new VaultClientId("verteobiotech","vault","quality",true,"myapp");Set via setters after instantiating. This example sets it using builder pattern setters.
VaultClientId clientId = new VaultClientId() .setCompany("verteobiotech") .setOrganization("vault") .setComponentTeam("quality") .setIsClient(true) .setProgramName("myapp");
Constructor and Description |
---|
VaultClientId()
Instantiate the Vault Client Id and later set the parameters,
such as using the builder pattern setters.
|
VaultClientId(String company,
String organization,
String componentTeam,
Boolean isClient,
String programName)
Instantiate the Vault Client Id by passing in all parameters
|
Modifier and Type | Method and Description |
---|---|
String |
getClientId()
Retrieve the Vault Client Id in the form
{company}-{organization}-{component/team}-{server | client}-{program}
|
String |
getCompany() |
String |
getComponentTeam() |
Boolean |
getIsClient() |
String |
getOrganization() |
String |
getProgramName() |
Boolean |
isValid()
Determine if all Vault Client Id parameters are populated, as determined by not null and not empty properties
|
VaultClientId |
setCompany(String company) |
VaultClientId |
setComponentTeam(String componentTeam) |
VaultClientId |
setIsClient(Boolean isClient) |
VaultClientId |
setOrganization(String organization) |
VaultClientId |
setProgramName(String programName) |
public VaultClientId()
Example
VaultClientId clientId = new VaultClientId() .setCompany("veeva") .setOrganization("vault") .setComponentTeam("devsupport") .setIsClient(true) .setProgramName("vapiltest");
public VaultClientId(String company, String organization, String componentTeam, Boolean isClient, String programName)
company
- The customerorganization
- The customer organizationcomponentTeam
- The development teamisClient
- True if a clientprogramName
- Interface namepublic String getClientId()
Example: verteobiotech-vault-quality-client-myapp
public Boolean isValid()
public String getCompany()
public VaultClientId setCompany(String company)
public String getOrganization()
public VaultClientId setOrganization(String organization)
public String getComponentTeam()
public VaultClientId setComponentTeam(String componentTeam)
public Boolean getIsClient()
public VaultClientId setIsClient(Boolean isClient)
public String getProgramName()
public VaultClientId setProgramName(String programName)
Copyright © 2021. All rights reserved.