C# Class Dev2.AppResources.Repositories.StudioResourceRepository

Inheritance: IStudioResourceRepository
Exibir arquivo Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Properties

Property Type Description
GetCurrentEnvironment Func
GetEnvironmentRepository Func
GetExplorerProxy IClientExplorerResourceRepository>.Func
GetVersionProxy IVersionRepository>.Func

Public Methods

Method Description
AddItem ( IExplorerItemModel item ) : void
AddResouceItem ( IContextualResourceModel resourceModel ) : void
AddServerNode ( IExplorerItemModel explorerItem ) : void
Connect ( System.Guid environmentId ) : void
DeleteFolder ( IExplorerItemModel item ) : void
DeleteItem ( System.Guid environmentId, System.Guid resourceId ) : void
DeleteItem ( IExplorerItemModel item ) : void
DeleteVersion ( IVersionInfo versionInfo, System.Guid environmentId ) : void
DialogFilter ( bool>.Func searchCriteria ) : ObservableCollection
Disconnect ( System.Guid environmentId ) : void
Filter ( bool>.Func searchCriteria ) : ObservableCollection
FindItem ( bool>.Func searchCriteria ) : IExplorerItemModel
FindItemById ( System.Guid id ) : IExplorerItemModel
FindItemByIdAndEnvironment ( System.Guid id, System.Guid environmentId ) : IExplorerItemModel
GetEnvironmentModel ( IEnvironmentModel model, IExplorerItem item, Guid environmentId ) : bool
GetServerVersion ( Guid environmentId ) : string
GetVersion ( IVersionInfo versionInfo, Guid environmentId ) : StringBuilder
HideVersionHistory ( Guid environmentId, Guid resourceId ) : void
ItemAddedMessageHandler ( IExplorerItem item ) : void
Load ( Guid environmentId, IAsyncWorker asyncWorker ) : void
Load ( Guid environmentId, IAsyncWorker asyncWorker, Action onCompletion ) : void
MoveFolder ( IExplorerItemModel item, string newName ) : void
MoveItem ( IExplorerItemModel model, string newPath ) : void
PerformUpdateOnDispatcher ( System action ) : void
RefreshVersionHistory ( Guid environmentId, Guid resourceId ) : void
RemoveEnvironment ( Guid environmentId ) : void
RenameFolder ( IExplorerItemModel item, string newName ) : void
RenameItem ( IExplorerItemModel item, string newName ) : void
RollbackTo ( IVersionInfo versionInfo, Guid environmentId ) : void
ShowVersionHistory ( Guid environmentId, Guid resourceId ) : void
UpdateItem ( Guid id, Action update, Guid environmentId ) : void
UpdateRootAndFoldersPermissions ( Permissions modifiedPermissions, Guid environmentGuid, bool updateRoot = true ) : void

Private Methods

Method Description
AddChildItem ( IExplorerItemModel parent, IExplorerItemModel explorerItem ) : void
AttachVersionHistoryToParent ( System.Guid environmentId, System.Guid resourceId, IList versions ) : void
ContainsChild ( bool>.Func filter, IExplorerItemModel root ) : bool
DialogFilterRec ( bool>.Func filter, IExplorerItemModel root, bool includeFolders = false ) : IExplorerItemModel
ExplorerItemModelSetup ( IExplorerItemModel explorerItemModel, System.Guid enviromentId ) : void
FilterRec ( bool>.Func filter, IExplorerItemModel root ) : IExplorerItemModel
GenerateVersionResourceId ( System.Guid resourceId, System.Guid environmentId, string versionNumber ) : System.Guid
LoadEnvironment ( Guid environmentId ) : IExplorerItemModel
LoadEnvironmentTree ( Guid environmentId, Action onCompletion, IEnvironmentModel environmentModel ) : void
LoadItemsToTree ( Guid environmentId, IExplorerItemModel explorerItemModel ) : void
LoadItemsToTree ( Guid environmentId, IExplorerItemModel explorerItemModel, int indexToReplace ) : void
MapData ( IExplorerItemModel item ) : IExplorerItem
MapData ( IExplorerItem item, IEnvironmentRepository environmentRepository, Guid environmentId ) : IExplorerItemModel
MoveResource ( IExplorerItemModel model, string newPath ) : void
StudioResourceRepository ( ) : System
StudioResourceRepository ( ExplorerItemModel explorerItem, DispatcherPriority>.Action invoke ) : System
StudioResourceRepository ( IExplorerItem explorerItem, Guid environmentId, DispatcherPriority>.Action invoke ) : System
UpdateCategory ( IExplorerItemModel model, string newPath ) : void
UpdateExplorerItemModelOnUiThread ( IExplorerItemModel explorerItemModel, int index ) : void

Method Details

AddItem() public method

public AddItem ( IExplorerItemModel item ) : void
item IExplorerItemModel
return void

AddResouceItem() public method

public AddResouceItem ( IContextualResourceModel resourceModel ) : void
resourceModel IContextualResourceModel
return void

AddServerNode() public method

