C# Class KonfDB.Engine.Database.Stores.ConfigurationDataStore

Inheritance: IConfigurationDataStore
Datei anzeigen Open project: punitganshani/KonfDB

Public Methods

Method Description
AddApplication ( ApplicationModel model ) : ApplicationModel
AddAuditRecord ( AuditRecordModel auditRecord ) : void
AddEnvironment ( EnvironmentModel model ) : EnvironmentModel
AddMapping ( MappingModel model ) : MappingModel
AddParameter ( ParameterModel model ) : ParameterModel
AddRegion ( RegionModel model ) : RegionModel
AddServer ( ServerModel model ) : ServerModel
AddSuite ( SuiteCreateModel suiteModel ) : SuiteModel
AddUser ( string username, string password, string randomSalt ) : RegisterModel
ConfigurationDataStore ( string connectionString ) : System
DeleteApplication ( long userId, long applicationId ) : bool
DeleteEnvironment ( long userId, long environmentId ) : bool
DeleteMapping ( long userId, long suiteId, long mappingId ) : bool
DeleteParameter ( long userId, long parameterId ) : bool
DeleteRegion ( long userId, long regionId ) : bool
DeleteServer ( long userId, long serverId ) : bool
DeleteSuite ( SuiteModel suiteModel ) : bool
GetApplication ( long userId, long applicationId ) : ApplicationModel
GetApplication ( long userId, string applicationName ) : ApplicationModel
GetApplications ( long userId, long suiteId ) : List
GetAuthenticatedInfo ( string username, string password, string getHash ) : AuthenticationModel
GetConfigurations ( long userId, long appId, long serverId, long envId, long regionId, string publicKey ) : List
GetEnvironment ( long userId, long environmentId ) : EnvironmentModel
GetEnvironment ( long userId, string environmentName ) : EnvironmentModel
GetEnvironments ( long userId, long suiteId ) : List
GetMapping ( long userId, long suiteId ) : List
GetParameter ( long userId, long parameterId ) : ParameterModel
GetParameter ( long userId, string parameterName ) : ParameterModel
GetParameters ( long userId, long suiteId ) : List
GetParametersLike ( long userId, long suiteId, string term ) : List
GetRegion ( long userId, long regionId ) : RegionModel
GetRegion ( long userId, string regionName ) : RegionModel
GetRegions ( long userId, long suiteId ) : List
GetServer ( long userId, long serverId ) : ServerModel
GetServer ( long userId, string serverName ) : ServerModel
GetServers ( long userId, long suiteId ) : List
GetSettings ( bool active, bool autoLoad ) : string>.Dictionary
GetSuite ( long loggedInUserId, long suiteId ) : SuiteModel
GetSuite ( long loggedInUserId, string suiteName ) : SuiteModel
GetSuiteForApplicationId ( long userId, long applicationId ) : long
GetSuiteForEnvironmentId ( long userId, long environmentId ) : long
GetSuiteForParameterId ( long userId, long parameterId ) : long
GetSuiteForRegionId ( long userId, long regionId ) : long
GetSuiteForServerId ( long userId, long serverId ) : long
GetSuites ( long userId ) : List
GetUserSuiteRole ( long userId, long suiteId ) : RoleType[]
GrantRoleAccessToSuite ( long suiteId, long loggedInUserId, string username, RoleType role ) : bool
RevokeRoleAccessToSuite ( long suiteId, long loggedInUserId, string username ) : bool
UpdateApplication ( ApplicationModel model ) : ApplicationModel
UpdateEnvironment ( EnvironmentModel model ) : EnvironmentModel
UpdateParameter ( ParameterModel model ) : ParameterModel
UpdateRegion ( RegionModel model ) : RegionModel
UpdateServer ( ServerModel model ) : ServerModel
UpdateSuite ( SuiteModel suiteModel ) : void
UserAuthorizedToAccessApplication ( UnitOfWork unitOfWork, long userId, long applicationId, RoleType roleTypes ) : bool
UserAuthorizedToAccessApplication ( UnitOfWork unitOfWork, long userId, string applicationName, RoleType roleTypes ) : bool

