Class H2Store

java.lang.Object
org.opendaylight.aaa.datastore.h2.H2Store
All Implemented Interfaces:
org.opendaylight.aaa.api.IIDMStore

public class H2Store extends Object implements org.opendaylight.aaa.api.IIDMStore
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Field Summary

    Fields inherited from interface org.opendaylight.aaa.api.IIDMStore

    DEFAULT_DOMAIN
  • Constructor Summary

    Constructors
    Constructor
    Description
    H2Store(String dbUsername, String dbPassword, org.opendaylight.aaa.api.password.service.PasswordHashService passwordService)
     
    H2Store(org.opendaylight.aaa.api.password.service.PasswordHashService passwordService, H2Store.Configuration config)
     
    H2Store(ConnectionProvider connectionFactory, org.opendaylight.aaa.api.password.service.PasswordHashService passwordService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.aaa.api.model.Domain
    createDomain(String domainName, boolean enable)
     
    org.opendaylight.aaa.api.model.Grant
    createGrant(String domain, String user, String role)
     
    org.opendaylight.aaa.api.model.Role
    createRole(String name, String domain, String description)
     
    org.opendaylight.aaa.api.model.User
    createUser(String name, String password, String domain, String description, String email, boolean enabled, String salt)
     
    org.opendaylight.aaa.api.model.Domain
    deleteDomain(String domainid)
     
    org.opendaylight.aaa.api.model.Grant
     
    org.opendaylight.aaa.api.model.Role
     
    org.opendaylight.aaa.api.model.User
     
    org.opendaylight.aaa.api.model.Domains
     
    org.opendaylight.aaa.api.model.Grants
    getGrants(String userid)
     
    org.opendaylight.aaa.api.model.Grants
    getGrants(String domainid, String userid)
     
    org.opendaylight.aaa.api.model.Roles
     
    org.opendaylight.aaa.api.model.Users
     
    org.opendaylight.aaa.api.model.Users
    getUsers(String username, String domain)
     
    org.opendaylight.aaa.api.model.Domain
    readDomain(String domainid)
     
    org.opendaylight.aaa.api.model.Grant
    readGrant(String grantid)
     
    org.opendaylight.aaa.api.model.Grant
    readGrant(String domainid, String userid, String roleid)
     
    org.opendaylight.aaa.api.model.Role
    readRole(String roleid)
     
    org.opendaylight.aaa.api.model.User
    readUser(String userid)
     
    org.opendaylight.aaa.api.model.Domain
    updateDomain(org.opendaylight.aaa.api.model.Domain domain)
     
    org.opendaylight.aaa.api.model.Role
    updateRole(org.opendaylight.aaa.api.model.Role role)
     
    org.opendaylight.aaa.api.model.User
    updateUser(org.opendaylight.aaa.api.model.User user)
     
    org.opendaylight.aaa.api.model.Domain
    writeDomain(org.opendaylight.aaa.api.model.Domain domain)
     
    org.opendaylight.aaa.api.model.Grant
    writeGrant(org.opendaylight.aaa.api.model.Grant grant)
     
    org.opendaylight.aaa.api.model.Role
    writeRole(org.opendaylight.aaa.api.model.Role role)
     
    org.opendaylight.aaa.api.model.User
    writeUser(org.opendaylight.aaa.api.model.User user)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • H2Store

      public H2Store(org.opendaylight.aaa.api.password.service.PasswordHashService passwordService, H2Store.Configuration config)
    • H2Store

      public H2Store(String dbUsername, String dbPassword, org.opendaylight.aaa.api.password.service.PasswordHashService passwordService)
    • H2Store

      public H2Store(ConnectionProvider connectionFactory, org.opendaylight.aaa.api.password.service.PasswordHashService passwordService)
  • Method Details

    • writeDomain

      public org.opendaylight.aaa.api.model.Domain writeDomain(org.opendaylight.aaa.api.model.Domain domain) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      writeDomain in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • readDomain

      public org.opendaylight.aaa.api.model.Domain readDomain(String domainid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      readDomain in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • deleteDomain

      public org.opendaylight.aaa.api.model.Domain deleteDomain(String domainid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      deleteDomain in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • updateDomain

      public org.opendaylight.aaa.api.model.Domain updateDomain(org.opendaylight.aaa.api.model.Domain domain) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      updateDomain in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • getDomains

      public org.opendaylight.aaa.api.model.Domains getDomains() throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      getDomains in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • writeRole

      public org.opendaylight.aaa.api.model.Role writeRole(org.opendaylight.aaa.api.model.Role role) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      writeRole in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • readRole

      public org.opendaylight.aaa.api.model.Role readRole(String roleid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      readRole in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • deleteRole

      public org.opendaylight.aaa.api.model.Role deleteRole(String roleid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      deleteRole in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • updateRole

      public org.opendaylight.aaa.api.model.Role updateRole(org.opendaylight.aaa.api.model.Role role) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      updateRole in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • getRoles

      public org.opendaylight.aaa.api.model.Roles getRoles() throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      getRoles in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • writeUser

      public org.opendaylight.aaa.api.model.User writeUser(org.opendaylight.aaa.api.model.User user) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      writeUser in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • readUser

      public org.opendaylight.aaa.api.model.User readUser(String userid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      readUser in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • deleteUser

      public org.opendaylight.aaa.api.model.User deleteUser(String userid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      deleteUser in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • updateUser

      public org.opendaylight.aaa.api.model.User updateUser(org.opendaylight.aaa.api.model.User user) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      updateUser in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • getUsers

      public org.opendaylight.aaa.api.model.Users getUsers(String username, String domain) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      getUsers in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • getUsers

      public org.opendaylight.aaa.api.model.Users getUsers() throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      getUsers in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • writeGrant

      public org.opendaylight.aaa.api.model.Grant writeGrant(org.opendaylight.aaa.api.model.Grant grant) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      writeGrant in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • readGrant

      public org.opendaylight.aaa.api.model.Grant readGrant(String grantid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      readGrant in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • readGrant

      public org.opendaylight.aaa.api.model.Grant readGrant(String domainid, String userid, String roleid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      readGrant in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • deleteGrant

      public org.opendaylight.aaa.api.model.Grant deleteGrant(String grantid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      deleteGrant in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • getGrants

      public org.opendaylight.aaa.api.model.Grants getGrants(String domainid, String userid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      getGrants in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • getGrants

      public org.opendaylight.aaa.api.model.Grants getGrants(String userid) throws org.opendaylight.aaa.api.IDMStoreException
      Specified by:
      getGrants in interface org.opendaylight.aaa.api.IIDMStore
      Throws:
      org.opendaylight.aaa.api.IDMStoreException
    • createDomain

      public org.opendaylight.aaa.api.model.Domain createDomain(String domainName, boolean enable) throws StoreException
      Throws:
      StoreException
    • createUser

      public org.opendaylight.aaa.api.model.User createUser(String name, String password, String domain, String description, String email, boolean enabled, String salt) throws StoreException
      Throws:
      StoreException
    • createRole

      public org.opendaylight.aaa.api.model.Role createRole(String name, String domain, String description) throws StoreException
      Throws:
      StoreException
    • createGrant

      public org.opendaylight.aaa.api.model.Grant createGrant(String domain, String user, String role) throws StoreException
      Throws:
      StoreException