Class UpdateInstanceStatus
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.UpdateInstanceStatus
- Direct Known Subclasses:
UpdateEntityStatus
,UpdateRelationshipStatus
Base transaction function for updating an instance's status.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static clojure.lang.IPersistentMap
updateInstanceStatus
(String userId, clojure.lang.IPersistentMap existing, int instanceStatus) Makes the necessary changes to update a metadata instance's status.protected static void
validate
(clojure.lang.IPersistentMap existing, String instanceGUID, String metadataCollectionId, Integer instanceStatus, String className, String methodName) Validate the status change.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.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 InvalidParameterException, RepositoryErrorException, IOException, 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:
InvalidParameterException
- on any null or invalid parametersIOException
- on any error deserializing valuesStatusNotSupportedException
- if the provided status is invalid for the metadata instanceRepositoryErrorException
- on any other error
-