Private Methods

Method Description
GetEncryptedPasswordForUserCredentials ( string username, string password, string salt ) : string
UserAuthorizedToAccessEnvironment ( UnitOfWork unitOfWork, long userId, long environmentId, RoleType roleTypes ) : bool
UserAuthorizedToAccessEnvironment ( UnitOfWork unitOfWork, long userId, string environment, RoleType roleTypes ) : bool
UserAuthorizedToAccessParameter ( UnitOfWork unitOfWork, long userId, long parameterId, RoleType roleTypes ) : bool
UserAuthorizedToAccessParameter ( UnitOfWork unitOfWork, long userId, string parameter, RoleType roleTypes ) : bool
UserAuthorizedToAccessRegion ( UnitOfWork unitOfWork, long userId, long regionId, RoleType roleTypes ) : bool
UserAuthorizedToAccessRegion ( UnitOfWork unitOfWork, long userId, string region, RoleType roleTypes ) : bool
UserAuthorizedToAccessServer ( UnitOfWork unitOfWork, long userId, long serverId, RoleType roleTypes ) : bool
UserAuthorizedToAccessServer ( UnitOfWork unitOfWork, long userId, string server, RoleType roleTypes ) : bool
UserAuthorizedToAccessSuite ( UnitOfWork unitOfWork, long loggedInUserId, long suiteId, RoleType roleTypes ) : bool
UserAuthorizedToAccessSuite ( UnitOfWork unitOfWork, long loggedInUserId, string suiteName, RoleType roleTypes ) : bool

Method Details

AddApplication() public method

public AddApplication ( ApplicationModel model ) : ApplicationModel
model KonfDB.Infrastructure.Database.Entities.Configuration.ApplicationModel
return KonfDB.Infrastructure.Database.Entities.Configuration.ApplicationModel

AddAuditRecord() public method

public AddAuditRecord ( AuditRecordModel auditRecord ) : void
auditRecord KonfDB.Infrastructure.Database.Entities.Configuration.AuditRecordModel
return void

AddEnvironment() public method

public AddEnvironment ( EnvironmentModel model ) : EnvironmentModel
model KonfDB.Infrastructure.Database.Entities.Configuration.EnvironmentModel
return KonfDB.Infrastructure.Database.Entities.Configuration.EnvironmentModel

AddMapping() public method

public AddMapping ( MappingModel model ) : MappingModel
model KonfDB.Infrastructure.Database.Entities.Configuration.MappingModel
return KonfDB.Infrastructure.Database.Entities.Configuration.MappingModel

AddParameter() public method

public AddParameter ( ParameterModel model ) : ParameterModel
model KonfDB.Infrastructure.Database.Entities.Configuration.ParameterModel
return KonfDB.Infrastructure.Database.Entities.Configuration.ParameterModel

AddRegion() public method

public AddRegion ( RegionModel model ) : RegionModel
model KonfDB.Infrastructure.Database.Entities.Configuration.RegionModel
return KonfDB.Infrastructure.Database.Entities.Configuration.RegionModel

AddServer() public method

public AddServer ( ServerModel model ) : ServerModel
model KonfDB.Infrastructure.Database.Entities.Configuration.ServerModel
return KonfDB.Infrastructure.Database.Entities.Configuration.ServerModel

AddSuite() public method

public AddSuite ( SuiteCreateModel suiteModel ) : SuiteModel
suiteModel SuiteCreateModel
return KonfDB.Infrastructure.Database.Entities.Configuration.SuiteModel

AddUser() public method

public AddUser ( string username, string password, string randomSalt ) : RegisterModel
username string
password string
randomSalt string
return KonfDB.Infrastructure.Database.Entities.Account.RegisterModel

ConfigurationDataStore() public method

public ConfigurationDataStore ( string connectionString ) : System
connectionString string
return System

DeleteApplication() public method

public DeleteApplication ( long userId, long applicationId ) : bool
userId long
applicationId long
return bool

DeleteEnvironment() public method

