|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.application.deployer.persistence.CarbonAppPersistenceManager
public class CarbonAppPersistenceManager
| Constructor Summary | |
|---|---|
CarbonAppPersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig)
|
|
| Method Summary | |
|---|---|
boolean |
areRolesOverridden()
Checks whether default server roles in carbon.xml are overridden through the UI |
void |
createResourcePathMappingFile(String appName)
Create resource path mapping file in the registry. |
void |
deleteApplication(String appNameWithVersion)
Delete the specified cApp from registry if already exists |
void |
deleteResourcePathMappingFile(String appName)
Delete resource path mapping file in the registry. |
String |
getHashValue(String appNameWithVersion)
Reads the hash value property of the given cApp from registry.. |
RegistryConfig |
loadRegistryConfig(String artifactPath)
Loads the registry config stream for the given artifact path and builds a RegistryConfig instance. |
RegistryConfig |
loadRegistryConfig(String artifactPath,
String appName)
Loads the registry config stream for the given artifact path and builds a RegistryConfig instance. |
void |
persistRegConfig(String artifactPath,
RegistryConfig regConfig)
Persits the registry config file to registry |
List<String> |
readServerRoles(String roleType)
Reads the server roles which are stored in registry |
void |
removeArtifactResources(RegistryConfig registryConfig)
Removes all registry collections, resources and associations introduced through this Capp artifact. |
void |
writeArtifactResources(RegistryConfig regConfig)
Writes all registry contents (resources, collections and associations) of the given artifact to the registry. |
String |
writeFromFile(org.wso2.carbon.registry.core.Registry reg,
File file,
String registryPath,
String mediaType)
Write the file content as a registry resource to the given path |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CarbonAppPersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig)
throws org.wso2.carbon.CarbonException
org.wso2.carbon.CarbonException| Method Detail |
|---|
public String getHashValue(String appNameWithVersion)
throws org.wso2.carbon.CarbonException
appNameWithVersion - - cApp name with version
org.wso2.carbon.CarbonException - -
public void deleteApplication(String appNameWithVersion)
throws Exception
appNameWithVersion - - application name with version
Exception - - on registry transaction errorpublic void removeArtifactResources(RegistryConfig registryConfig)
registryConfig - - RegistryConfig instance
public void writeArtifactResources(RegistryConfig regConfig)
throws Exception
regConfig - - Artifact instance
Exception - - on registry errors
public String writeFromFile(org.wso2.carbon.registry.core.Registry reg,
File file,
String registryPath,
String mediaType)
reg - - correct registry instancefile - - file to be writtenregistryPath - - path to write the resourcemediaType - - media type of the resource to be added
public void createResourcePathMappingFile(String appName)
appName - Governance Registry Application Namepublic void deleteResourcePathMappingFile(String appName)
appName - Governance Registry Application Name
public void persistRegConfig(String artifactPath,
RegistryConfig regConfig)
throws Exception
artifactPath - - registry path of the "registry/resource" artifactregConfig - - RegistryConfig instance
Exception - - on registry errors
public RegistryConfig loadRegistryConfig(String artifactPath)
throws Exception
artifactPath - - registry path of the "registry/resource" artifact
Exception - - on registry errors
public RegistryConfig loadRegistryConfig(String artifactPath,
String appName)
throws Exception
artifactPath - - registry path of the "registry/resource" artifactappName - - carbon application name
Exception - - on registry errorspublic boolean areRolesOverridden()
public List<String> readServerRoles(String roleType)
roleType - - default or custom
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||