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 Constructor Description Consumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConsumerKey()
String
getConsumerSecret()
Person
getFunctionalUser()
Returns the functional user associated to this consumer, if any.String
getIdentifier()
String
getTitle()
Boolean
isProvisional()
Boolean
isTrusted()
void
setConsumerKey(String consumerKey)
void
setConsumerSecret(String consumerSecret)
void
setFunctionalUser(Person functionalUser)
Sets the functional user associated to this consumer.void
setIdentifier(String identifier)
void
setProvisional(Boolean provisional)
void
setTitle(String title)
void
setTrusted(Boolean trusted)
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
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()
-
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
-
-