C# Class CodeOwls.PowerShell.Provider.Provider

Inheritance: System.Management.Automation.Provider.NavigationCmdletProvider, IPropertyCmdletProvider, ICmdletProviderSupportsHelp
Show file Open project: beefarino/TxF Class Usage Examples

Private Properties

Property Type Description
ClearItem void
CopyItem void
DoCopyItem IPathNode
DoRemoveItem void
EnsurePathIsRooted string
ForceOrShouldContinue bool
ForceOrShouldContinue bool
GetChildItems void
GetChildNames void
GetCmdletHelpKeysForNodeFactory List
GetContentReader IContentReader
GetContentWriter IContentWriter
GetCopyItem ICopyItem
GetDriveForPath CodeOwls.PowerShell.Provider.Drive
GetExistingHelpDocumentFilename string
GetFirstNodeFactoryFromPath INodeFactory
GetHelpMaml string
GetHelpPathForCultureUI string
GetItem void
GetNodeFactoryFromPath IEnumerable
GetNodeFactoryFromPath IEnumerable
GetNodeFactoryFromPathOrParent IEnumerable
GetNodeFactoryFromPathOrParent IEnumerable
GetProperty void
InvokeDefaultAction void
IsRootPath bool
MoveItem void
NewItem void
NormalizeWhacks string
RemoveItem void
ResolvePath IEnumerable
SetItem void
SetProperty void
WriteChildItem void
WriteCmdletNotSupportedAtNodeError void
WriteGeneralCmdletError void
WritePathNode void
WritePathNode void

Public Methods

Method Description
ClearContent ( string path ) : void
ClearContentDynamicParameters ( string path ) : object
ClearProperty ( string path, Collection propertyToClear ) : void
ClearPropertyDynamicParameters ( string path, Collection propertyToClear ) : object
GetContentReader ( string path ) : IContentReader
GetContentReaderDynamicParameters ( string path ) : object
GetContentWriter ( string path ) : IContentWriter
GetContentWriterDynamicParameters ( string path ) : object
GetHelpMaml ( string helpItemName, string path ) : string
GetProperty ( string path, Collection providerSpecificPickList ) : void
GetPropertyDynamicParameters ( string path, Collection providerSpecificPickList ) : object
SetProperty ( string path, System.Management.Automation.PSObject propertyValue ) : void
SetPropertyDynamicParameters ( string path, System.Management.Automation.PSObject propertyValue ) : object

Protected Methods

Method Description
ClearItem ( string path ) : void
ClearItemDynamicParameters ( string path ) : object
CopyItem ( string path, string copyPath, bool recurse ) : void
CopyItemDynamicParameters ( string path, string destination, bool recurse ) : object
CreateContext ( string path ) : IContext
CreateContext ( string path, bool recurse ) : IContext
CreateContext ( string path, bool recurse, bool resolveFinalNodeFilterItems ) : IContext
GetChildItems ( string path, bool recurse ) : void
GetChildItemsDynamicParameters ( string path, bool recurse ) : object
GetChildName ( string path ) : string
GetChildNames ( string path, ReturnContainers returnContainers ) : void
GetChildNamesDynamicParameters ( string path ) : object
GetItem ( string path ) : void
GetParentPath ( string path, string root ) : string
GetRootPath ( ) : string
HasChildItems ( string path ) : bool
InvokeDefaultAction ( string path ) : void
InvokeDefaultActionDynamicParameters ( string path ) : object
IsItemContainer ( string path ) : bool
IsValidPath ( string path ) : bool
ItemExists ( string path ) : bool
LogVerbose ( string format ) : void
MakePath ( string parent, string child ) : string
MoveItem ( string path, string destination ) : void
MoveItemDynamicParameters ( string path, string destination ) : object
NewItem ( string path, string itemTypeName, object newItemValue ) : void
NewItemDynamicParameters ( string path, string itemTypeName, object newItemValue ) : object
NormalizeRelativePath ( string path, string basePath ) : string
RemoveItem ( string path, bool recurse ) : void
RemoveItemDynamicParameters ( string path, bool recurse ) : object
RenameItem ( string path, string newName ) : void
RenameItemDynamicParameters ( string path, string newName ) : object
SetItem ( string path, object value ) : void
SetItemDynamicParameters ( string path, object value ) : object

Private Methods

