Class ToDoProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ToDoProperties
-
- All Implemented Interfaces:
Serializable
public class ToDoProperties extends ReferenceableProperties
The "To Do" describes an action - it may be assigned to a person role (see PersonRoleAction).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToDoProperties()Default constructorToDoProperties(ToDoProperties template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.DategetCompletionTime()Return when this was completed - or null if still outstanding.DategetCreationTime()Return the time that this action was created.StringgetDescription()Return the description of the asset.DategetDueTime()Return when this needs to be completed by.StringgetName()Return the name of the asset.intgetPriority()Return how important this is.ToDoStatusgetStatus()Return the status of the action/to do.inthashCode()Return hash code for this objectvoidsetCompletionTime(Date completionTime)Set up when this was completed - or null if still outstanding.voidsetCreationTime(Date creationTime)Set up the time that the action was created.voidsetDescription(String description)Set up the description of the asset.voidsetDueTime(Date dueTime)Set up when this needs to be completed by.voidsetName(String name)Set up the name of the asset.voidsetPriority(int priority)Set up how important this is.voidsetStatus(ToDoStatus status)Set up the status of the action/to do.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
ToDoProperties
public ToDoProperties()
Default constructor
-
ToDoProperties
public ToDoProperties(ToDoProperties template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getName
public String getName()
Return the name of the asset.- Returns:
- string name
-
setName
public void setName(String name)
Set up the name of the asset.- Parameters:
name- string name
-
getDescription
public String getDescription()
Return the description of the asset.- Returns:
- text
-
setDescription
public void setDescription(String description)
Set up the description of the asset.- Parameters:
description- text
-
getCreationTime
public Date getCreationTime()
Return the time that this action was created.- Returns:
- date
-
setCreationTime
public void setCreationTime(Date creationTime)
Set up the time that the action was created.- Parameters:
creationTime- data
-
getPriority
public int getPriority()
Return how important this is.- Returns:
- int
-
setPriority
public void setPriority(int priority)
Set up how important this is.- Parameters:
priority- integer
-
getDueTime
public Date getDueTime()
Return when this needs to be completed by.- Returns:
- date
-
setDueTime
public void setDueTime(Date dueTime)
Set up when this needs to be completed by.- Parameters:
dueTime- date
-
getCompletionTime
public Date getCompletionTime()
Return when this was completed - or null if still outstanding.- Returns:
- date
-
setCompletionTime
public void setCompletionTime(Date completionTime)
Set up when this was completed - or null if still outstanding.- Parameters:
completionTime- date
-
getStatus
public ToDoStatus getStatus()
Return the status of the action/to do.- Returns:
- status enum
-
setStatus
public void setStatus(ToDoStatus status)
Set up the status of the action/to do.- Parameters:
status- status enum
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classReferenceableProperties- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classReferenceableProperties- Returns:
- int hash code
-
-