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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the functional user associated to this consumer, if any.getTitle()Gets the read-only value.voidsetConsumerKey(String consumerKey) voidsetConsumerSecret(String consumerSecret) voidsetFunctionalUser(Person functionalUser) Sets the functional user associated to this consumer.voidsetIdentifier(String identifier) voidsetProvisional(Boolean provisional) voidsetReadOnly(Boolean readOnly) Sets the read-only value.voidvoidsetTrusted(Boolean trusted) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
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
-
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
-
getConsumerKey
@OslcPropertyDefinition("http://www.sodius.com/ns/oauth#consumerKey") public String getConsumerKey() -
setConsumerKey
-
getConsumerSecret
@OslcPropertyDefinition("http://www.sodius.com/ns/oauth#consumerSecret") public String getConsumerSecret() -
setConsumerSecret
-
isTrusted
-
setTrusted
-
isProvisional
@OslcPropertyDefinition("http://www.sodius.com/ns/oauth#provisional") public Boolean isProvisional() -
setProvisional
-
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,
nullif none. - Since:
- 3.1.0
-
setFunctionalUser
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
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
-