Method Description
ClearItem ( string path, INodeFactory factory ) : void
CopyItem ( string path, INodeFactory sourceNode, string copyPath, bool recurse ) : void
DoCopyItem ( string path, string copyPath, bool recurse, ICopyItem copyItem ) : IPathNode
DoRemoveItem ( string path, bool recurse, IRemoveItem remove ) : void
EnsurePathIsRooted ( string path ) : string
ForceOrShouldContinue ( INodeFactory factory, string fullPath, string op ) : bool
ForceOrShouldContinue ( string itemName, string fullPath, string op ) : bool
GetChildItems ( string path, INodeFactory nodeFactory, bool recurse ) : void
GetChildNames ( string path, INodeFactory nodeFactory, ReturnContainers returnContainers ) : void
GetCmdletHelpKeysForNodeFactory ( INodeFactory nodeFactory ) : List
GetContentReader ( string path, INodeFactory nodeFactory ) : IContentReader
GetContentWriter ( string path, INodeFactory nodeFactory ) : IContentWriter
GetCopyItem ( INodeFactory sourceNode ) : ICopyItem
GetDriveForPath ( string path ) : CodeOwls.PowerShell.Provider.Drive
GetExistingHelpDocumentFilename ( ) : string
GetFirstNodeFactoryFromPath ( string path ) : INodeFactory
GetHelpMaml ( XmlDocument document, string key, string verb, string noun ) : string
GetHelpPathForCultureUI ( string cultureName, string moduleLocation ) : string
GetItem ( string path, INodeFactory factory ) : void
GetNodeFactoryFromPath ( string path ) : IEnumerable
GetNodeFactoryFromPath ( string path, bool resolveFinalFilter ) : IEnumerable
GetNodeFactoryFromPathOrParent ( string path ) : IEnumerable
GetNodeFactoryFromPathOrParent ( string path, bool &isParentOfPath ) : IEnumerable
GetProperty ( string path, INodeFactory factory, Collection providerSpecificPickList ) : void
InvokeDefaultAction ( string path, INodeFactory factory ) : void
IsRootPath ( string path ) : bool
MoveItem ( string path, INodeFactory sourceNode, string destination ) : void
NewItem ( string path, bool isParentPathNodeFactory, INodeFactory factory, string itemTypeName, object newItemValue ) : void
NormalizeWhacks ( string path ) : string
RemoveItem ( string path, INodeFactory factory, bool recurse ) : void
ResolvePath ( string path ) : IEnumerable
SetItem ( string path, INodeFactory factory, object value ) : void
SetProperty ( string path, INodeFactory factory, System.Management.Automation.PSObject propertyValue ) : void
WriteChildItem ( string path, bool recurse, IEnumerable children ) : void
WriteCmdletNotSupportedAtNodeError ( string path, string cmdlet, string errorId ) : void
WriteGeneralCmdletError ( Exception exception, string errorId, string path ) : void
WritePathNode ( string nodeContainerPath, INodeFactory factory ) : void
WritePathNode ( string nodeContainerPath, IPathNode node ) : void

Method Details

ClearContent() public method

public ClearContent ( string path ) : void
path string
return void

ClearContentDynamicParameters() public method

public ClearContentDynamicParameters ( string path ) : object
path string
return object

ClearItem() protected method

protected ClearItem ( string path ) : void
path string
return void

ClearItemDynamicParameters() protected method

protected ClearItemDynamicParameters ( string path ) : object
path string
return object

ClearProperty() public method

public ClearProperty ( string path, Collection propertyToClear ) : void
path string
propertyToClear Collection
return void

ClearPropertyDynamicParameters() public method

public ClearPropertyDynamicParameters ( string path, Collection propertyToClear ) : object
path string
propertyToClear Collection
return object

CopyItem() protected method

protected CopyItem ( string path, string copyPath, bool recurse ) : void
path string
copyPath string
recurse bool
return void

CopyItemDynamicParameters() protected method

protected CopyItemDynamicParameters ( string path, string destination, bool recurse ) : object
path string
destination string
recurse bool
return object

CreateContext() protected method

protected CreateContext ( string path ) : IContext
path string
return IContext

CreateContext() protected method

protected CreateContext ( string path, bool recurse ) : IContext
path string
recurse bool
return IContext

CreateContext() protected method

protected CreateContext ( string path, bool recurse, bool resolveFinalNodeFilterItems ) : IContext
path string
recurse bool
resolveFinalNodeFilterItems bool
return IContext