public AddServerNode ( IExplorerItemModel explorerItem ) : void
explorerItem IExplorerItemModel
return void

Connect() public method

public Connect ( System.Guid environmentId ) : void
environmentId System.Guid
return void

DeleteFolder() public method

public DeleteFolder ( IExplorerItemModel item ) : void
item IExplorerItemModel
return void

DeleteItem() public method

public DeleteItem ( System.Guid environmentId, System.Guid resourceId ) : void
environmentId System.Guid
resourceId System.Guid
return void

DeleteItem() public method

public DeleteItem ( IExplorerItemModel item ) : void
item IExplorerItemModel
return void

DeleteVersion() public method

public DeleteVersion ( IVersionInfo versionInfo, System.Guid environmentId ) : void
versionInfo IVersionInfo
environmentId System.Guid
return void

DialogFilter() public method

public DialogFilter ( bool>.Func searchCriteria ) : ObservableCollection
searchCriteria bool>.Func
return ObservableCollection

Disconnect() public method

public Disconnect ( System.Guid environmentId ) : void
environmentId System.Guid
return void

Filter() public method

public Filter ( bool>.Func searchCriteria ) : ObservableCollection
searchCriteria bool>.Func
return ObservableCollection

FindItem() public method

public FindItem ( bool>.Func searchCriteria ) : IExplorerItemModel
searchCriteria bool>.Func
return IExplorerItemModel

FindItemById() public method

public FindItemById ( System.Guid id ) : IExplorerItemModel
id System.Guid
return IExplorerItemModel

FindItemByIdAndEnvironment() public method

public FindItemByIdAndEnvironment ( System.Guid id, System.Guid environmentId ) : IExplorerItemModel
id System.Guid
environmentId System.Guid
return IExplorerItemModel

GetEnvironmentModel() public static method

public static GetEnvironmentModel ( IEnvironmentModel model, IExplorerItem item, Guid environmentId ) : bool
model IEnvironmentModel
item IExplorerItem
environmentId Guid
return bool

GetServerVersion() public method

public GetServerVersion ( Guid environmentId ) : string
environmentId Guid
return string

GetVersion() public method

public GetVersion ( IVersionInfo versionInfo, Guid environmentId ) : StringBuilder
versionInfo IVersionInfo
environmentId Guid
return StringBuilder

HideVersionHistory() public method

public HideVersionHistory ( Guid environmentId, Guid resourceId ) : void
environmentId Guid
resourceId Guid
return void

ItemAddedMessageHandler() public method

public ItemAddedMessageHandler ( IExplorerItem item ) : void
item IExplorerItem
return void

Load() public method

public Load ( Guid environmentId, IAsyncWorker asyncWorker ) : void
environmentId Guid
asyncWorker IAsyncWorker
return void

Load() public method

public Load ( Guid environmentId, IAsyncWorker asyncWorker, Action onCompletion ) : void
environmentId Guid
asyncWorker IAsyncWorker
onCompletion Action
return void

MoveFolder() public method

public MoveFolder ( IExplorerItemModel item, string newName ) : void
item IExplorerItemModel
newName string
return void

MoveItem() public method

public MoveItem ( IExplorerItemModel model, string newPath ) : void
model IExplorerItemModel
newPath string
return void

PerformUpdateOnDispatcher() public method

public PerformUpdateOnDispatcher ( System action ) : void
action System
return void

RefreshVersionHistory() public method

public RefreshVersionHistory ( Guid environmentId, Guid resourceId ) : void
environmentId Guid
resourceId Guid
return void

RemoveEnvironment() public method

public RemoveEnvironment ( Guid environmentId ) : void
environmentId Guid
return void

RenameFolder() public method

public RenameFolder ( IExplorerItemModel item, string newName ) : void
item IExplorerItemModel
newName string
return void

RenameItem() public method

public RenameItem ( IExplorerItemModel item, string newName ) : void
item IExplorerItemModel
newName string
return void

RollbackTo() public method

public RollbackTo ( IVersionInfo versionInfo, Guid environmentId ) : void
versionInfo IVersionInfo
environmentId Guid
return void

ShowVersionHistory() public method

public ShowVersionHistory ( Guid environmentId, Guid resourceId ) : void
environmentId Guid
resourceId Guid
return void

UpdateItem() public method

public UpdateItem ( Guid id, Action update, Guid environmentId ) : void
id Guid
update Action
environmentId Guid
return void

UpdateRootAndFoldersPermissions() public method

public UpdateRootAndFoldersPermissions ( Permissions modifiedPermissions, Guid environmentGuid, bool updateRoot = true ) : void
modifiedPermissions Permissions
environmentGuid Guid
updateRoot bool
return void

Property Details

GetCurrentEnvironment public_oe property

public Func GetCurrentEnvironment
return Func

GetEnvironmentRepository public_oe property

public Func GetEnvironmentRepository
return Func

GetExplorerProxy public_oe property

public Func GetExplorerProxy
return IClientExplorerResourceRepository>.Func

GetVersionProxy public_oe property

public Func GetVersionProxy
return IVersionRepository>.Func