Class Consumer

java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.server.oauth.model.Consumer
All Implemented Interfaces:
IExtendedResource, IResource

@OslcNamespace("http://www.sodius.com/ns/oauth#") @OslcResourceShape(title="Consumer Resource Shape", describes="http://www.sodius.com/ns/oauth#Consumer") public class Consumer extends AbstractResource
Describes a consumer registered in an OSLC application.
Since:
1.3.0
  • Constructor Details

    • Consumer

      public Consumer()
  • Method Details

    • 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()
    • setIdentifier

      public void setIdentifier(String identifier)
    • getTitle

      @OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getConsumerKey

      @OslcPropertyDefinition("http://www.sodius.com/ns/oauth#consumerKey") public String getConsumerKey()
    • setConsumerKey

      public void setConsumerKey(String consumerKey)
    • getConsumerSecret

      @OslcPropertyDefinition("http://www.sodius.com/ns/oauth#consumerSecret") public String getConsumerSecret()
    • setConsumerSecret

      public void setConsumerSecret(String consumerSecret)
    • isTrusted

      @OslcPropertyDefinition("http://www.sodius.com/ns/oauth#trusted") public Boolean isTrusted()
    • setTrusted

      public void setTrusted(Boolean trusted)
    • isProvisional

      @OslcPropertyDefinition("http://www.sodius.com/ns/oauth#provisional") public Boolean isProvisional()
    • setProvisional

      public void setProvisional(Boolean provisional)
    • getFunctionalUser

      @OslcPropertyDefinition("http://www.sodius.com/ns/oauth#functionalUser") @OslcOccurs(ZeroOrOne) @OslcValueType(LocalResource) @OslcRepresentation(Inline) public Person getFunctionalUser()
      Returns the functional user associated to this consumer, if any.
      Returns:
      the functional user associated to this consumer, null if none.
      Since:
      3.1.0
    • setFunctionalUser

      public void setFunctionalUser(Person functionalUser)
      Sets the functional user associated to this consumer.
      Parameters:
      functionalUser - the functional user associated to this consumer.
      Since:
      3.1.0
    • isReadOnly

      @OslcPropertyDefinition("http://open-services.net/ns/core#readOnly") @OslcName("readOnly") public Boolean isReadOnly()
      Gets the read-only value. A read-only consumer cannot be updated in the administration page.
      Returns:
      true if the consumer cannot be updated.
      Since:
      3.14.0
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Sets the read-only value. A read-only consumer cannot be updated in the administration page.
      Parameters:
      readOnly - true to prevent the consumer from being updated in the administration page.
      Since:
      3.14.0