Class AutomationRequest
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- org.eclipse.lyo.oslc.domains.auto.AutomationRequest
-
- All Implemented Interfaces:
IAutomationRequest,IExtendedResource,IResource
@OslcNamespace("http://open-services.net/ns/auto#") @OslcName("AutomationRequest") @OslcResourceShape(title="AutomationRequest Shape", describes="http://open-services.net/ns/auto#AutomationRequest") public class AutomationRequest extends AbstractResource implements IAutomationRequest
-
-
Constructor Summary
Constructors Constructor Description AutomationRequest()AutomationRequest(URI about)
-
Method Summary
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
AutomationRequest
public AutomationRequest()
-
AutomationRequest
public AutomationRequest(URI about)
-
-
Method Detail
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException
-
toString
public String toString(boolean asLocalResource)
-
addContributor
public void addContributor(Link contributor)
- Specified by:
addContributorin interfaceIAutomationRequest
-
addCreator
public void addCreator(Link creator)
- Specified by:
addCreatorin interfaceIAutomationRequest
-
addType
public void addType(Link type)
- Specified by:
addTypein interfaceIAutomationRequest
-
addInstanceShape
public void addInstanceShape(Link instanceShape)
- Specified by:
addInstanceShapein interfaceIAutomationRequest
-
addServiceProvider
public void addServiceProvider(Link serviceProvider)
- Specified by:
addServiceProviderin interfaceIAutomationRequest
-
addState
public void addState(Link state)
- Specified by:
addStatein interfaceIAutomationRequest
-
addInputParameter
public void addInputParameter(Link inputParameter)
- Specified by:
addInputParameterin interfaceIAutomationRequest
-
getContributor
@OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcDescription("Contributor or contributors to the resource. It is likely that the target resource will be a foaf:Person but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(false) public Set<Link> getContributor()
- Specified by:
getContributorin interfaceIAutomationRequest
-
getCreated
@OslcName("created") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcDescription("Timestamp of resource creation") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getCreated()
- Specified by:
getCreatedin interfaceIAutomationRequest
-
getCreator
@OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcDescription("Creator or creators of the resource. It is likely that the target resource will be a foaf:Person but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(false) public Set<Link> getCreator()
- Specified by:
getCreatorin interfaceIAutomationRequest
-
getDescription
@OslcName("description") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcDescription("Descriptive text about resource represented as rich text in XHTML content. SHOULD include only content that is valid and suitable inside an XHTML <div> element.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getDescription()
- Specified by:
getDescriptionin interfaceIAutomationRequest
-
getIdentifier
@OslcName("identifier") @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcDescription("A unique identifier for a resource. Typically read-only and assigned by the service provider when a resource is created. Not typically intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getIdentifier()
- Specified by:
getIdentifierin interfaceIAutomationRequest
-
getModified
@OslcName("modified") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcDescription("Timestamp of latest resource modification") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getModified()
- Specified by:
getModifiedin interfaceIAutomationRequest
-
getType
@OslcName("type") @OslcPropertyDefinition("http://www.w3.org/1999/02/22-rdf-syntax-ns#type") @OslcDescription("The resource type URIs") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) public Set<Link> getType()
- Specified by:
getTypein interfaceIAutomationRequest
-
getTitle
@OslcName("title") @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcDescription("Title of the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(ExactlyOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getTitle()
- Specified by:
getTitlein interfaceIAutomationRequest
-
getInstanceShape
@OslcName("instanceShape") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcDescription("The URI of a Resource Shape that describes the possible properties, occurrence, value types, allowed values and labels. This shape information is useful in displaying the subject resource as well as guiding clients in performing modifications. Instance shapes may be specific to the authenticated user associated with the request that retrieved the resource, the current state of the resource and other factors and thus should not be cached.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getInstanceShape()
- Specified by:
getInstanceShapein interfaceIAutomationRequest
-
getServiceProvider
@OslcName("serviceProvider") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcDescription("A link to the resource\'s OSLC Service Provider. There may be cases when the subject resource is available from a service provider that implements multiple domain specifications, which could result in multiple values for this property.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getServiceProvider()
- Specified by:
getServiceProviderin interfaceIAutomationRequest
-
getState
@OslcName("state") @OslcPropertyDefinition("http://open-services.net/ns/auto#state") @OslcDescription("Used to indicate the state of the automation request based on values defined by the service provider. Most often a read-only property. It is expected that this will be a resource reference to a definition of a valid automation request state on the service provider.") @OslcOccurs(OneOrMany) @OslcValueType(Resource) @OslcReadOnly(true) public Set<Link> getState()
- Specified by:
getStatein interfaceIAutomationRequest
-
getDesiredState
@OslcName("desiredState") @OslcPropertyDefinition("http://open-services.net/ns/auto#desiredState") @OslcDescription("Used to indicate the desired state of the Automation Request based on values defined by the service provider. It is expected that this will be a resource reference to a definition of a valid automation request state on the service provider.") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcReadOnly(false) public Link getDesiredState()
- Specified by:
getDesiredStatein interfaceIAutomationRequest
-
getInputParameter
@OslcName("inputParameter") @OslcPropertyDefinition("http://open-services.net/ns/auto#inputParameter") @OslcDescription("Parameters provided when Automation Requests are created. These include parameters provided by the creator of the Automation Request (whether by delegated UI or HTTP POST) and MAY include additional parameters added by the service provider during Automation Request creation. See the definition of the oslc_auto:parameterDefinition attribute of the Automation Plan for additional guidance on determining which parameters are required. Creators of Automation Requests MAY provide parameters beyond those defined in the Automation Plan without guarantee the service provider will recognize or honor them. It is expected that this attribute is write-able on Automation Request creation and read-only thereafter.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/auto#ParameterInstance") @OslcReadOnly(false) public Set<Link> getInputParameter()
- Specified by:
getInputParameterin interfaceIAutomationRequest
-
getExecutesAutomationPlan
@OslcName("executesAutomationPlan") @OslcPropertyDefinition("http://open-services.net/ns/auto#executesAutomationPlan") @OslcDescription("Automation Plan run by the Automation Request. It is likely that the target resource will be an oslc_auto:AutomationPlan but that is not necessarily the case.") @OslcOccurs(ExactlyOne) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/auto#AutomationPlan") @OslcReadOnly(false) public Link getExecutesAutomationPlan()
- Specified by:
getExecutesAutomationPlanin interfaceIAutomationRequest
-
setContributor
public void setContributor(Set<Link> contributor)
- Specified by:
setContributorin interfaceIAutomationRequest
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreatedin interfaceIAutomationRequest
-
setCreator
public void setCreator(Set<Link> creator)
- Specified by:
setCreatorin interfaceIAutomationRequest
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceIAutomationRequest
-
setIdentifier
public void setIdentifier(String identifier)
- Specified by:
setIdentifierin interfaceIAutomationRequest
-
setModified
public void setModified(Date modified)
- Specified by:
setModifiedin interfaceIAutomationRequest
-
setType
public void setType(Set<Link> type)
- Specified by:
setTypein interfaceIAutomationRequest
-
setTitle
public void setTitle(String title)
- Specified by:
setTitlein interfaceIAutomationRequest
-
setInstanceShape
public void setInstanceShape(Set<Link> instanceShape)
- Specified by:
setInstanceShapein interfaceIAutomationRequest
-
setServiceProvider
public void setServiceProvider(Set<Link> serviceProvider)
- Specified by:
setServiceProviderin interfaceIAutomationRequest
-
setState
public void setState(Set<Link> state)
- Specified by:
setStatein interfaceIAutomationRequest
-
setDesiredState
public void setDesiredState(Link desiredState)
- Specified by:
setDesiredStatein interfaceIAutomationRequest
-
setInputParameter
public void setInputParameter(Set<Link> inputParameter)
- Specified by:
setInputParameterin interfaceIAutomationRequest
-
setExecutesAutomationPlan
public void setExecutesAutomationPlan(Link executesAutomationPlan)
- Specified by:
setExecutesAutomationPlanin interfaceIAutomationRequest
-
-