C# Class Dev2.Runtime.Hosting.ServerVersionRepository

Inheritance: IServerVersionRepository
Mostrar archivo Open project: Warewolf-ESB/Warewolf Class Usage Examples

Protected Properties

Property Type Description
LockObject object

Public Methods

Method Description
DeleteVersion ( System.Guid resourceId, string versionNumber ) : IList
GetLatestVersionNumber ( System.Guid resourceId ) : IExplorerItem
GetVersion ( IVersionInfo version ) : StringBuilder
GetVersions ( System.Guid resourceId ) : IList
MoveVersions ( System.Guid resourceId, string newPath ) : void
RollbackTo ( System.Guid resourceId, string versionNumber ) : IRollbackResult
ServerVersionRepository ( IVersionStrategy versionStrategy, IResourceCatalog catalogue, IDirectory directory, string rootPath, IFile file ) : System
StoreVersion ( IResource resource, string userName, string reason, System.Guid workSpaceId ) : void

Private Methods

Method Description
CreateNameFromPath ( string path ) : string
CreateVersionFromFilePath ( string path, IResource resource ) : IExplorerItem
CreateVersionInfoFromFilePath ( string path, System.Guid resourceId ) : IVersionInfo
GetDateString ( System.DateTime dateTimeStamp ) : string
GetDirectoryFromResource ( IResource resource ) : string
GetFolderFromResource ( IResource resource ) : string
GetVersionFolderFromResource ( IResource resource ) : string
StoreAndDeleteCurrentIfRenamed ( IResource res, Resource oldResource ) : void
UpdateCategoryIfRenamed ( IResource res, Resource oldResource, System.Xml.Linq.XElement xml ) : void
UpdateVersionInfoIfNotExists ( System.Guid resourceId, System.Xml.Linq.XElement xml, IResource res ) : void

Method Details

DeleteVersion() public method

public DeleteVersion ( System.Guid resourceId, string versionNumber ) : IList
resourceId System.Guid
versionNumber string
return IList

GetLatestVersionNumber() public method

public GetLatestVersionNumber ( System.Guid resourceId ) : IExplorerItem
resourceId System.Guid
return IExplorerItem

GetVersion() public method

public GetVersion ( IVersionInfo version ) : StringBuilder
version IVersionInfo
return StringBuilder

GetVersions() public method

public GetVersions ( System.Guid resourceId ) : IList
resourceId System.Guid
return IList

MoveVersions() public method

public MoveVersions ( System.Guid resourceId, string newPath ) : void
resourceId System.Guid
newPath string
return void

RollbackTo() public method

public RollbackTo ( System.Guid resourceId, string versionNumber ) : IRollbackResult
resourceId System.Guid
versionNumber string
return IRollbackResult

ServerVersionRepository() public method

public ServerVersionRepository ( IVersionStrategy versionStrategy, IResourceCatalog catalogue, IDirectory directory, string rootPath, IFile file ) : System
versionStrategy IVersionStrategy
catalogue IResourceCatalog
directory IDirectory
rootPath string
file IFile
return System

StoreVersion() public method

public StoreVersion ( IResource resource, string userName, string reason, System.Guid workSpaceId ) : void
resource IResource
userName string
reason string
workSpaceId System.Guid
return void

Property Details

LockObject protected_oe static_oe property

protected static object LockObject
return object