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
ConstructorsConstructorDescriptionCreates 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 TypeMethodDescriptionintCompare against another ProcessModelInfo.booleanReturns whether theLocalizedIdentitybeen passed is equal to thisLocalizedIdentity.getUuid()Gets the process model's universally unique identifier (uuid).Gets the process model version.inthashCode()Returns a hash code value for the object.voidSets the process model's universally unique identifier (uuid).voidsetVersion(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:LocalizedIdentityReturns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided byHashtable.- Overrides:
hashCodein classLocalizedIdentity- Returns:
- a hash code value for this object
-
equals
Description copied from class:LocalizedIdentityReturns whether theLocalizedIdentitybeen passed is equal to thisLocalizedIdentity.- Overrides:
equalsin classLocalizedIdentity- Parameters:
o- the reference object with which to compare.- Returns:
trueif both objects are equal, otherwisefalse
-
compareTo
Compare against another ProcessModelInfo.- Specified by:
compareToin interfaceComparable<HistoryRecord.ProcessModelInfo>- Parameters:
other-- Returns:
-