Package com.appiancorp.suiteapi.process
Class HistoryRecord.ProcessModelInfo
java.lang.Object
com.appiancorp.suiteapi.common.LocalizedIdentity
com.appiancorp.suiteapi.process.HistoryRecord.ProcessModelInfo
- All Implemented Interfaces:
Serializable
,Comparable<HistoryRecord.ProcessModelInfo>
- Enclosing class:
- HistoryRecord
public static class HistoryRecord.ProcessModelInfo
extends LocalizedIdentity
implements Comparable<HistoryRecord.ProcessModelInfo>
Information about a process model, including id, version, name and uuid.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a ProcessModelInfo with all fields null.ProcessModelInfo
(Long id, LocaleString name, String version, String uuid) Creates a ProcessModelInfo with the given id, name, version and uuid. -
Method Summary
Modifier and TypeMethodDescriptionint
Compare against another ProcessModelInfo.boolean
Returns whether theLocalizedIdentity
been passed is equal to thisLocalizedIdentity
.getUuid()
Gets the process model's universally unique identifier (uuid).Gets the process model version.int
hashCode()
Returns a hash code value for the object.void
Sets the process model's universally unique identifier (uuid).void
setVersion
(String version) Sets the process model version.
-
Constructor Details
-
ProcessModelInfo
public ProcessModelInfo()Creates a ProcessModelInfo with all fields null. -
ProcessModelInfo
Creates a ProcessModelInfo with the given id, name, version and uuid.- Parameters:
id
- the process model's idname
- the process model's nameversion
- the process model's versionuuid
- the process model's uuid
-
-
Method Details
-
getVersion
Gets the process model version. SeeAbstractProcessModel.getVersion()
.- Returns:
- the process model version (e.g. "1.0")
-
setVersion
Sets the process model version. SeeAbstractProcessModel.setVersion(String)
.- Parameters:
version
- the process model version (e.g. "1.0")
-
getUuid
@ConvertWith(com.appiancorp.kougar.mapper.parameters.UuidParameterConverter.class) public String getUuid()Gets the process model's universally unique identifier (uuid).- Returns:
- the uuid
-
setUuid
Sets the process model's universally unique identifier (uuid).- Parameters:
uuid
- the uuid
-
hashCode
public int hashCode()Description copied from class:LocalizedIdentity
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided byHashtable
.- Overrides:
hashCode
in classLocalizedIdentity
- Returns:
- a hash code value for this object
-
equals
Description copied from class:LocalizedIdentity
Returns whether theLocalizedIdentity
been passed is equal to thisLocalizedIdentity
.- Overrides:
equals
in classLocalizedIdentity
- Parameters:
o
- the reference object with which to compare.- Returns:
true
if both objects are equal, otherwisefalse
-
compareTo
Compare against another ProcessModelInfo.- Specified by:
compareTo
in interfaceComparable<HistoryRecord.ProcessModelInfo>
- Parameters:
other
-- Returns:
-