Class Friend

    • Constructor Detail

      • Friend

        public Friend()
    • Method Detail

      • getIdentifier

        @OslcDescription("A unique identifier for a resource. Assigned by the service provider when a resource is created. Not intended for end-user display.")
        @OslcOccurs(ExactlyOne)
        @OslcPropertyDefinition("http://purl.org/dc/terms/identifier")
        @OslcTitle("Identifier")
        public String getIdentifier()
        Description copied from interface: Friend
        Returns the identifier of the friend. Default implementation is to return the root services URL. Callers should not assume anything about the actual format of the identifier, and rather call Friend.getRootServices() if that URL is specifically needed.
        Specified by:
        getIdentifier in interface Friend
        Returns:
        the identifier of the friend
      • setIdentifier

        public void setIdentifier​(String identifier)
      • setTitle

        public void setTitle​(String title)
      • getRootServices

        @OslcPropertyDefinition("http://www.sodius.com/ns/oauth#rootServices")
        public URI getRootServices()
        Description copied from interface: Friend
        Returns the root services URL of the friend.
        Specified by:
        getRootServices in interface Friend
        Returns:
        the root services URL of the friend.
      • setRootServices

        public void setRootServices​(URI rootServices)
      • setConsumerKey

        public void setConsumerKey​(String consumerKey)
      • getConsumerSecret

        @OslcPropertyDefinition("http://www.sodius.com/ns/oauth#consumerSecret")
        public String getConsumerSecret()
        Description copied from interface: Friend
        Return the secret associated with the consumer key for contacting the friend application using OAuth 1.0a protocol
        Specified by:
        getConsumerSecret in interface Friend
        Returns:
        the consumer secret.
      • setConsumerSecret

        public void setConsumerSecret​(String consumerSecret)
      • getState

        @OslcName("friendState")
        @OslcPropertyDefinition("http://www.sodius.com/ns/oauth#friendState")
        public String getState()
        Allows to know whether a Friend is available or not.
        Returns:
        the friend's state
        Since:
        2.0
      • setState

        public void setState​(String state)
      • setStateError

        public void setStateError​(OslcError error)
        Sets the (optional) OslcError for display purposes
        Since:
        3.7.0