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
Base transaction function for updating an instance's status.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
UpdateInstanceStatus
public UpdateInstanceStatus()
-
-
Method Details
-
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.StatusNotSupportedException Validate 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
-