GetChildItems() protected method

protected GetChildItems ( string path, bool recurse ) : void
path string
recurse bool
return void

GetChildItemsDynamicParameters() protected method

protected GetChildItemsDynamicParameters ( string path, bool recurse ) : object
path string
recurse bool
return object

GetChildName() protected method

protected GetChildName ( string path ) : string
path string
return string

GetChildNames() protected method

protected GetChildNames ( string path, ReturnContainers returnContainers ) : void
path string
returnContainers ReturnContainers
return void

GetChildNamesDynamicParameters() protected method

protected GetChildNamesDynamicParameters ( string path ) : object
path string
return object

GetContentReader() public method

public GetContentReader ( string path ) : IContentReader
path string
return IContentReader

GetContentReaderDynamicParameters() public method

public GetContentReaderDynamicParameters ( string path ) : object
path string
return object

GetContentWriter() public method

public GetContentWriter ( string path ) : IContentWriter
path string
return IContentWriter

GetContentWriterDynamicParameters() public method

public GetContentWriterDynamicParameters ( string path ) : object
path string
return object

GetHelpMaml() public method

public GetHelpMaml ( string helpItemName, string path ) : string
helpItemName string
path string
return string

GetItem() protected method

protected GetItem ( string path ) : void
path string
return void

GetParentPath() protected method

protected GetParentPath ( string path, string root ) : string
path string
root string
return string

GetProperty() public method

public GetProperty ( string path, Collection providerSpecificPickList ) : void
path string
providerSpecificPickList Collection
return void

GetPropertyDynamicParameters() public method

public GetPropertyDynamicParameters ( string path, Collection providerSpecificPickList ) : object
path string
providerSpecificPickList Collection
return object

GetRootPath() protected method

protected GetRootPath ( ) : string
return string

HasChildItems() protected method

protected HasChildItems ( string path ) : bool
path string
return bool

InvokeDefaultAction() protected method

protected InvokeDefaultAction ( string path ) : void
path string
return void

InvokeDefaultActionDynamicParameters() protected method

protected InvokeDefaultActionDynamicParameters ( string path ) : object
path string
return object

IsItemContainer() protected method

protected IsItemContainer ( string path ) : bool
path string
return bool

IsValidPath() protected method

protected IsValidPath ( string path ) : bool
path string
return bool

ItemExists() protected method

protected ItemExists ( string path ) : bool
path string
return bool

LogVerbose() protected method

protected LogVerbose ( string format ) : void
format string
return void

MakePath() protected method

protected MakePath ( string parent, string child ) : string
parent string
child string
return string

MoveItem() protected method

protected MoveItem ( string path, string destination ) : void
path string
destination string
return void

MoveItemDynamicParameters() protected method

protected MoveItemDynamicParameters ( string path, string destination ) : object
path string
destination string
return object

NewItem() protected method

protected NewItem ( string path, string itemTypeName, object newItemValue ) : void
path string
itemTypeName string
newItemValue object
return void

NewItemDynamicParameters() protected method

protected NewItemDynamicParameters ( string path, string itemTypeName, object newItemValue ) : object
path string
itemTypeName string
newItemValue object
return object

NormalizeRelativePath() protected method

protected NormalizeRelativePath ( string path, string basePath ) : string
path string
basePath string
return string

RemoveItem() protected method

protected RemoveItem ( string path, bool recurse ) : void
path string
recurse bool
return void

RemoveItemDynamicParameters() protected method

protected RemoveItemDynamicParameters ( string path, bool recurse ) : object
path string
recurse bool
return object

RenameItem() protected method

protected RenameItem ( string path, string newName ) : void
path string
newName string
return void

RenameItemDynamicParameters() protected method

protected RenameItemDynamicParameters ( string path, string newName ) : object
path string
newName string
return object

SetItem() protected method

protected SetItem ( string path, object value ) : void
path string
value object
return void

SetItemDynamicParameters() protected method

protected SetItemDynamicParameters ( string path, object value ) : object
path string
value object
return object

SetProperty() public method

public SetProperty ( string path, System.Management.Automation.PSObject propertyValue ) : void
path string
propertyValue System.Management.Automation.PSObject
return void

SetPropertyDynamicParameters() public method

public SetPropertyDynamicParameters ( string path, System.Management.Automation.PSObject propertyValue ) : object
path string
propertyValue System.Management.Automation.PSObject
return object