Class AutomationResult
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.auto.AutomationResult
- All Implemented Interfaces:
IAutomationResult,IExtendedResource,IResource
@OslcNamespace("http://open-services.net/ns/auto#")
@OslcName("AutomationResult")
@OslcResourceShape(title="AutomationResult Shape",
describes="http://open-services.net/ns/auto#AutomationResult")
public class AutomationResult
extends AbstractResource
implements IAutomationResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContribution(Link contribution) voidaddContributor(Link contributor) voidaddCreator(Link creator) voidaddInputParameter(Link inputParameter) voidaddInstanceShape(Link instanceShape) voidaddOutputParameter(Link outputParameter) voidaddServiceProvider(Link serviceProvider) voidvoidaddSubject(String subject) voidvoidaddVerdict(Link verdict) static ResourceShapegetState()getTitle()getType()voidsetContribution(Set<Link> contribution) voidsetContributor(Set<Link> contributor) voidsetCreated(Date created) voidsetCreator(Set<Link> creator) voidsetDesiredState(Link desiredState) voidsetIdentifier(String identifier) voidsetInputParameter(Set<Link> inputParameter) voidsetInstanceShape(Set<Link> instanceShape) voidsetModified(Date modified) voidsetOutputParameter(Set<Link> outputParameter) voidsetProducedByAutomationRequest(Link producedByAutomationRequest) voidsetReportsOnAutomationPlan(Link reportsOnAutomationPlan) voidsetServiceProvider(Set<Link> serviceProvider) voidvoidsetSubject(Set<String> subject) voidvoidvoidsetVerdict(Set<Link> verdict) toString()toString(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
AutomationResult
public AutomationResult() -
AutomationResult
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addContributor
- Specified by:
addContributorin interfaceIAutomationResult
-
addCreator
- Specified by:
addCreatorin interfaceIAutomationResult
-
addType
- Specified by:
addTypein interfaceIAutomationResult
-
addSubject
- Specified by:
addSubjectin interfaceIAutomationResult
-
addInstanceShape
- Specified by:
addInstanceShapein interfaceIAutomationResult
-
addServiceProvider
- Specified by:
addServiceProviderin interfaceIAutomationResult
-
addState
- Specified by:
addStatein interfaceIAutomationResult
-
addVerdict
- Specified by:
addVerdictin interfaceIAutomationResult
-
addContribution
- Specified by:
addContributionin interfaceIAutomationResult
-
addInputParameter
- Specified by:
addInputParameterin interfaceIAutomationResult
-
addOutputParameter
- Specified by:
addOutputParameterin interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
getSubject
@OslcName("subject") @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcOccurs(ZeroOrMany) @OslcValueType(String) @OslcReadOnly(false) @OslcTitle("") public Set<String> getSubject()- Specified by:
getSubjectin interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
getVerdict
@OslcName("verdict") @OslcPropertyDefinition("http://open-services.net/ns/auto#verdict") @OslcDescription("Used to indicate the verdict of the automation result 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 result verdict on the service provider.") @OslcOccurs(OneOrMany) @OslcValueType(Resource) @OslcReadOnly(false) public Set<Link> getVerdict()- Specified by:
getVerdictin interfaceIAutomationResult
-
getContribution
@OslcName("contribution") @OslcPropertyDefinition("http://open-services.net/ns/auto#contribution") @OslcDescription("A result contribution associated with this automation result. It is recommended that the contribution be an inline resource which can be retrieved with the automation result. The recommended attributes beyond the contribution itself are dcterms:title, dcterms:description and dcterms:type to provide a description of the contribution which would be appropriate for display in a simple UI for an automation result.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) public Set<Link> getContribution()- Specified by:
getContributionin interfaceIAutomationResult
-
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 interfaceIAutomationResult
-
getOutputParameter
@OslcName("outputParameter") @OslcPropertyDefinition("http://open-services.net/ns/auto#outputParameter") @OslcDescription("Automation Result output parameters are parameters associated with the automation execution which produced this Result. This includes the final value of all parameters used to initiate the execution and any additional parameters which may have been created during automation execution by the service provider or external agents. The value of a given oslc_auto:outputParameter MAY change as the execution proceeds. Point-in-time accuracy of the values of output parameters is not covered by this specification. Once the Automation Result is in a final state ( oslc_auto:complete or oslc_auto:canceled), the oslc_auto:outputParameter values MUST NOT change.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/auto#ParameterInstance") @OslcReadOnly(false) public Set<Link> getOutputParameter()- Specified by:
getOutputParameterin interfaceIAutomationResult
-
getProducedByAutomationRequest
@OslcName("producedByAutomationRequest") @OslcPropertyDefinition("http://open-services.net/ns/auto#producedByAutomationRequest") @OslcDescription("Automation Request which produced the Automation Result. It is likely that the target resource will be an oslc_auto:AutomationRequest but that is not necessarily the case.") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/auto#AutomationRequest") @OslcReadOnly(false) public Link getProducedByAutomationRequest()- Specified by:
getProducedByAutomationRequestin interfaceIAutomationResult
-
getReportsOnAutomationPlan
@OslcName("reportsOnAutomationPlan") @OslcPropertyDefinition("http://open-services.net/ns/auto#reportsOnAutomationPlan") @OslcDescription("Automation Plan which the Automation Result reports on. 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 getReportsOnAutomationPlan()- Specified by:
getReportsOnAutomationPlanin interfaceIAutomationResult
-
setContributor
- Specified by:
setContributorin interfaceIAutomationResult
-
setCreated
- Specified by:
setCreatedin interfaceIAutomationResult
-
setCreator
- Specified by:
setCreatorin interfaceIAutomationResult
-
setIdentifier
- Specified by:
setIdentifierin interfaceIAutomationResult
-
setModified
- Specified by:
setModifiedin interfaceIAutomationResult
-
setType
- Specified by:
setTypein interfaceIAutomationResult
-
setSubject
- Specified by:
setSubjectin interfaceIAutomationResult
-
setTitle
- Specified by:
setTitlein interfaceIAutomationResult
-
setInstanceShape
- Specified by:
setInstanceShapein interfaceIAutomationResult
-
setServiceProvider
- Specified by:
setServiceProviderin interfaceIAutomationResult
-
setState
- Specified by:
setStatein interfaceIAutomationResult
-
setDesiredState
- Specified by:
setDesiredStatein interfaceIAutomationResult
-
setVerdict
- Specified by:
setVerdictin interfaceIAutomationResult
-
setContribution
- Specified by:
setContributionin interfaceIAutomationResult
-
setInputParameter
- Specified by:
setInputParameterin interfaceIAutomationResult
-
setOutputParameter
- Specified by:
setOutputParameterin interfaceIAutomationResult
-
setProducedByAutomationRequest
- Specified by:
setProducedByAutomationRequestin interfaceIAutomationResult
-
setReportsOnAutomationPlan
- Specified by:
setReportsOnAutomationPlanin interfaceIAutomationResult
-