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()Returns the company of the ObjectReference.StringgetId()Returns the id of the ObjectReference.StringgetSystem()Returns the system of the ObjectReference.StringgetSystemInstance()Returns the systemInstance of the ObjectReference.StringgetTaskId()Returns the id of the associated Task.StringgetType()Returns the type of the ObjectReference.StringgetValue()Returns 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:ObjectReferenceReturns 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:ObjectReferenceReturns the id of the associated Task.- Specified by:
getTaskIdin interfaceObjectReference- Returns:
- taskId
-
setTaskId
public void setTaskId(String taskId)
-
getCompany
public String getCompany()
Description copied from interface:ObjectReferenceReturns the company of the ObjectReference.- Specified by:
getCompanyin interfaceObjectReference- Returns:
- 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 ObjectReference
-
getSystem
public String getSystem()
Description copied from interface:ObjectReferenceReturns the system of the ObjectReference.- Specified by:
getSystemin interfaceObjectReference- Returns:
- 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:ObjectReferenceReturns the systemInstance of the ObjectReference.- Specified by:
getSystemInstancein interfaceObjectReference- Returns:
- 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 systemInstance of the ObjectReference
-
getType
public String getType()
Description copied from interface:ObjectReferenceReturns the type of the ObjectReference.- Specified by:
getTypein interfaceObjectReference- Returns:
- 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:ObjectReferenceReturns the value of the ObjectReference.- Specified by:
getValuein interfaceObjectReference- Returns:
- 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
-
-