Class SystemConfigurationsDAO


  • public class SystemConfigurationsDAO
    extends Object
    Implementation for SystemConfigurationDAO
    • Constructor Detail

      • SystemConfigurationsDAO

        public SystemConfigurationsDAO()
    • 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
      • addSystemConfig

        public void addSystemConfig​(String organization,
                                    String type,
                                    String config)
                             throws org.wso2.carbon.apimgt.api.APIManagementException
        Add System Configuration
        Parameters:
        organization - Organization
        type - Config Type
        config - 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 - Organization
        type - 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 - Organization
        type - Config Type
        config - Configuration to be updated
        Throws:
        org.wso2.carbon.apimgt.api.APIManagementException