Class RegistryConfig


  • public class RegistryConfig
    extends Object
    This will hold the registry resources config file declarations. This can include resources, collections and associations
    • Constructor Detail

      • RegistryConfig

        public RegistryConfig()
    • Method Detail

      • addResource

        public void addResource​(String path,
                                String content,
                                String regType,
                                String mediaType)
        Add a resource which belongs to the artifact represented by this component.
        Parameters:
        path - - path at which this resource should be stored
        content - - name of the file to store as a resource
        regType - - type of registry to store the resource (local, config or governance)
        mediaType - - mediaType of the registry resource
      • addResource

        public void addResource​(String path,
                                String content,
                                String regType,
                                String mediaType,
                                Properties properties)
        Add a resource which belongs to the artifact represented by this component.
        Parameters:
        path - - path at which this resource should be stored
        content - - name of the file to store as a resource
        regType - - type of registry to store the resource (local, config or governance)
        mediaType - - mediaType of the registry resource
      • addDump

        public void addDump​(String path,
                            String content,
                            String regType)
        Add a dump which belongs to the artifact represented by this component.
        Parameters:
        path - - path at which the dump should be stored
        content - - name of the dump file
        regType - - type of registry to store the resource (local, config or governance)
      • addCollection

        public void addCollection​(String path,
                                  String directory,
                                  String regType)
        Add a directory and all it's contents which belongs to the artifact represented by this component.
        Parameters:
        path - - path at which this collection should be stored
        directory - - name of the root directory to store as a resource
        regType - - type of registry to store the resource (local, config or governance)
      • addCollection

        public void addCollection​(String path,
                                  String directory,
                                  String regType,
                                  Properties properties)
        Add a directory and all it's contents which belongs to the artifact represented by this component.
        Parameters:
        path - - path at which this collection should be stored
        directory - - name of the root directory to store as a resource
        regType - - type of registry to store the resource (local, config or governance)
      • addAssociation

        public void addAssociation​(String sourcePath,
                                   String targetPath,
                                   String assType,
                                   String regType)
        Add an association between two registry resources
        Parameters:
        sourcePath - - source path of the association
        targetPath - - target path of the association
        assType - - type of the association
        regType - - type of registry to add the association (local, config or governance)
      • getExtractedPath

        public String getExtractedPath()
      • setExtractedPath

        public void setExtractedPath​(String extractedPath)
      • getParentArtifactName

        public String getParentArtifactName()
      • setParentArtifactName

        public void setParentArtifactName​(String parentArtifactName)
      • getConfigFileName

        public String getConfigFileName()
      • setConfigFileName

        public void setConfigFileName​(String configFileName)
      • getAppName

        public String getAppName()
      • setAppName

        public void setAppName​(String appName)