org.wso2.carbon.application.deployer.config
Class RegistryConfig

java.lang.Object
  extended by 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
 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
 
Field Summary
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 Summary
RegistryConfig()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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

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 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)

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 association
targetPath - - target path of the association
assType - - type of the association
regType - - 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)


Copyright © 2014 WSO2 Inc. All rights reserved.