C# Class Dev2.Workspaces.WorkspaceRepository

A workspace repository.
Inheritance: IWorkspaceRepository
Afficher le fichier Open project: Warewolf-ESB/Warewolf Class Usage Examples

Méthodes publiques

Свойство Type Description
ServerWorkspaceID System.Guid
ServerWorkspacePath string

Méthodes publiques

Méthode Description
Delete ( IWorkspace workspace ) : void

Deletes the specified workspace from storage.

Get ( System.Guid workspaceID, bool force = false, bool loadResources = true ) : IWorkspace

Gets the IWorkspace with the specified ID from storage if it does not exist in the repository.

GetLatest ( IWorkspace workspace, IList servicesToIgnore ) : void

Overwrites this workspace with the server versions except for those provided.

GetWorkspaceGuids ( ) : ICollection
GetWorkspaceID ( System.Security.Principal.WindowsIdentity identity ) : System.Guid
RefreshWorkspaces ( ) : void

Refreshes all workspaces from storage.

Save ( IWorkspace workspace ) : void

Saves the specified workspace to storage.

WorkspaceRepository ( ) : System
WorkspaceRepository ( IResourceCatalog resourceCatalog ) : System

Private Methods

Méthode Description
Delete ( System.Guid workspaceID ) : void
GetFileName ( System.Guid workspaceID ) : string
GetUserMapFileName ( ) : string
Read ( System.Guid workdspaceID ) : IWorkspace
ReadUserMap ( ) : Guid>.ConcurrentDictionary
Write ( IWorkspace workspace ) : void
WriteUserMap ( Guid>.ConcurrentDictionary userMap ) : void

Method Details

Delete() public méthode

Deletes the specified workspace from storage.
public Delete ( IWorkspace workspace ) : void
workspace IWorkspace The workspace to be deleted.
Résultat void

Get() public méthode

Gets the IWorkspace with the specified ID from storage if it does not exist in the repository.
public Get ( System.Guid workspaceID, bool force = false, bool loadResources = true ) : IWorkspace
workspaceID System.Guid The workdspace ID to be queried.
force bool true if the workspace should be re-read even it is found; false otherwise.
loadResources bool true if resources should be loaded; false otherwise.
Résultat IWorkspace

GetLatest() public méthode

Overwrites this workspace with the server versions except for those provided.
public GetLatest ( IWorkspace workspace, IList servicesToIgnore ) : void
workspace IWorkspace The workspace to be queried.
servicesToIgnore IList The services being to be ignored.
Résultat void

GetWorkspaceGuids() public méthode

public GetWorkspaceGuids ( ) : ICollection
Résultat ICollection

GetWorkspaceID() public méthode

public GetWorkspaceID ( System.Security.Principal.WindowsIdentity identity ) : System.Guid
identity System.Security.Principal.WindowsIdentity
Résultat System.Guid

RefreshWorkspaces() public méthode

Refreshes all workspaces from storage.
public RefreshWorkspaces ( ) : void
Résultat void

Save() public méthode

Saves the specified workspace to storage.
public Save ( IWorkspace workspace ) : void
workspace IWorkspace The workspace to be saved.
Résultat void

WorkspaceRepository() public méthode

public WorkspaceRepository ( ) : System
Résultat System

WorkspaceRepository() public méthode

public WorkspaceRepository ( IResourceCatalog resourceCatalog ) : System
resourceCatalog IResourceCatalog
Résultat System

Property Details

ServerWorkspaceID public_oe static_oe property

The server workspace ID.
public static Guid,System ServerWorkspaceID
Résultat System.Guid

ServerWorkspacePath public_oe static_oe property

public static string ServerWorkspacePath
Résultat string