@Entity public class RemotePartner extends Object implements DataModel
NAME
: Name of the remote instance for display purposes.URL
: Unique resource locator for the partner. This is used together with the api key to verify
accessSTATUS
: RemotePartnerStatus
that is used to indicated whether a partner is blocked
or approved. All partners are initially approved unless explicitly blocked by the administrator. Partners
that are blocked and attempt to request a search will have that request fail silently. Outgoing requests
to blocked partners are also not permittedAPI_KEY
: This is a globally unique identifier received from a partner and used
for all communications with that partner.AUTHENTICATION_TOKEN
: This is an encrypted API_KEY
generated on this system
and sent to other partner. The token that the partner receives is the unencrypted API_KEY
which the
partner then includes for all requests to this server.ADD_TIME
: Time partner was addedLAST_CONTACT_TIME
: Last time contact was made with partnerFETCHED
: Number of parts that this system has fetched from partnerSENT
: Number of parts that this system has sent to partnerConstructor and Description |
---|
RemotePartner() |
Modifier and Type | Method and Description |
---|---|
Date |
getAdded() |
String |
getApiKey() |
String |
getAuthenticationToken() |
long |
getFetched() |
long |
getId() |
Date |
getLastContact() |
String |
getName() |
RemotePartnerStatus |
getPartnerStatus() |
String |
getSalt() |
long |
getSent() |
String |
getUrl() |
void |
setAdded(Date added) |
void |
setApiKey(String apiKey) |
void |
setAuthenticationToken(String authenticationToken) |
void |
setFetched(long fetched) |
void |
setLastContact(Date lastContact) |
void |
setName(String name) |
void |
setPartnerStatus(RemotePartnerStatus approved) |
void |
setSalt(String salt) |
void |
setSent(long sent) |
void |
setUrl(String url) |
RegistryPartner |
toDataTransferObject() |
public String getName()
public void setName(String name)
public String getUrl()
public void setUrl(String url)
public RemotePartnerStatus getPartnerStatus()
public void setPartnerStatus(RemotePartnerStatus approved)
public Date getAdded()
public void setAdded(Date added)
public Date getLastContact()
public void setLastContact(Date lastContact)
public long getFetched()
public void setFetched(long fetched)
public long getSent()
public void setSent(long sent)
public String getApiKey()
public void setApiKey(String apiKey)
public String getAuthenticationToken()
public void setAuthenticationToken(String authenticationToken)
public String getSalt()
public void setSalt(String salt)
public RegistryPartner toDataTransferObject()
toDataTransferObject
in interface DataModel
Copyright © 2017. All rights reserved.