Interface IridaThing

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.lang.Long getId()
      Get the numerical identifier for this object
      default java.lang.String getIdentifier()
      Get the id parameter as a string.
      @NotNull(message="{irida.label.notnull}") java.lang.String getLabel()
      Get a human readable label for this object.
      default void setLabel​(java.lang.String label)
      Method supporting JSON deserialzation.
    • Method Detail

      • getLabel

        @NotNull(message="{irida.label.notnull}")
        @NotNull(message="{irida.label.notnull}") java.lang.String getLabel()
        Get a human readable label for this object.
        Returns:
        a human-readable label for the object.
      • setLabel

        default void setLabel​(java.lang.String label)
                       throws java.lang.UnsupportedOperationException
        Method supporting JSON deserialzation. This method should not be used and will throw UnsupportedOperationException when called.
        Parameters:
        label - label param
        Throws:
        java.lang.UnsupportedOperationException - A label cannot be set for an object. It should be computed from the object's properties.
      • getId

        java.lang.Long getId()
        Get the numerical identifier for this object
        Specified by:
        getId in interface Timestamped<java.lang.Long>
        Returns:
        the numerical identifier for the object
      • getIdentifier

        default java.lang.String getIdentifier()
        Get the id parameter as a string. This method is here to ensure compatibility with previous clients which use the IRIDA REST API. It may be removed once APIv2 is released.
        Returns:
        A String version of the identifier