public class RegistryConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
RegistryConfig.Association
This class represents an association in a the reg-config.xml
|
class |
RegistryConfig.Collection
This class represents a collection in a the reg-config.xml
|
class |
RegistryConfig.Dump
This class represents a dump in a the reg-config.xml
|
class |
RegistryConfig.Resourse
This class represents a resource in a the reg-config.xml
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ASSOCIATION |
static String |
COLLECTION |
static String |
CONFIG_REGISTRY |
static String |
DIRECTORY |
static String |
DUMP |
static String |
FILE |
static String |
GOVERNANCE_REGISTRY |
static String |
ITEM |
static String |
LOCAL_REGISTRY |
static String |
MEDIA_TYPE |
static String |
PATH |
static String |
REGISTRY_TYPE |
static String |
SOURCE_PATH |
static String |
TARGET_PATH |
static String |
TYPE |
| Constructor and Description |
|---|
RegistryConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociation(String sourcePath,
String targetPath,
String assType,
String regType)
Add an association between two registry resources
|
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.
|
void |
addDump(String path,
String content,
String regType)
Add a dump which belongs to the artifact represented by this component.
|
void |
addResource(String path,
String content,
String regType,
String mediaType)
Add a resource which belongs to the artifact represented by this component.
|
String |
getAppName() |
List<RegistryConfig.Association> |
getAssociations() |
List<RegistryConfig.Collection> |
getCollections() |
String |
getConfigFileName() |
List<RegistryConfig.Dump> |
getDumps() |
String |
getExtractedPath() |
String |
getParentArtifactName() |
List<RegistryConfig.Resourse> |
getResources() |
void |
setAppName(String appName) |
void |
setConfigFileName(String configFileName) |
void |
setExtractedPath(String extractedPath) |
void |
setParentArtifactName(String parentArtifactName) |
public static final String FILE
public static final String ITEM
public static final String DUMP
public static final String COLLECTION
public static final String ASSOCIATION
public static final String PATH
public static final String DIRECTORY
public static final String SOURCE_PATH
public static final String TARGET_PATH
public static final String TYPE
public static final String REGISTRY_TYPE
public static final String MEDIA_TYPE
public static final String LOCAL_REGISTRY
public static final String CONFIG_REGISTRY
public static final String GOVERNANCE_REGISTRY
public void addResource(String path, String content, String regType, String mediaType)
path - - path at which this resource should be storedcontent - - name of the file to store as a resourceregType - - type of registry to store the resource (local, config or governance)mediaType - - mediaType of the registry resourcepublic List<RegistryConfig.Collection> getCollections()
public void addDump(String path, String content, String regType)
path - - path at which the dump should be storedcontent - - name of the dump fileregType - - type of registry to store the resource (local, config or governance)public void addCollection(String path, String directory, String regType)
path - - path at which this collection should be storeddirectory - - name of the root directory to store as a resourceregType - - type of registry to store the resource (local, config or governance)public List<RegistryConfig.Association> getAssociations()
public void addAssociation(String sourcePath, String targetPath, String assType, String regType)
sourcePath - - source path of the associationtargetPath - - target path of the associationassType - - type of the associationregType - - type of registry to add the association (local, config or governance)public List<RegistryConfig.Resourse> getResources()
public List<RegistryConfig.Dump> getDumps()
public String getExtractedPath()
public void setExtractedPath(String extractedPath)
public String getParentArtifactName()
public void setParentArtifactName(String parentArtifactName)
public String getConfigFileName()
public void setConfigFileName(String configFileName)
public String getAppName()
public void setAppName(String appName)
Copyright © 2018 WSO2 Inc. All rights reserved.