Class UpdateInstanceStatus

    • Constructor Detail

      • UpdateInstanceStatus

        public UpdateInstanceStatus()
    • 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 update
        existing - metadata instance
        instanceStatus - 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 instance
        instanceGUID - unique identifier of the metadata instance
        metadataCollectionId - of the metadata instance
        instanceStatus - new status for the metadata instance
        className - calling class
        methodName - calling method
        Throws:
        org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - on any null or invalid parameters
        IOException - on any error deserializing values
        org.odpi.openmetadata.repositoryservices.ffdc.exception.StatusNotSupportedException - if the provided status is invalid for the metadata instance
        org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - on any other error