Package com.sodius.oslc.server.model
Class Task
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.server.model.Task
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://www.sodius.com/ns/feedback#")
@OslcResourceShape(title="Task Shape",
describes="http://www.sodius.com/ns/feedback#Task")
public class Task
extends AbstractResource
A task description.
- Since:
- 3.1.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddSubtask(URI subtask) voidbooleanlonglongURI[]getTitle()longinthashCode()voidvoidremoveSubtask(URI subtask) voidsetCompleted(Date completed) voidsetCreated(Date created) voidsetCreator(Link creator) voidsetCurrentStep(long currentStep) voidsetDescription(String description) voidsetIdentifier(String identifier) voidsetIssuesCount(long issuesCount) voidsetParentTask(URI parentTask) voidvoidsetSubtasks(URI[] subtasks) voidvoidsetTotalSteps(long totalSteps) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
getParentTask
@OslcTitle("Parent Task") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcPropertyDefinition("http://www.sodius.com/ns/feedback#parentTask") @OslcDescription("The task\'s parent task") public URI getParentTask() -
setParentTask
-
getIdentifier
@OslcTitle("Identifier") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcDescription("The task\'s unique identifier") public String getIdentifier() -
setIdentifier
-
getTitle
@OslcTitle("Title") @OslcOccurs(ZeroOrOne) @OslcValueType(String) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcDescription("The task\'s title") public String getTitle() -
setTitle
-
getDescription
@OslcTitle("Description") @OslcOccurs(ZeroOrOne) @OslcValueType(String) @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcDescription("The task\'s description") public String getDescription() -
setDescription
-
getCreated
@OslcTitle("Created") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcDescription("Timestamp of task creation") @OslcPropertyDefinition("http://purl.org/dc/terms/created") public Date getCreated() -
setCreated
-
getCompleted
@OslcTitle("Completed") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcDescription("Timestamp of task completion") @OslcPropertyDefinition("http://www.sodius.com/ns/feedback#completed") public Date getCompleted() -
setCompleted
-
getCreator
@OslcTitle("Creator") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcDescription("Creator of the task") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcRange("http://xmlns.com/foaf/0.1/Person") public Link getCreator() -
setCreator
-
getCurrentStep
@OslcTitle("Current Step") @OslcOccurs(ExactlyOne) @OslcValueType(Integer) @OslcPropertyDefinition("http://www.sodius.com/ns/feedback#currentStep") @OslcDescription("The current step of the task") public long getCurrentStep() -
setCurrentStep
public void setCurrentStep(long currentStep) -
getTotalSteps
@OslcTitle("Total Steps") @OslcOccurs(ExactlyOne) @OslcValueType(Integer) @OslcPropertyDefinition("http://www.sodius.com/ns/feedback#totalSteps") @OslcDescription("The total steps of the task") public long getTotalSteps() -
setTotalSteps
public void setTotalSteps(long totalSteps) -
getIssuesCount
@OslcTitle("Issues Count") @OslcOccurs(ExactlyOne) @OslcValueType(Integer) @OslcPropertyDefinition("http://www.sodius.com/ns/feedback#issuesCount") @OslcDescription("The number of issues found during the task") public long getIssuesCount() -
setIssuesCount
public void setIssuesCount(long issuesCount) -
getStatus
@OslcTitle("Status") @OslcOccurs(ZeroOrOne) @OslcValueType(String) @OslcPropertyDefinition("http://www.sodius.com/ns/feedback#status") @OslcDescription("The current status of the task") public String getStatus() -
setStatus
-
getSubtasks
@OslcName("subtask") @OslcTitle("Subtask") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRdfCollectionType(collectionType="Seq") @OslcPropertyDefinition("http://www.sodius.com/ns/feedback#subtask") public URI[] getSubtasks() -
setSubtasks
-
addSubtask
-
removeSubtask
-
increaseStep
public void increaseStep() -
addTotalStep
public void addTotalStep() -
addIssuesCount
public void addIssuesCount() -
hashCode
public int hashCode() -
equals
-