C# Class Dev2.Studio.Core.EnvironmentRepository

Inheritance: IEnvironmentRepository
Mostra file Open project: Warewolf-ESB/Warewolf

Protected Properties

Property Type Description
Environments List

Public Methods

Method Description
All ( ) : ICollection
Clear ( ) : void
Create ( IEnvironmentModel source ) : EnvironmentRepository
Dispose ( ) : void
EnvironmentRepository ( IEnvironmentRepository environmentRepository ) : System
Fetch ( IEnvironmentModel server ) : IEnvironmentModel
Find ( bool>.Expression expression ) : ICollection
FindSingle ( bool>.Expression expression ) : IEnvironmentModel
ForceLoad ( ) : void
Get ( System.Guid id ) : IEnvironmentModel
GetAppServerUriFromConnectionString ( string connectionstring ) : string
GetEnvironmentsDirectory ( ) : string
GetEnvironmentsFilePath ( ) : string
Load ( ) : void
LookupEnvironments ( IEnvironmentModel defaultEnvironment, IList environmentGuids = null ) : IList

Lookups the environments. If environmentGuids is null or empty then this returns all enSourceType.Dev2Server sources.

ReadSession ( ) : IList
Remove ( System.Guid id ) : void
Remove ( ICollection environments ) : void
Remove ( IEnvironmentModel environment ) : void
Save ( IEnvironmentModel environment ) : string
Save ( ICollection environments ) : void
WriteSession ( IEnumerable environmentGuids ) : void

Protected Methods

Method Description
AddInternal ( IEnvironmentModel environment ) : void
EnvironmentRepository ( ) : System
EnvironmentRepository ( IEnvironmentModel source ) : System
LoadInternal ( ) : void
RemoveInternal ( IEnvironmentModel environment ) : bool

Private Methods

Method Description
CreateEnvironmentModel ( Connection connection ) : IEnvironmentModel
CreateEnvironmentModel ( System.Guid id, Uri applicationServerUri, AuthenticationType authenticationType, string userName, string password, string name ) : IEnvironmentModel
CreateEnvironmentModel ( System.Guid id, Uri applicationServerUri, string alias ) : IEnvironmentModel
Dispose ( bool disposing ) : void
ParseConnectionString ( string s ) : string>.Dictionary
RaiseItemAdded ( ) : void
RaiseItemEdited ( IEnvironmentModel environment, bool isConnected ) : void

Method Details

AddInternal() protected method

protected AddInternal ( IEnvironmentModel environment ) : void
environment IEnvironmentModel
return void

All() public method

public All ( ) : ICollection
return ICollection

Clear() public method

public Clear ( ) : void
return void

Create() public static method

public static Create ( IEnvironmentModel source ) : EnvironmentRepository
source IEnvironmentModel
return EnvironmentRepository

Dispose() public method

public Dispose ( ) : void
return void

EnvironmentRepository() protected method

protected EnvironmentRepository ( ) : System
return System

EnvironmentRepository() protected method

protected EnvironmentRepository ( IEnvironmentModel source ) : System
source IEnvironmentModel
return System

EnvironmentRepository() public method

public EnvironmentRepository ( IEnvironmentRepository environmentRepository ) : System
environmentRepository IEnvironmentRepository
return System

Fetch() public method

public Fetch ( IEnvironmentModel server ) : IEnvironmentModel
server IEnvironmentModel
return IEnvironmentModel

Find() public method

public Find ( bool>.Expression expression ) : ICollection
expression bool>.Expression
return ICollection

FindSingle() public method

public FindSingle ( bool>.Expression expression ) : IEnvironmentModel
expression bool>.Expression
return IEnvironmentModel

ForceLoad() public method

public ForceLoad ( ) : void
return void

Get() public method

public Get ( System.Guid id ) : IEnvironmentModel
id System.Guid
return IEnvironmentModel

GetAppServerUriFromConnectionString() public static method

public static GetAppServerUriFromConnectionString ( string connectionstring ) : string
connectionstring string
return string

GetEnvironmentsDirectory() public static method

public static GetEnvironmentsDirectory ( ) : string
return string

GetEnvironmentsFilePath() public static method

public static GetEnvironmentsFilePath ( ) : string
return string

Load() public method

public Load ( ) : void
return void

LoadInternal() protected method

protected LoadInternal ( ) : void
return void

LookupEnvironments() public method

Lookups the environments. If environmentGuids is null or empty then this returns all enSourceType.Dev2Server sources.
defaultEnvironment
public LookupEnvironments ( IEnvironmentModel defaultEnvironment, IList environmentGuids = null ) : IList
defaultEnvironment IEnvironmentModel The default environment.
environmentGuids IList The environment guids to be queried; may be null.
return IList

ReadSession() public method

public ReadSession ( ) : IList
return IList

Remove() public method

public Remove ( System.Guid id ) : void
id System.Guid
return void

Remove() public method

public Remove ( ICollection environments ) : void
environments ICollection
return void

Remove() public method

public Remove ( IEnvironmentModel environment ) : void
environment IEnvironmentModel
return void

RemoveInternal() protected method

protected RemoveInternal ( IEnvironmentModel environment ) : bool
environment IEnvironmentModel
return bool

Save() public method

public Save ( IEnvironmentModel environment ) : string
environment IEnvironmentModel
return string

Save() public method

public Save ( ICollection environments ) : void
environments ICollection
return void

WriteSession() public method

public WriteSession ( IEnumerable environmentGuids ) : void
environmentGuids IEnumerable
return void

Property Details

Environments protected_oe property

protected List Environments
return List