Class RemoteAPI

    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteAPI()  
      RemoteAPI​(java.lang.String name, java.lang.String serviceURI, java.lang.String description, java.lang.String clientId, java.lang.String clientSecret)  
    • 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 object
      java.lang.String getDescription()
      Get a description of the remote api
      java.lang.Long getId()
      Get the entity id
      java.lang.String getLabel()
      Get a human readable label for this object.
      java.util.Date getModifiedDate()
      Get the date that this object was last modified
      java.lang.String getName()
      get the name of the remote API.
      java.lang.String getServiceURI()
      Get the base URI of this remote api
      int 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 api
      void setId​(java.lang.Long id)
      Set the entity id
      void setModifiedDate​(java.util.Date modifiedDate)
      Set the modification time of this object
      void 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 service
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • SERVICE_URI_CONSTRAINT_NAME

        public static final java.lang.String SERVICE_URI_CONSTRAINT_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • RemoteAPI

        public RemoteAPI()
      • RemoteAPI

        public RemoteAPI​(java.lang.String name,
                         java.lang.String serviceURI,
                         java.lang.String description,
                         java.lang.String clientId,
                         java.lang.String clientSecret)
    • Method Detail

      • getId

        public java.lang.Long getId()
        Get the entity id
        Specified by:
        getId in interface IridaThing
        Specified by:
        getId in interface Timestamped<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 interface MutableIridaThing
        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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(RemoteAPI o)
        Specified by:
        compareTo in interface java.lang.Comparable<RemoteAPI>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getCreatedDate

        public java.util.Date getCreatedDate()
        Description copied from interface: Timestamped
        Get the created date of the object
        Specified by:
        getCreatedDate in interface Timestamped<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 interface IridaThing
        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 interface MutableIridaThing
        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 interface MutableIridaThing
        Parameters:
        modifiedDate - The date where this object was modified