2 * Copyright (c) 2017 Kontron Canada and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.aaa.datastore.mdsal;
11 import org.opendaylight.aaa.api.IDMStoreException;
12 import org.opendaylight.aaa.api.IIDMStore;
13 import org.opendaylight.aaa.api.model.Domain;
14 import org.opendaylight.aaa.api.model.Domains;
15 import org.opendaylight.aaa.api.model.Grant;
16 import org.opendaylight.aaa.api.model.Grants;
17 import org.opendaylight.aaa.api.model.Role;
18 import org.opendaylight.aaa.api.model.Roles;
19 import org.opendaylight.aaa.api.model.User;
20 import org.opendaylight.aaa.api.model.Users;
21 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
24 * Implementation of the mdsal AAA data store
25 * FIXME the implementation will be done after updating the aaa.yang model.
27 public class MdsalStore implements IIDMStore {
29 private final DataBroker dataBroker;
31 public MdsalStore(DataBroker dataBroker) {
32 this.dataBroker = dataBroker;
36 public Domain writeDomain(Domain domain) throws IDMStoreException {
37 // TODO Auto-generated method stub
42 public Domain readDomain(String domainid) throws IDMStoreException {
43 // TODO Auto-generated method stub
48 public Domain deleteDomain(String domainid) throws IDMStoreException {
49 // TODO Auto-generated method stub
54 public Domain updateDomain(Domain domain) throws IDMStoreException {
55 // TODO Auto-generated method stub
60 public Domains getDomains() throws IDMStoreException {
61 // TODO Auto-generated method stub
66 public Role writeRole(Role role) throws IDMStoreException {
67 // TODO Auto-generated method stub
72 public Role readRole(String roleid) throws IDMStoreException {
73 // TODO Auto-generated method stub
78 public Role deleteRole(String roleid) throws IDMStoreException {
79 // TODO Auto-generated method stub
84 public Role updateRole(Role role) throws IDMStoreException {
85 // TODO Auto-generated method stub
90 public Roles getRoles() throws IDMStoreException {
91 // TODO Auto-generated method stub
96 public User writeUser(User user) throws IDMStoreException {
97 // TODO Auto-generated method stub
102 public User readUser(String userid) throws IDMStoreException {
103 // TODO Auto-generated method stub
108 public User deleteUser(String userid) throws IDMStoreException {
109 // TODO Auto-generated method stub
114 public User updateUser(User user) throws IDMStoreException {
115 // TODO Auto-generated method stub
120 public Users getUsers() throws IDMStoreException {
121 // TODO Auto-generated method stub
126 public Users getUsers(String username, String domain) throws IDMStoreException {
127 // TODO Auto-generated method stub
132 public Grant writeGrant(Grant grant) throws IDMStoreException {
133 // TODO Auto-generated method stub
138 public Grant readGrant(String grantid) throws IDMStoreException {
139 // TODO Auto-generated method stub
144 public Grant readGrant(String domainid, String userid, String roleid) throws IDMStoreException {
145 // TODO Auto-generated method stub
150 public Grant deleteGrant(String grantid) throws IDMStoreException {
151 // TODO Auto-generated method stub
156 public Grants getGrants(String domainid, String userid) throws IDMStoreException {
157 // TODO Auto-generated method stub
162 public Grants getGrants(String userid) throws IDMStoreException {
163 // TODO Auto-generated method stub