Class RemoteAPI
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.RemoteAPI
-
- All Implemented Interfaces:
IridaThing,MutableIridaThing,Timestamped<java.lang.Long>,java.lang.Comparable<RemoteAPI>
@Entity public class RemoteAPI extends java.lang.Object implements java.lang.Comparable<RemoteAPI>, MutableIridaThing
Description of a remote Irida API that this API can communicate with via OAuth2
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVICE_URI_CONSTRAINT_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RemoteAPI o)booleanequals(java.lang.Object other)java.lang.StringgetClientId()java.lang.StringgetClientSecret()java.util.DategetCreatedDate()Get the created date of the objectjava.lang.StringgetDescription()Get a description of the remote apijava.lang.LonggetId()Get the entity idjava.lang.StringgetLabel()Get a human readable label for this object.java.util.DategetModifiedDate()Get the date that this object was last modifiedjava.lang.StringgetName()get the name of the remote API.java.lang.StringgetServiceURI()Get the base URI of this remote apiinthashCode()voidsetClientId(java.lang.String clientId)voidsetClientSecret(java.lang.String clientSecret)voidsetDescription(java.lang.String description)Set the description for the remote apivoidsetId(java.lang.Long id)Set the entity idvoidsetModifiedDate(java.util.Date modifiedDate)Set the modification time of this objectvoidsetName(java.lang.String name)Set the name of the remote API.voidsetServiceURI(java.lang.String serviceURI)Set the base URI of this remote servicejava.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.IridaThing
getIdentifier, setLabel
-
-
-
-
Field Detail
-
SERVICE_URI_CONSTRAINT_NAME
public static final java.lang.String SERVICE_URI_CONSTRAINT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.Long getId()
Get the entity id- Specified by:
getIdin interfaceIridaThing- Specified by:
getIdin interfaceTimestamped<java.lang.Long>- Returns:
- the identifier of the object
-
setId
public void setId(java.lang.Long id)
Set the entity id- Specified by:
setIdin interfaceMutableIridaThing- Parameters:
id- the identifier of the object
-
getServiceURI
public java.lang.String getServiceURI()
Get the base URI of this remote api- Returns:
- the base URI for the remote API
-
setServiceURI
public void setServiceURI(java.lang.String serviceURI)
Set the base URI of this remote service- Parameters:
serviceURI- the base URI of the remote API
-
getDescription
public java.lang.String getDescription()
Get a description of the remote api- Returns:
- the description of the remote API
-
setDescription
public void setDescription(java.lang.String description)
Set the description for the remote api- Parameters:
description- the description of the remote API
-
getName
public java.lang.String getName()
get the name of the remote API.- Returns:
- the name of the remote API
-
setName
public void setName(java.lang.String name)
Set the name of the remote API.- Parameters:
name- the name of the remote API.
-
getClientId
public java.lang.String getClientId()
- Returns:
- the clientId
-
setClientId
public void setClientId(java.lang.String clientId)
- Parameters:
clientId- the clientId to set
-
getClientSecret
public java.lang.String getClientSecret()
- Returns:
- the clientSecret
-
setClientSecret
public void setClientSecret(java.lang.String clientSecret)
- Parameters:
clientSecret- the clientSecret to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(RemoteAPI o)
- Specified by:
compareToin interfacejava.lang.Comparable<RemoteAPI>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getCreatedDate
public java.util.Date getCreatedDate()
Description copied from interface:TimestampedGet the created date of the object- Specified by:
getCreatedDatein interfaceTimestamped<java.lang.Long>- Returns:
- A
Dateobject of the created date
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThingGet a human readable label for this object.- Specified by:
getLabelin interfaceIridaThing- Returns:
- a human-readable label for the object.
-
getModifiedDate
public java.util.Date getModifiedDate()
Description copied from interface:MutableIridaThingGet the date that this object was last modified- Specified by:
getModifiedDatein interfaceMutableIridaThing- Returns:
Dateobject of the modified date
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThingSet the modification time of this object- Specified by:
setModifiedDatein interfaceMutableIridaThing- Parameters:
modifiedDate- The date where this object was modified
-
-