Class H2Store
java.lang.Object
org.opendaylight.aaa.datastore.h2.H2Store
- All Implemented Interfaces:
org.opendaylight.aaa.api.IIDMStore
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.opendaylight.aaa.api.IIDMStore
DEFAULT_DOMAIN -
Constructor Summary
ConstructorsConstructorDescriptionH2Store(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 TypeMethodDescriptionorg.opendaylight.aaa.api.model.DomaincreateDomain(String domainName, boolean enable) org.opendaylight.aaa.api.model.GrantcreateGrant(String domain, String user, String role) org.opendaylight.aaa.api.model.RolecreateRole(String name, String domain, String description) org.opendaylight.aaa.api.model.UsercreateUser(String name, String password, String domain, String description, String email, boolean enabled, String salt) org.opendaylight.aaa.api.model.DomaindeleteDomain(String domainid) org.opendaylight.aaa.api.model.GrantdeleteGrant(String grantid) org.opendaylight.aaa.api.model.RoledeleteRole(String roleid) org.opendaylight.aaa.api.model.UserdeleteUser(String userid) org.opendaylight.aaa.api.model.Domainsorg.opendaylight.aaa.api.model.Grantsorg.opendaylight.aaa.api.model.Grantsorg.opendaylight.aaa.api.model.RolesgetRoles()org.opendaylight.aaa.api.model.UsersgetUsers()org.opendaylight.aaa.api.model.Usersorg.opendaylight.aaa.api.model.DomainreadDomain(String domainid) org.opendaylight.aaa.api.model.Grantorg.opendaylight.aaa.api.model.Grantorg.opendaylight.aaa.api.model.Roleorg.opendaylight.aaa.api.model.Userorg.opendaylight.aaa.api.model.DomainupdateDomain(org.opendaylight.aaa.api.model.Domain domain) org.opendaylight.aaa.api.model.RoleupdateRole(org.opendaylight.aaa.api.model.Role role) org.opendaylight.aaa.api.model.UserupdateUser(org.opendaylight.aaa.api.model.User user) org.opendaylight.aaa.api.model.DomainwriteDomain(org.opendaylight.aaa.api.model.Domain domain) org.opendaylight.aaa.api.model.GrantwriteGrant(org.opendaylight.aaa.api.model.Grant grant) org.opendaylight.aaa.api.model.RolewriteRole(org.opendaylight.aaa.api.model.Role role) org.opendaylight.aaa.api.model.UserwriteUser(org.opendaylight.aaa.api.model.User user)
-
Constructor Details
-
H2Store
public H2Store(org.opendaylight.aaa.api.password.service.PasswordHashService passwordService, H2Store.Configuration config) -
H2Store
-
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:
writeDomainin interfaceorg.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:
readDomainin interfaceorg.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:
deleteDomainin interfaceorg.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:
updateDomainin interfaceorg.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:
getDomainsin interfaceorg.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:
writeRolein interfaceorg.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:
readRolein interfaceorg.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:
deleteRolein interfaceorg.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:
updateRolein interfaceorg.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:
getRolesin interfaceorg.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:
writeUserin interfaceorg.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:
readUserin interfaceorg.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:
deleteUserin interfaceorg.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:
updateUserin interfaceorg.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:
getUsersin interfaceorg.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:
getUsersin interfaceorg.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:
writeGrantin interfaceorg.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:
readGrantin interfaceorg.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:
readGrantin interfaceorg.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:
deleteGrantin interfaceorg.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:
getGrantsin interfaceorg.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:
getGrantsin interfaceorg.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
-