C# Class VersionOne.ServerConnector.VersionOneProcessor

Inheritance: IVersionOneProcessor
显示文件 Open project: versionone/VersionOne.Integration.Bugzilla Class Usage Examples

Private Properties

Property Type Description
AddLinkToAsset void
ChooseOwners IList
Connect void
ConvertFromCamelCase string
GetAssetLinks List
GetCustomFields IEnumerable
GetEntityFactory EntityFactory
GetFieldList AssetList
GetMessageFromException string
GetOwnerOids IEnumerable
GetProjectById Asset
GetProjectByName Asset
GetRootProject Asset
GetSourceByName ValueId

Public Methods

Method Description
AddLinkToEntity ( BaseEntity entity, Link link ) : void
AddListProperty ( string fieldName, string typeToken ) : void
AddOptionalProperty ( string attr, string prefix ) : void
AddProperty ( string attr, string prefix, bool isList ) : void
AttributeExists ( string typeName, string attributeName ) : bool
CloseWorkitem ( PrimaryWorkitem workitem ) : void
CreateBuildRun ( BuildProject buildProject, string name, DateTime date, double elapsed ) : BuildRun
CreateChangeSet ( string name, string reference, string description ) : ChangeSet
CreateProject ( string name ) : Scope
CreateWorkitem ( string assetType, string title, string description, string projectToken, string externalFieldName, string externalId, string externalSystemName, string priorityId, string owners ) : Workitem
CreateWorkitemPriority ( string priorityName ) : ValueId
CreateWorkitemStatus ( string statusName ) : ValueId
GetAvailableListValues ( string typeToken, string fieldName ) : PropertyValues
GetBuildProjects ( IFilter filter ) : IList
GetBuildRunStatuses ( ) : IList
GetBuildRuns ( IFilter filter ) : IList
GetChangeSets ( IFilter filter ) : IList
GetCustomTextFields ( string typeName ) : IList
GetFeatureGroups ( IFilter filter, IFilter childrenFilter ) : IList
GetLoggedInMember ( ) : Member
GetMembers ( IFilter filter ) : ICollection
GetPrimaryWorkitems ( IFilter filter, SortBy sortBy = null ) : IList
GetProjectTokenByName ( string projectName ) : string
GetRootProjectToken ( ) : string
GetSummaryLink ( Workitem workitem ) : string
GetWorkitemLink ( Workitem workitem ) : string
GetWorkitemLinks ( Workitem workitem, IFilter filter ) : List
GetWorkitemPriorities ( ) : IList
GetWorkitemStatuses ( ) : IList
GetWorkitems ( string type, IFilter filter, SortBy sortBy = null ) : IList
LogConnectionConfiguration ( ) : void
LogConnectionInformation ( ) : void
LookupProjects ( string term ) : ICollection
ProjectExists ( string projectId ) : bool
Save ( BaseEntity entity ) : void
SaveEntities ( ICollection entities ) : void
UpdateProject ( string projectId, Link link ) : void
ValidateConnection ( ) : bool
VersionOneProcessor ( VersionOneSettings settings ) : System
VersionOneProcessor ( VersionOneSettings settings, ILogger logger ) : System
VersionOneProcessor ( XmlElement config ) : System
VersionOneProcessor ( XmlElement config, ILogger logger ) : System

Protected Methods

Method Description
Connect ( IServices testServices, IQueryBuilder testQueryBuilder ) : void

Private Methods

Method Description
AddLinkToAsset ( Asset asset, Link link ) : void
ChooseOwners ( Asset asset, IEnumerable allMembers ) : IList
Connect ( ) : void
ConvertFromCamelCase ( string camelCasedString ) : string
GetAssetLinks ( Oid assetOid, IFilter filter ) : List
GetCustomFields ( string assetTypeName, FieldType fieldType ) : IEnumerable
GetEntityFactory ( ) : EntityFactory
GetFieldList ( IFilterTerm filter, IEnumerable selection ) : AssetList
GetMessageFromException ( V1Exception exception ) : string
GetOwnerOids ( string ownerNames ) : IEnumerable

Attempts to match owners of the workitem in the external system to users in VersionOne.

GetProjectById ( string projectId ) : Asset
GetProjectByName ( string projectName ) : Asset
GetRootProject ( ) : Asset
GetSourceByName ( string externalSystemName ) : ValueId

Method Details

AddLinkToEntity() public method

public AddLinkToEntity ( BaseEntity entity, Link link ) : void
entity BaseEntity
link Link
return void

AddListProperty() public method

public AddListProperty ( string fieldName, string typeToken ) : void
fieldName string
typeToken string
return void

AddOptionalProperty() public method

public AddOptionalProperty ( string attr, string prefix ) : void
attr string
prefix string
return void

AddProperty() public method

public AddProperty ( string attr, string prefix, bool isList ) : void
attr string
prefix string
isList bool
return void

AttributeExists() public method

public AttributeExists ( string typeName, string attributeName ) : bool
typeName string
attributeName string
return bool

