Package pro.taskana.task.internal.models
Class ObjectReferenceImpl
- java.lang.Object
-
- pro.taskana.task.internal.models.ObjectReferenceImpl
-
- All Implemented Interfaces:
ObjectReference
public class ObjectReferenceImpl extends Object implements ObjectReference
ObjectReference entity.
-
-
Constructor Summary
Constructors Constructor Description ObjectReferenceImpl()ObjectReferenceImpl(String company, String system, String systemInstance, String type, String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectReferenceImplcopy()Duplicates this ObjectReference without the id and taskId.booleanequals(Object obj)StringgetCompany()Gets the company of the ObjectReference.StringgetId()Gets the id of the ObjectReference.StringgetSystem()Gets the system of the ObjectReference.StringgetSystemInstance()Gets the systemInstance of the ObjectReference.StringgetTaskId()Gets the id of the associated task.StringgetType()Gets the type of the ObjectReference.StringgetValue()Gets the value of the ObjectReference.inthashCode()voidsetCompany(String company)Sets the company of the ObjectReference.voidsetId(String id)voidsetSystem(String system)Sets the system of the ObjectReference.voidsetSystemInstance(String systemInstance)Sets the system instance of the ObjectReference.voidsetTaskId(String taskId)voidsetType(String type)Sets the type of the ObjectReference.voidsetValue(String value)Sets the value of the ObjectReference.StringtoString()static voidvalidate(ObjectReference objectReference, String objRefType, String objName)
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ObjectReferenceGets the id of the ObjectReference.- Specified by:
getIdin interfaceObjectReference- Returns:
- the id of the ObjectReference.
-
setId
public void setId(String id)
-
getTaskId
public String getTaskId()
Description copied from interface:ObjectReferenceGets the id of the associated task.- Specified by:
getTaskIdin interfaceObjectReference- Returns:
- the taskId
-
setTaskId
public void setTaskId(String taskId)
-
getCompany
public String getCompany()
Description copied from interface:ObjectReferenceGets the company of the ObjectReference.- Specified by:
getCompanyin interfaceObjectReference- Returns:
- the company
-
setCompany
public void setCompany(String company)
Description copied from interface:ObjectReferenceSets the company of the ObjectReference.- Specified by:
setCompanyin interfaceObjectReference- Parameters:
company- the company of the object reference
-
getSystem
public String getSystem()
Description copied from interface:ObjectReferenceGets the system of the ObjectReference.- Specified by:
getSystemin interfaceObjectReference- Returns:
- the system
-
setSystem
public void setSystem(String system)
Description copied from interface:ObjectReferenceSets the system of the ObjectReference.- Specified by:
setSystemin interfaceObjectReference- Parameters:
system- the system of the ObjectReference
-
getSystemInstance
public String getSystemInstance()
Description copied from interface:ObjectReferenceGets the systemInstance of the ObjectReference.- Specified by:
getSystemInstancein interfaceObjectReference- Returns:
- the systemInstance
-
setSystemInstance
public void setSystemInstance(String systemInstance)
Description copied from interface:ObjectReferenceSets the system instance of the ObjectReference.- Specified by:
setSystemInstancein interfaceObjectReference- Parameters:
systemInstance- the system instance of the ObjectReference
-
getType
public String getType()
Description copied from interface:ObjectReferenceGets the type of the ObjectReference.- Specified by:
getTypein interfaceObjectReference- Returns:
- the type
-
setType
public void setType(String type)
Description copied from interface:ObjectReferenceSets the type of the ObjectReference.- Specified by:
setTypein interfaceObjectReference- Parameters:
type- the type of the ObjectReference
-
getValue
public String getValue()
Description copied from interface:ObjectReferenceGets the value of the ObjectReference.- Specified by:
getValuein interfaceObjectReference- Returns:
- the value
-
setValue
public void setValue(String value)
Description copied from interface:ObjectReferenceSets the value of the ObjectReference.- Specified by:
setValuein interfaceObjectReference- Parameters:
value- the value of the ObjectReference
-
copy
public ObjectReferenceImpl copy()
Description copied from interface:ObjectReferenceDuplicates this ObjectReference without the id and taskId.- Specified by:
copyin interfaceObjectReference- Returns:
- a copy of this ObjectReference
-
validate
public static void validate(ObjectReference objectReference, String objRefType, String objName) throws InvalidArgumentException
- Throws:
InvalidArgumentException
-
-