Class RegistryConfig
- java.lang.Object
-
- org.wso2.carbon.application.deployer.config.RegistryConfig
-
public class RegistryConfig extends Object
This will hold the registry resources config file declarations. This can include resources, collections and associations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRegistryConfig.AssociationThis class represents an association in a the reg-config.xmlclassRegistryConfig.CollectionThis class represents a collection in a the reg-config.xmlclassRegistryConfig.DumpThis class represents a dump in a the reg-config.xmlclassRegistryConfig.ResourseThis class represents a resource in a the reg-config.xml
-
Field Summary
Fields Modifier and Type Field Description static StringASSOCIATIONstatic StringCOLLECTIONstatic StringCONFIG_REGISTRYstatic StringDIRECTORYstatic StringDUMPstatic StringFILEstatic StringGOVERNANCE_REGISTRYstatic StringITEMstatic StringLOCAL_REGISTRYstatic StringMEDIA_TYPEstatic StringPATHstatic StringREGISTRY_TYPEstatic StringSOURCE_PATHstatic StringTARGET_PATHstatic StringTYPE
-
Constructor Summary
Constructors Constructor Description RegistryConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAssociation(String sourcePath, String targetPath, String assType, String regType)Add an association between two registry resourcesvoidaddCollection(String path, String directory, String regType)Add a directory and all it's contents which belongs to the artifact represented by this component.voidaddCollection(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.voidaddDump(String path, String content, String regType)Add a dump which belongs to the artifact represented by this component.voidaddResource(String path, String content, String regType, String mediaType)Add a resource which belongs to the artifact represented by this component.voidaddResource(String path, String content, String regType, String mediaType, Properties properties)Add a resource which belongs to the artifact represented by this component.StringgetAppName()List<RegistryConfig.Association>getAssociations()List<RegistryConfig.Collection>getCollections()StringgetConfigFileName()List<RegistryConfig.Dump>getDumps()StringgetExtractedPath()StringgetParentArtifactName()List<RegistryConfig.Resourse>getResources()voidsetAppName(String appName)voidsetConfigFileName(String configFileName)voidsetExtractedPath(String extractedPath)voidsetParentArtifactName(String parentArtifactName)
-
-
-
Field Detail
-
FILE
public static final String FILE
- See Also:
- Constant Field Values
-
ITEM
public static final String ITEM
- See Also:
- Constant Field Values
-
DUMP
public static final String DUMP
- See Also:
- Constant Field Values
-
COLLECTION
public static final String COLLECTION
- See Also:
- Constant Field Values
-
ASSOCIATION
public static final String ASSOCIATION
- See Also:
- Constant Field Values
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
DIRECTORY
public static final String DIRECTORY
- See Also:
- Constant Field Values
-
SOURCE_PATH
public static final String SOURCE_PATH
- See Also:
- Constant Field Values
-
TARGET_PATH
public static final String TARGET_PATH
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
REGISTRY_TYPE
public static final String REGISTRY_TYPE
- See Also:
- Constant Field Values
-
MEDIA_TYPE
public static final String MEDIA_TYPE
- See Also:
- Constant Field Values
-
LOCAL_REGISTRY
public static final String LOCAL_REGISTRY
- See Also:
- Constant Field Values
-
CONFIG_REGISTRY
public static final String CONFIG_REGISTRY
- See Also:
- Constant Field Values
-
GOVERNANCE_REGISTRY
public static final String GOVERNANCE_REGISTRY
- See Also:
- Constant Field Values
-
-
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 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 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 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 resource
-
getCollections
public List<RegistryConfig.Collection> getCollections()
-
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 storedcontent- - name of the dump fileregType- - 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 storeddirectory- - name of the root directory to store as a resourceregType- - 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 storeddirectory- - name of the root directory to store as a resourceregType- - type of registry to store the resource (local, config or governance)
-
getAssociations
public List<RegistryConfig.Association> getAssociations()
-
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 associationtargetPath- - target path of the associationassType- - type of the associationregType- - type of registry to add the association (local, config or governance)
-
getResources
public List<RegistryConfig.Resourse> getResources()
-
getDumps
public List<RegistryConfig.Dump> getDumps()
-
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)
-
-