public DeleteEnvironment ( long userId, long environmentId ) : bool
userId long
environmentId long
return bool

DeleteMapping() public method

public DeleteMapping ( long userId, long suiteId, long mappingId ) : bool
userId long
suiteId long
mappingId long
return bool

DeleteParameter() public method

public DeleteParameter ( long userId, long parameterId ) : bool
userId long
parameterId long
return bool

DeleteRegion() public method

public DeleteRegion ( long userId, long regionId ) : bool
userId long
regionId long
return bool

DeleteServer() public method

public DeleteServer ( long userId, long serverId ) : bool
userId long
serverId long
return bool

DeleteSuite() public method

public DeleteSuite ( SuiteModel suiteModel ) : bool
suiteModel KonfDB.Infrastructure.Database.Entities.Configuration.SuiteModel
return bool

GetApplication() public method

public GetApplication ( long userId, long applicationId ) : ApplicationModel
userId long
applicationId long
return KonfDB.Infrastructure.Database.Entities.Configuration.ApplicationModel

GetApplication() public method

public GetApplication ( long userId, string applicationName ) : ApplicationModel
userId long
applicationName string
return KonfDB.Infrastructure.Database.Entities.Configuration.ApplicationModel

GetApplications() public method

public GetApplications ( long userId, long suiteId ) : List
userId long
suiteId long
return List

GetAuthenticatedInfo() public method

public GetAuthenticatedInfo ( string username, string password, string getHash ) : AuthenticationModel
username string
password string
getHash string
return KonfDB.Infrastructure.Database.Entities.Account.AuthenticationModel

GetConfigurations() public method

public GetConfigurations ( long userId, long appId, long serverId, long envId, long regionId, string publicKey ) : List
userId long
appId long
serverId long
envId long
regionId long
publicKey string
return List

GetEnvironment() public method

public GetEnvironment ( long userId, long environmentId ) : EnvironmentModel
userId long
environmentId long
return KonfDB.Infrastructure.Database.Entities.Configuration.EnvironmentModel

GetEnvironment() public method

public GetEnvironment ( long userId, string environmentName ) : EnvironmentModel
userId long
environmentName string
return KonfDB.Infrastructure.Database.Entities.Configuration.EnvironmentModel

GetEnvironments() public method

public GetEnvironments ( long userId, long suiteId ) : List
userId long
suiteId long
return List

GetMapping() public method

public GetMapping ( long userId, long suiteId ) : List
userId long
suiteId long
return List

GetParameter() public method

public GetParameter ( long userId, long parameterId ) : ParameterModel
userId long
parameterId long
return KonfDB.Infrastructure.Database.Entities.Configuration.ParameterModel

GetParameter() public method

public GetParameter ( long userId, string parameterName ) : ParameterModel
userId long
parameterName string
return KonfDB.Infrastructure.Database.Entities.Configuration.ParameterModel

GetParameters() public method

public GetParameters ( long userId, long suiteId ) : List
userId long
suiteId long
return List

GetParametersLike() public method

public GetParametersLike ( long userId, long suiteId, string term ) : List
userId long
suiteId long
term string
return List

GetRegion() public method

public GetRegion ( long userId, long regionId ) : RegionModel
userId long
regionId long
return KonfDB.Infrastructure.Database.Entities.Configuration.RegionModel

GetRegion() public method

public GetRegion ( long userId, string regionName ) : RegionModel
userId long
regionName string
return KonfDB.Infrastructure.Database.Entities.Configuration.RegionModel

GetRegions() public method

public GetRegions ( long userId, long suiteId ) : List
userId long
suiteId long
return List

GetServer() public method

public GetServer ( long userId, long serverId ) : ServerModel
userId long
serverId long
return KonfDB.Infrastructure.Database.Entities.Configuration.ServerModel

GetServer() public method

public GetServer ( long userId, string serverName ) : ServerModel
userId long
serverName string
return KonfDB.Infrastructure.Database.Entities.Configuration.ServerModel

GetServers() public method

public GetServers ( long userId, long suiteId ) : List
userId long
suiteId long
return List

GetSettings() public method

