// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/model/MetaDataSource.java
// public interface MetaDataSource {
//     enum DataSourceType {
//         JDBC,
//         CATALOG,
//         METAMODEL
//     }
// 
//     String getName();
// 
//     String getDriverName();
// 
//     String getConnectionString();
// 
//     DataSourceType getDataSourceType();
// 
//     String getComment();
// 
//     Collection<MetaSchema> getSchemas();
// }
// 
// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/model/MetaRole.java
// public interface MetaRole {
//     String getName();
// }
// 
// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/model/MetaUser.java
// public interface MetaUser {
//     String getName();
// 
//     String getPassword();
// 
//     Set<SystemPrivilege> getSystemPrivileges();
// 
//     String getComment();
// }


import kr.co.bitnine.octopus.meta.model.MetaDataSource;
import kr.co.bitnine.octopus.meta.model.MetaRole;
import kr.co.bitnine.octopus.meta.model.MetaSchemaPrivilege;
import kr.co.bitnine.octopus.meta.model.MetaUser;
import kr.co.bitnine.octopus.meta.privilege.ObjectPrivilege;
import kr.co.bitnine.octopus.meta.privilege.SystemPrivilege;
import kr.co.bitnine.octopus.meta.result.ResultOfGetColumns;
import java.util.Collection;
import java.util.List;
/*
 * Licensed 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 kr.co.bitnine.octopus.meta;



public interface MetaContext {
    /*
     * User
     */

    boolean userExists(String name) throws MetaException;

    MetaUser getUser(String name) throws MetaException;

    MetaUser createUser(String name, String password) throws MetaException;

    void alterUser(String name, String newPassword) throws MetaException;

    void dropUser(String name) throws MetaException;

    void commentOnUser(String comment, String name) throws MetaException;

    Collection<MetaUser> getUsers() throws MetaException;

    /*
     * DataSource
     */

    boolean dataSourceExists(String name) throws MetaException;

// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/model/MetaDataSource.java
// public interface MetaDataSource {
//     enum DataSourceType {
//         JDBC,
//         CATALOG,
//         METAMODEL
//     }
// 
//     String getName();
// 
//     String getDriverName();
// 
//     String getConnectionString();
// 
//     DataSourceType getDataSourceType();
// 
//     String getComment();
// 
//     Collection<MetaSchema> getSchemas();
// }
// 
// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/model/MetaRole.java
// public interface MetaRole {
//     String getName();
// }
// 
// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/model/MetaUser.java
// public interface MetaUser {
//     String getName();
// 
//     String getPassword();
// 
//     Set<SystemPrivilege> getSystemPrivileges();
// 
//     String getComment();
// }


// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/MetaContext.java
import kr.co.bitnine.octopus.meta.model.MetaDataSource;
import kr.co.bitnine.octopus.meta.model.MetaRole;
import kr.co.bitnine.octopus.meta.model.MetaSchemaPrivilege;
import kr.co.bitnine.octopus.meta.model.MetaUser;
import kr.co.bitnine.octopus.meta.privilege.ObjectPrivilege;
import kr.co.bitnine.octopus.meta.privilege.SystemPrivilege;
import kr.co.bitnine.octopus.meta.result.ResultOfGetColumns;
import java.util.Collection;
import java.util.List;

/*
 * Licensed 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 kr.co.bitnine.octopus.meta;



public interface MetaContext {
    /*
     * User
     */

    boolean userExists(String name) throws MetaException;

    MetaUser getUser(String name) throws MetaException;

    MetaUser createUser(String name, String password) throws MetaException;

    void alterUser(String name, String newPassword) throws MetaException;

    void dropUser(String name) throws MetaException;

    void commentOnUser(String comment, String name) throws MetaException;

    Collection<MetaUser> getUsers() throws MetaException;

    /*
     * DataSource
     */

    boolean dataSourceExists(String name) throws MetaException;

    MetaDataSource getDataSource(String name) throws MetaException;