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.String
SERVICE_URI_CONSTRAINT_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(RemoteAPI o)
boolean
equals(java.lang.Object other)
java.lang.String
getClientId()
java.lang.String
getClientSecret()
java.util.Date
getCreatedDate()
Get the created date of the objectjava.lang.String
getDescription()
Get a description of the remote apijava.lang.Long
getId()
Get the entity idjava.lang.String
getLabel()
Get a human readable label for this object.java.util.Date
getModifiedDate()
Get the date that this object was last modifiedjava.lang.String
getName()
get the name of the remote API.java.lang.String
getServiceURI()
Get the base URI of this remote apiint
hashCode()
void
setClientId(java.lang.String clientId)
void
setClientSecret(java.lang.String clientSecret)
void
setDescription(java.lang.String description)
Set the description for the remote apivoid
setId(java.lang.Long id)
Set the entity idvoid
setModifiedDate(java.util.Date modifiedDate)
Set the modification time of this objectvoid
setName(java.lang.String name)
Set the name of the remote API.void
setServiceURI(java.lang.String serviceURI)
Set the base URI of this remote servicejava.lang.String
toString()
-
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:
getId
in interfaceIridaThing
- Specified by:
getId
in interfaceTimestamped<java.lang.Long>
- Returns:
- the identifier of the object
-
setId
public void setId(java.lang.Long id)
Set the entity id- Specified by:
setId
in 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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(RemoteAPI o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<RemoteAPI>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getCreatedDate
public java.util.Date getCreatedDate()
Description copied from interface:Timestamped
Get the created date of the object- Specified by:
getCreatedDate
in interfaceTimestamped<java.lang.Long>
- Returns:
- A
Date
object of the created date
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThing
Get a human readable label for this object.- Specified by:
getLabel
in interfaceIridaThing
- Returns:
- a human-readable label for the object.
-
getModifiedDate
public java.util.Date getModifiedDate()
Description copied from interface:MutableIridaThing
Get the date that this object was last modified- Specified by:
getModifiedDate
in interfaceMutableIridaThing
- Returns:
Date
object of the modified date
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThing
Set the modification time of this object- Specified by:
setModifiedDate
in interfaceMutableIridaThing
- Parameters:
modifiedDate
- The date where this object was modified
-
-