public GetSettings ( bool active, bool autoLoad ) : string>.Dictionary
active bool
autoLoad bool
return string>.Dictionary

GetSuite() public method

public GetSuite ( long loggedInUserId, long suiteId ) : SuiteModel
loggedInUserId long
suiteId long
return KonfDB.Infrastructure.Database.Entities.Configuration.SuiteModel

GetSuite() public method

public GetSuite ( long loggedInUserId, string suiteName ) : SuiteModel
loggedInUserId long
suiteName string
return KonfDB.Infrastructure.Database.Entities.Configuration.SuiteModel

GetSuiteForApplicationId() public method

public GetSuiteForApplicationId ( long userId, long applicationId ) : long
userId long
applicationId long
return long

GetSuiteForEnvironmentId() public method

public GetSuiteForEnvironmentId ( long userId, long environmentId ) : long
userId long
environmentId long
return long

GetSuiteForParameterId() public method

public GetSuiteForParameterId ( long userId, long parameterId ) : long
userId long
parameterId long
return long

GetSuiteForRegionId() public method

public GetSuiteForRegionId ( long userId, long regionId ) : long
userId long
regionId long
return long

GetSuiteForServerId() public method

public GetSuiteForServerId ( long userId, long serverId ) : long
userId long
serverId long
return long

GetSuites() public method

public GetSuites ( long userId ) : List
userId long
return List

GetUserSuiteRole() public method

public GetUserSuiteRole ( long userId, long suiteId ) : RoleType[]
userId long
suiteId long
return RoleType[]

GrantRoleAccessToSuite() public method

public GrantRoleAccessToSuite ( long suiteId, long loggedInUserId, string username, RoleType role ) : bool
suiteId long
loggedInUserId long
username string
role RoleType
return bool

RevokeRoleAccessToSuite() public method

public RevokeRoleAccessToSuite ( long suiteId, long loggedInUserId, string username ) : bool
suiteId long
loggedInUserId long
username string
return bool

UpdateApplication() public method

public UpdateApplication ( ApplicationModel model ) : ApplicationModel
model KonfDB.Infrastructure.Database.Entities.Configuration.ApplicationModel
return KonfDB.Infrastructure.Database.Entities.Configuration.ApplicationModel

UpdateEnvironment() public method

public UpdateEnvironment ( EnvironmentModel model ) : EnvironmentModel
model KonfDB.Infrastructure.Database.Entities.Configuration.EnvironmentModel
return KonfDB.Infrastructure.Database.Entities.Configuration.EnvironmentModel

UpdateParameter() public method

public UpdateParameter ( ParameterModel model ) : ParameterModel
model KonfDB.Infrastructure.Database.Entities.Configuration.ParameterModel
return KonfDB.Infrastructure.Database.Entities.Configuration.ParameterModel

UpdateRegion() public method

public UpdateRegion ( RegionModel model ) : RegionModel
model KonfDB.Infrastructure.Database.Entities.Configuration.RegionModel
return KonfDB.Infrastructure.Database.Entities.Configuration.RegionModel

UpdateServer() public method

public UpdateServer ( ServerModel model ) : ServerModel
model KonfDB.Infrastructure.Database.Entities.Configuration.ServerModel
return KonfDB.Infrastructure.Database.Entities.Configuration.ServerModel

UpdateSuite() public method

public UpdateSuite ( SuiteModel suiteModel ) : void
suiteModel KonfDB.Infrastructure.Database.Entities.Configuration.SuiteModel
return void

UserAuthorizedToAccessApplication() public method

public UserAuthorizedToAccessApplication ( UnitOfWork unitOfWork, long userId, long applicationId, RoleType roleTypes ) : bool
unitOfWork UnitOfWork
userId long
applicationId long
roleTypes RoleType
return bool

UserAuthorizedToAccessApplication() public method

public UserAuthorizedToAccessApplication ( UnitOfWork unitOfWork, long userId, string applicationName, RoleType roleTypes ) : bool
unitOfWork UnitOfWork
userId long
applicationName string
roleTypes RoleType
return bool