Class UpdateInstanceStatus
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.UpdateInstanceStatus
-
- Direct Known Subclasses:
UpdateEntityStatus,UpdateRelationshipStatus
public abstract class UpdateInstanceStatus extends AbstractTransactionFunction
Base transaction function for updating an instance's status.
-
-
Constructor Summary
Constructors Constructor Description UpdateInstanceStatus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static clojure.lang.IPersistentMapupdateInstanceStatus(String userId, clojure.lang.IPersistentMap existing, int instanceStatus)Makes the necessary changes to update a metadata instance's status.protected static voidvalidate(clojure.lang.IPersistentMap existing, String instanceGUID, String metadataCollectionId, Integer instanceStatus, String className, String methodName)Validate the status change.-
Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
-
-
-
Method Detail
-
updateInstanceStatus
protected static clojure.lang.IPersistentMap updateInstanceStatus(String userId, clojure.lang.IPersistentMap existing, int instanceStatus)
Makes the necessary changes to update a metadata instance's status.- Parameters:
userId- doing the updateexisting- metadata instanceinstanceStatus- new status for the instance- Returns:
- IPersistentMap giving the updated instance representation
-
validate
protected static void validate(clojure.lang.IPersistentMap existing, String instanceGUID, String metadataCollectionId, Integer instanceStatus, String className, String methodName) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, IOException, org.odpi.openmetadata.repositoryservices.ffdc.exception.StatusNotSupportedExceptionValidate the status change.- Parameters:
existing- metadata instanceinstanceGUID- unique identifier of the metadata instancemetadataCollectionId- of the metadata instanceinstanceStatus- new status for the metadata instanceclassName- calling classmethodName- calling method- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- on any null or invalid parametersIOException- on any error deserializing valuesorg.odpi.openmetadata.repositoryservices.ffdc.exception.StatusNotSupportedException- if the provided status is invalid for the metadata instanceorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- on any other error
-
-