C# Class VSSonarExtensionUi.Model.Analysis.IssuesSearchModel

Search model for issues, viewmodel IssuesSearchViewModel
Inheritance: IAnalysisModelBase, IModelBase
Datei anzeigen Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Public Methods

Method Description
AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider sourceModelIn, Profile>.Dictionary profile, string visualStudioVersion ) : void

The init data association.

ClearIssues ( ) : void

Clears the issues.

GetAllIssuesInProject ( ) : IEnumerable

Gets all issues in project.

GetCurrentUserIssues ( ) : IEnumerable

Gets the current user issues.

GetCurrentUserIssuesInProject ( ) : IEnumerable

Gets the user issues in project.

GetIssuesForResource ( Resource file, string fileContent, bool &shownfalseandresolved ) : List

The get issues for resource.

GetIssuesSinceLastProjectDate ( ) : IEnumerable

Gets the issues since last project date.

GetIssuesSinceSinceDate ( System.DateTime date ) : IEnumerable

Gets the issues since since date.

GetIssuesUsingFilter ( string filter, bool filterSSCM, bool componentsSet ) : IEnumerable

The retrieve issues using current filter.

GetUserIssues ( string userName ) : IEnumerable

Gets the user issues in project.

GetUserIssuesInProject ( string userName ) : IEnumerable

Gets the user issues in project.

GetViewModel ( ) : object

Gets the view model.

IssuesSearchModel ( IConfigurationHelper configurationHelper, ISonarRestService restService, INotificationManager manager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser ) : System

Initializes a new instance of the IssuesSearchModel class.

OnAnalysisModeHasChange ( EventArgs e ) : void

The on changed.

OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjectsIn, IIssueTrackerPlugin sourcePlugin ) : void

Called when [connect to sonar].

OnDisconnect ( ) : void

Called when [disconnect].

OnSolutionClosed ( ) : void

The end data association.

RefreshDataForResource ( Resource fullName, string documentInView, string content, bool fromSource ) : void

The refresh data for resource.

ResetStats ( ) : void

Reset Stats.

TriggerAProjectAnalysis ( VsProjectItem project ) : void

The trigger a project analysis.

UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBarIn, IServiceProvider provider ) : void

The update services.

Private Methods

Method Description
CancelQuery ( ) : void

Cancels the query.

FilterIssuesBySSCM ( List issues ) : IEnumerable

Filters the issues by SSCM.

FilterIssuesBySSCM ( Issue issue ) : Issue

Filters the issues by SSCM.

Method Details

AssociateWithNewProject() public method

The init data association.
public AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider sourceModelIn, Profile>.Dictionary profile, string visualStudioVersion ) : void
project Resource The project.
workingDir string The working dir.
sourceModelIn ISourceControlProvider The source model in.
profile Profile>.Dictionary The profile.
visualStudioVersion string
return void

ClearIssues() public method

Clears the issues.
public ClearIssues ( ) : void
return void

GetAllIssuesInProject() public method

Gets all issues in project.
public GetAllIssuesInProject ( ) : IEnumerable
return IEnumerable

GetCurrentUserIssues() public method

Gets the current user issues.
public GetCurrentUserIssues ( ) : IEnumerable
return IEnumerable

GetCurrentUserIssuesInProject() public method

Gets the user issues in project.
public GetCurrentUserIssuesInProject ( ) : IEnumerable
return IEnumerable

GetIssuesForResource() public method

The get issues for resource.
public GetIssuesForResource ( Resource file, string fileContent, bool &shownfalseandresolved ) : List
file Resource The file.
fileContent string The file content.
shownfalseandresolved bool The shown false and resolved.
return List

GetIssuesSinceLastProjectDate() public method

Gets the issues since last project date.
public GetIssuesSinceLastProjectDate ( ) : IEnumerable
return IEnumerable

GetIssuesSinceSinceDate() public method

Gets the issues since since date.
public GetIssuesSinceSinceDate ( System.DateTime date ) : IEnumerable
date System.DateTime The date.
return IEnumerable

GetIssuesUsingFilter() public method

The retrieve issues using current filter.
public GetIssuesUsingFilter ( string filter, bool filterSSCM, bool componentsSet ) : IEnumerable
filter string The filter.
filterSSCM bool if set to true [filter SSCM].
componentsSet bool if set to true [components set].
return IEnumerable

GetUserIssues() public method

Gets the user issues in project.
public GetUserIssues ( string userName ) : IEnumerable
userName string Name of the user.
return IEnumerable

GetUserIssuesInProject() public method

Gets the user issues in project.
public GetUserIssuesInProject ( string userName ) : IEnumerable
userName string Name of the user.
return IEnumerable

GetViewModel() public method

Gets the view model.
public GetViewModel ( ) : object
return object

IssuesSearchModel() public method

Initializes a new instance of the IssuesSearchModel class.
public IssuesSearchModel ( IConfigurationHelper configurationHelper, ISonarRestService restService, INotificationManager manager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser ) : System
configurationHelper IConfigurationHelper The configuration helper.
restService ISonarRestService The rest service.
manager INotificationManager The manager.
translator ISQKeyTranslator The translator.
analyser ISonarLocalAnalyser The analyser.
return System

OnAnalysisModeHasChange() public method

The on changed.
public OnAnalysisModeHasChange ( EventArgs e ) : void
e System.EventArgs /// The e. ///
return void

OnConnectToSonar() public method

Called when [connect to sonar].
public OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjectsIn, IIssueTrackerPlugin sourcePlugin ) : void
configuration ISonarConfiguration sonar configuration
availableProjectsIn IEnumerable The available projects in.
sourcePlugin IIssueTrackerPlugin
return void

OnDisconnect() public method

Called when [disconnect].
public OnDisconnect ( ) : void
return void

OnSolutionClosed() public method

The end data association.
public OnSolutionClosed ( ) : void
return void

RefreshDataForResource() public method

The refresh data for resource.
public RefreshDataForResource ( Resource fullName, string documentInView, string content, bool fromSource ) : void
fullName Resource /// The full name. ///
documentInView string /// The document in view. ///
content string
fromSource bool
return void

ResetStats() public method

Reset Stats.
public ResetStats ( ) : void
return void

TriggerAProjectAnalysis() public method

The trigger a project analysis.
public TriggerAProjectAnalysis ( VsProjectItem project ) : void
project VsProjectItem The project.
return void

UpdateServices() public method

The update services.
public UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBarIn, IServiceProvider provider ) : void
vsenvironmenthelperIn IVsEnvironmentHelper The vsenvironmenthelper in.
statusBarIn IVSSStatusBar The status bar in.
provider IServiceProvider The provider.
return void