// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package com.cloud.vpc.dao; import java.util.HashMap; import java.util.Map; import javax.ejb.Local; import org.apache.cloudstack.framework.config.dao.ConfigurationDao; import org.apache.cloudstack.framework.config.impl.ConfigurationVO; import com.cloud.utils.db.GenericDaoBase; @Local(value={ConfigurationDao.class}) public class MockConfigurationDaoImpl extends GenericDaoBase implements ConfigurationDao{ /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#getConfiguration(java.lang.String, java.util.Map) */ @Override public Map getConfiguration(String instance, Map params) { return new HashMap(); } /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#getConfiguration(java.util.Map) */ @Override public Map getConfiguration(Map params) { return new HashMap(); } /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#getConfiguration() */ @Override public Map getConfiguration() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#update(java.lang.String, java.lang.String) */ @Override public boolean update(String name, String value) { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#getValue(java.lang.String) */ @Override public String getValue(String name) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#getValueAndInitIfNotExist(java.lang.String, java.lang.String, java.lang.String) */ @Override public String getValueAndInitIfNotExist(String name, String category, String initValue) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#isPremium() */ @Override public boolean isPremium() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#findByName(java.lang.String) */ @Override public ConfigurationVO findByName(String name) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see com.cloud.configuration.dao.ConfigurationDao#update(java.lang.String, java.lang.String, java.lang.String) */ @Override public boolean update(String name, String category, String value) { // TODO Auto-generated method stub return false; } @Override public void invalidateCache() { } }