C# 클래스 KonfDB.Engine.Database.Stores.ConfigurationDataStore

상속: IConfigurationDataStore
파일 보기 프로젝트 열기: punitganshani/KonfDB

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddApplication() 공개 메소드

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

AddAuditRecord() 공개 메소드

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

AddEnvironment() 공개 메소드

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

AddMapping() 공개 메소드

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

AddParameter() 공개 메소드

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

AddRegion() 공개 메소드

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

AddServer() 공개 메소드

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

AddSuite() 공개 메소드

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

AddUser() 공개 메소드

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

ConfigurationDataStore() 공개 메소드

public ConfigurationDataStore ( string connectionString ) : System
connectionString string
리턴 System

DeleteApplication() 공개 메소드

public DeleteApplication ( long userId, long applicationId ) : bool
userId long
applicationId long
리턴 bool

DeleteEnvironment() 공개 메소드

public DeleteEnvironment ( long userId, long environmentId ) : bool
userId long
environmentId long
리턴 bool

DeleteMapping() 공개 메소드

public DeleteMapping ( long userId, long suiteId, long mappingId ) : bool
userId long
suiteId long
mappingId long
리턴 bool

DeleteParameter() 공개 메소드

public DeleteParameter ( long userId, long parameterId ) : bool
userId long
parameterId long
리턴 bool

DeleteRegion() 공개 메소드

public DeleteRegion ( long userId, long regionId ) : bool
userId long
regionId long
리턴 bool

DeleteServer() 공개 메소드

public DeleteServer ( long userId, long serverId ) : bool
userId long
serverId long
리턴 bool

DeleteSuite() 공개 메소드

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

GetApplication() 공개 메소드

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

GetApplication() 공개 메소드

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

GetApplications() 공개 메소드

public GetApplications ( long userId, long suiteId ) : List
userId long
suiteId long
리턴 List

GetAuthenticatedInfo() 공개 메소드

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

GetConfigurations() 공개 메소드

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
리턴 List

GetEnvironment() 공개 메소드

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

GetEnvironment() 공개 메소드

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

GetEnvironments() 공개 메소드

public GetEnvironments ( long userId, long suiteId ) : List
userId long
suiteId long
리턴 List

GetMapping() 공개 메소드

public GetMapping ( long userId, long suiteId ) : List
userId long
suiteId long
리턴 List

GetParameter() 공개 메소드

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

GetParameter() 공개 메소드

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

GetParameters() 공개 메소드

public GetParameters ( long userId, long suiteId ) : List
userId long
suiteId long
리턴 List

GetParametersLike() 공개 메소드

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

GetRegion() 공개 메소드

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

GetRegion() 공개 메소드

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

GetRegions() 공개 메소드

public GetRegions ( long userId, long suiteId ) : List
userId long
suiteId long
리턴 List

GetServer() 공개 메소드

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

GetServer() 공개 메소드

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

GetServers() 공개 메소드

public GetServers ( long userId, long suiteId ) : List
userId long
suiteId long
리턴 List

GetSettings() 공개 메소드

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

GetSuite() 공개 메소드

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

GetSuite() 공개 메소드

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

GetSuiteForApplicationId() 공개 메소드

public GetSuiteForApplicationId ( long userId, long applicationId ) : long
userId long
applicationId long
리턴 long

GetSuiteForEnvironmentId() 공개 메소드

public GetSuiteForEnvironmentId ( long userId, long environmentId ) : long
userId long
environmentId long
리턴 long

GetSuiteForParameterId() 공개 메소드

public GetSuiteForParameterId ( long userId, long parameterId ) : long
userId long
parameterId long
리턴 long

GetSuiteForRegionId() 공개 메소드

public GetSuiteForRegionId ( long userId, long regionId ) : long
userId long
regionId long
리턴 long

GetSuiteForServerId() 공개 메소드

public GetSuiteForServerId ( long userId, long serverId ) : long
userId long
serverId long
리턴 long

GetSuites() 공개 메소드

public GetSuites ( long userId ) : List
userId long
리턴 List

GetUserSuiteRole() 공개 메소드

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

GrantRoleAccessToSuite() 공개 메소드

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

RevokeRoleAccessToSuite() 공개 메소드

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

UpdateApplication() 공개 메소드

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

UpdateEnvironment() 공개 메소드

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

UpdateParameter() 공개 메소드

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

UpdateRegion() 공개 메소드

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

UpdateServer() 공개 메소드

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

UpdateSuite() 공개 메소드

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

UserAuthorizedToAccessApplication() 공개 메소드

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

UserAuthorizedToAccessApplication() 공개 메소드

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