Class ReIdentifyInstance

    • Constructor Detail

      • ReIdentifyInstance

        public ReIdentifyInstance()
    • Method Detail

      • reIdentifyInstance

        protected static clojure.lang.IPersistentVector reIdentifyInstance​(String userId,
                                                                           clojure.lang.IPersistentMap existing,
                                                                           String instanceGUID,
                                                                           String newInstanceGUID)
        Makes the necessary changes to change the unique identifier of an instance.
        Parameters:
        userId - doing the re-identification
        existing - metadata instance
        instanceGUID - existing unique identifier of the metadata instance
        newInstanceGUID - new unique identifier to use for the metadata instance
        Returns:
        IPersistentVector tuple giving the original metadata instance followed by the re-identified metadata instance
      • validate

        protected static void validate​(clojure.lang.IPersistentMap existing,
                                       String instanceGUID,
                                       String metadataCollectionId,
                                       String className,
                                       String methodName)
                                throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException,
                                       org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException,
                                       IOException
        Validate the status re-identification.
        Parameters:
        existing - metadata instance
        instanceGUID - unique identifier of the metadata instance
        metadataCollectionId - of 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.RepositoryErrorException - on any other error