CloseWorkitem() public method

public CloseWorkitem ( PrimaryWorkitem workitem ) : void
workitem PrimaryWorkitem
return void

Connect() protected method

protected Connect ( IServices testServices, IQueryBuilder testQueryBuilder ) : void
testServices IServices
testQueryBuilder IQueryBuilder
return void

CreateBuildRun() public method

public CreateBuildRun ( BuildProject buildProject, string name, DateTime date, double elapsed ) : BuildRun
buildProject BuildProject
name string
date DateTime
elapsed double
return BuildRun

CreateChangeSet() public method

public CreateChangeSet ( string name, string reference, string description ) : ChangeSet
name string
reference string
description string
return ChangeSet

CreateProject() public method

public CreateProject ( string name ) : Scope
name string
return Scope

CreateWorkitem() public method

public CreateWorkitem ( string assetType, string title, string description, string projectToken, string externalFieldName, string externalId, string externalSystemName, string priorityId, string owners ) : Workitem
assetType string
title string
description string
projectToken string
externalFieldName string
externalId string
externalSystemName string
priorityId string
owners string
return Workitem

CreateWorkitemPriority() public method

public CreateWorkitemPriority ( string priorityName ) : ValueId
priorityName string
return ValueId

CreateWorkitemStatus() public method

public CreateWorkitemStatus ( string statusName ) : ValueId
statusName string
return ValueId

GetAvailableListValues() public method

public GetAvailableListValues ( string typeToken, string fieldName ) : PropertyValues
typeToken string
fieldName string
return PropertyValues

GetBuildProjects() public method

public GetBuildProjects ( IFilter filter ) : IList
filter IFilter
return IList

GetBuildRunStatuses() public method

public GetBuildRunStatuses ( ) : IList
return IList

GetBuildRuns() public method

public GetBuildRuns ( IFilter filter ) : IList
filter IFilter
return IList

GetChangeSets() public method

public GetChangeSets ( IFilter filter ) : IList
filter IFilter
return IList

GetCustomTextFields() public method

public GetCustomTextFields ( string typeName ) : IList
typeName string
return IList

GetFeatureGroups() public method

public GetFeatureGroups ( IFilter filter, IFilter childrenFilter ) : IList
filter IFilter
childrenFilter IFilter
return IList

GetLoggedInMember() public method

public GetLoggedInMember ( ) : Member
return Member

GetMembers() public method

public GetMembers ( IFilter filter ) : ICollection
filter IFilter
return ICollection

GetPrimaryWorkitems() public method

public GetPrimaryWorkitems ( IFilter filter, SortBy sortBy = null ) : IList
filter IFilter
sortBy SortBy
return IList

GetProjectTokenByName() public method

public GetProjectTokenByName ( string projectName ) : string
projectName string
return string

GetRootProjectToken() public method

public GetRootProjectToken ( ) : string
return string

GetSummaryLink() public method

public GetSummaryLink ( Workitem workitem ) : string
workitem Workitem
return string

GetWorkitemLink() public method

public GetWorkitemLink ( Workitem workitem ) : string
workitem Workitem
return string

GetWorkitemLinks() public method

public GetWorkitemLinks ( Workitem workitem, IFilter filter ) : List
workitem Workitem
filter IFilter
return List

GetWorkitemPriorities() public method

public GetWorkitemPriorities ( ) : IList
return IList

GetWorkitemStatuses() public method

public GetWorkitemStatuses ( ) : IList
return IList

GetWorkitems() public method

public GetWorkitems ( string type, IFilter filter, SortBy sortBy = null ) : IList
type string
filter IFilter
sortBy SortBy
return IList

LogConnectionConfiguration() public method

public LogConnectionConfiguration ( ) : void
return void

LogConnectionInformation() public method

public LogConnectionInformation ( ) : void
return void

LookupProjects() public method

public LookupProjects ( string term ) : ICollection
term string
return ICollection

ProjectExists() public method

public ProjectExists ( string projectId ) : bool
projectId string
return bool

Save() public method

public Save ( BaseEntity entity ) : void
entity BaseEntity
return void

SaveEntities() public method

public SaveEntities ( ICollection entities ) : void
entities ICollection
return void

UpdateProject() public method

public UpdateProject ( string projectId, Link link ) : void
projectId string
link Link
return void

ValidateConnection() public method

public ValidateConnection ( ) : bool
return bool

VersionOneProcessor() public method

public VersionOneProcessor ( VersionOneSettings settings ) : System
settings VersionOneSettings
return System

VersionOneProcessor() public method

public VersionOneProcessor ( VersionOneSettings settings, ILogger logger ) : System
settings VersionOneSettings
logger ILogger
return System

VersionOneProcessor() public method

public VersionOneProcessor ( XmlElement config ) : System
config XmlElement
return System

VersionOneProcessor() public method

public VersionOneProcessor ( XmlElement config, ILogger logger ) : System
config XmlElement
logger ILogger
return System