This documentation is for WSO2 App Factory 1.0.0. View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

WSO2 App Factory comes by default with several repository types and we work on facilitating most of the commonly-used types with every new version. In the meantime, if you cannot find the repository type used in your company, you can add it using the <RepositoryProviderConfig> element in <AF_HOME>/repository/conf/appfactory/appfactory.xml file. You also should extend the AbstractRepositoryProvider class and provide the extended class as a Property.

Sample configuration

Following sample code adds GIT as a new repository type to App Factory:

<RepositoryProviderConfig name="git" enabled="true">
	<Property name="Class">org.wso2.carbon.appfactory.git.repository.provider.GITBlitBasedGITRepositoryProvider</Property>
	<Property name="BaseURL">https://git.appfactorypreview.wso2.com/</Property>
	<Property name="GitblitAdminUserName">admin@admin.com</Property>
	<Property name="GitblitAdminPassword">admin123</Property>
	<Property name="ReadWritePermission">/permission/admin/appfactory/repository/readwrite</Property>
	<Property name="DisplayName">Git</Property> 
	<Property name="Provider">git</Property> 
</RepositoryProviderConfig>

The elements of the sample configuration are explained below. You can use this information to edit the file according to your requirements.

XML elements

Property NameDescription
RepositoryProviderConfignameName of Repository Provider.
 enabledDefine whether Repository Provider is enabled or not.

The following table contains detail descriptions of each property.

Property NameDescription
ClassJava Class for you repository provider manager implementation for git.
BaseURLThe BaseURL which pointing back to the your repository service.
GitblitAdminUserNameAdmin user name of repository.
GitblitAdminPasswordAdmin password of repository.
ReadWritePermissionRead write permission string for application's repository.
DisplayNameDisplay name of repository provider.
ProviderRepository provider type.

 

 

  • No labels