Package org.wso2.carbon.apimgt.impl.dao
Class SystemConfigurationsDAO
- java.lang.Object
-
- org.wso2.carbon.apimgt.impl.dao.SystemConfigurationsDAO
-
public class SystemConfigurationsDAO extends Object
Implementation for SystemConfigurationDAO
-
-
Constructor Summary
Constructors Constructor Description SystemConfigurationsDAO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSystemConfig(String organization, String type, String config)
Add System Configurationstatic SystemConfigurationsDAO
getInstance()
Method to get the instance of the ApiMgtDAO.static Semaphore
getLock()
A Semaphore object which acts as a lock for doing thread safe invocations of the DAOString
getSystemConfig(String organization, String type)
Retrieve System Configurationvoid
updateSystemConfig(String organization, String type, String config)
Update System Configuration
-
-
-
Method Detail
-
getLock
public static Semaphore getLock()
A Semaphore object which acts as a lock for doing thread safe invocations of the DAO- Returns:
- static Semaphore object
-
getInstance
public static SystemConfigurationsDAO getInstance()
Method to get the instance of the ApiMgtDAO.- Returns:
ApiMgtDAO
instance
-
addSystemConfig
public void addSystemConfig(String organization, String type, String config) throws org.wso2.carbon.apimgt.api.APIManagementException
Add System Configuration- Parameters:
organization
- Organizationtype
- Config Typeconfig
- Configuration to be added- Throws:
org.wso2.carbon.apimgt.api.APIManagementException
-
getSystemConfig
public String getSystemConfig(String organization, String type) throws org.wso2.carbon.apimgt.api.APIManagementException
Retrieve System Configuration- Parameters:
organization
- Organizationtype
- Config Type- Returns:
- System Configuration
- Throws:
org.wso2.carbon.apimgt.api.APIManagementException
-
updateSystemConfig
public void updateSystemConfig(String organization, String type, String config) throws org.wso2.carbon.apimgt.api.APIManagementException
Update System Configuration- Parameters:
organization
- Organizationtype
- Config Typeconfig
- Configuration to be updated- Throws:
org.wso2.carbon.apimgt.api.APIManagementException
-
-