IFarmService.cs :  » Build-Systems » CruiseControl.NET » ThoughtWorks » CruiseControl » WebDashboard » ServerConnection » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Build Systems » CruiseControl.NET 
CruiseControl.NET » ThoughtWorks » CruiseControl » WebDashboard » ServerConnection » IFarmService.cs
using System.Collections.Generic;
using ThoughtWorks.CruiseControl.Core.Reporting.Dashboard.Navigation;
using ThoughtWorks.CruiseControl.Remote;
using ThoughtWorks.CruiseControl.Remote.Parameters;
using ThoughtWorks.CruiseControl.Remote.Security;
using ThoughtWorks.CruiseControl.Remote.Messages;

namespace ThoughtWorks.CruiseControl.WebDashboard.ServerConnection{
  public interface IFarmService
  {
        IBuildSpecifier[] GetMostRecentBuildSpecifiers(IProjectSpecifier projectSpecifier, int buildCount, string sessionToken);
        IBuildSpecifier[] GetBuildSpecifiers(IProjectSpecifier serverSpecifier, string sessionToken);
        void DeleteProject(IProjectSpecifier projectSpecifier, bool purgeWorkingDirectory, bool purgeArtifactDirectory, bool purgeSourceControlEnvironment, string sessionToken);
        string GetServerLog(IServerSpecifier serverSpecifier, string sessionToken);
        string GetServerLog(IProjectSpecifier specifier, string sessionToken);
        void ForceBuild(IProjectSpecifier projectSpecifier, string sessionToken);
        void AbortBuild(IProjectSpecifier projectSpecifier, string sessionToken);
        void Start(IProjectSpecifier projectSpecifier, string sessionToken);
        void Stop(IProjectSpecifier projectSpecifier, string sessionToken);
        void ForceBuild(IProjectSpecifier projectSpecifier, string sessionToken, Dictionary<string, string> parameters);
    ProjectStatusListAndExceptions GetProjectStatusListAndCaptureExceptions(string sessionToken);
        ProjectStatusListAndExceptions GetProjectStatusListAndCaptureExceptions(IServerSpecifier serverSpecifier, string sessionToken);
        ExternalLink[] GetExternalLinks(IProjectSpecifier projectSpecifier, string sessionToken);
    IServerSpecifier[] GetServerSpecifiers();
        IServerSpecifier GetServerConfiguration(string serverName);
    string GetServerVersion(IServerSpecifier serverSpecifier);
        string GetArtifactDirectory(IProjectSpecifier projectSpecifier, string sessionToken);
        string GetStatisticsDocument(IProjectSpecifier projectSpecifier, string sessionToken);
        CruiseServerSnapshotListAndExceptions GetCruiseServerSnapshotListAndExceptions(string sessionToken);
        CruiseServerSnapshotListAndExceptions GetCruiseServerSnapshotListAndExceptions(IServerSpecifier serverSpecifier, string sessionToken);
        string GetModificationHistoryDocument(IProjectSpecifier projectSpecifier, string sessionToken);
        string GetRSSFeed(IProjectSpecifier projectSpecifier);
        string Login(string server, LoginRequest credentials);
        void Logout(string server, string sessionToken);
        void ChangePassword(string server, string sessionToken, string oldPassword, string newPassword);
        void ResetPassword(string server, string sessionToken, string userName, string newPassword);

        /// <summary>
        /// Retrieves the configuration for security on a server.
        /// </summary>
        /// <param name="serverSpecifier">The server to get the configuration from.</param>
        /// <param name="sessionToken"></param>
        /// <returns>An XML fragment containing the security configuration.</returns>
        string GetServerSecurity(IServerSpecifier serverSpecifier, string sessionToken);

        /// <summary>
        /// Lists all the users who have been defined on a server.
        /// </summary>
        /// <param name="serverSpecifier">The server to get the users from.</param>
        /// <param name="sessionToken"></param>
        /// <returns>
        /// A list of <see cref="UserDetails"/> containing the details on all the users
        /// who have been defined.
        /// </returns>
        List<UserDetails> ListAllUsers(IServerSpecifier serverSpecifier, string sessionToken);

        /// <summary>
        /// Checks the security permissions for a user for a project.
        /// </summary>
        /// <param name="projectSpecifier">The project to check.</param>
        /// <param name="userName">The name of the user.</param>
        /// <param name="sessionToken"></param>
        /// <returns>A set of diagnostics information.</returns>
        List<SecurityCheckDiagnostics> DiagnoseSecurityPermissions(IProjectSpecifier projectSpecifier, string sessionToken, string userName);

        /// <summary>
        /// Checks the security permissions for a user for a server.
        /// </summary>
        /// <param name="serverSpecifier">The server to check.</param>
        /// <param name="userName">The name of the user.</param>
        /// <returns>A set of diagnostics information.</returns>
        /// <param name="sessionToken"></param>
        List<SecurityCheckDiagnostics> DiagnoseSecurityPermissions(IServerSpecifier serverSpecifier, string sessionToken, string userName);

        /// <summary>
        /// Lists the build parameters for a project.
        /// </summary>
        /// <param name="projectSpecifier">The project to check.</param>
        /// <param name="sessionToken"></param>
        /// <returns>The list of parameters (if any).</returns>
        List<ParameterBase> ListBuildParameters(IProjectSpecifier projectSpecifier, string sessionToken);

        /// <summary>
        /// Reads all the specified number of audit events.
        /// </summary>
        /// <param name="startPosition">The starting position.</param>
        /// <param name="numberOfRecords">The number of records to read.</param>
        /// <param name="serverSpecifier"></param>
        /// <param name="sessionToken"></param>
        /// <returns>A list of <see cref="AuditRecord" />s containing the audit details.</returns>
        List<AuditRecord> ReadAuditRecords(IServerSpecifier serverSpecifier, string sessionToken, int startPosition, int numberOfRecords);
       
     /// <summary>
        /// Reads the specified number of filtered audit events.
        /// </summary>
        /// <param name="startPosition">The starting position.</param>
        /// <param name="numberOfRecords">The number of records to read.</param>
        /// <param name="filter">The filter to use.</param>
        /// <param name="serverSpecifier"></param>
        /// <param name="sessionToken"></param>
        /// <returns>A list of <see cref="AuditRecord"/>s containing the audit details that match the filter.</returns>
        List<AuditRecord> ReadAuditRecords(IServerSpecifier serverSpecifier, string sessionToken, int startPosition, int numberOfRecords, AuditFilterBase filter);

        /// <summary>
        /// Processes a message for a server.
        /// </summary>
        /// <param name="serverSpecifer">The server.</param>
        /// <param name="action">The action.</param>
        /// <param name="message">The message.</param>
        /// <returns>The response.</returns>
        string ProcessMessage(IServerSpecifier serverSpecifer, string action, string message);

        /// <summary>
        /// Retrieve the amount of free disk space.
        /// </summary>
        /// <returns></returns>
        long GetFreeDiskSpace(IServerSpecifier serverSpecifier);

        #region RetrieveFileTransfer()
        RemotingFileTransfer RetrieveFileTransfer(IProjectSpecifier projectSpecifier, string fileName, string sessionToken);

        RemotingFileTransfer RetrieveFileTransfer(IBuildSpecifier buildSpecifier, string fileName, string sessionToken);
        #endregion

        #region RetrievePackageList()
        /// <summary>
        /// List the available packages for a project.
        /// </summary>
        /// <param name="projectSpecifier"></param>
        /// <param name="sessionToken"></param>
        /// <returns></returns>
        PackageDetails[] RetrievePackageList(IProjectSpecifier projectSpecifier, string sessionToken);

        /// <summary>
        /// List the available packages for a build.
        /// </summary>
        /// <param name="buildSpecifier"></param>
        /// <param name="sessionToken"></param>
        /// <returns></returns>
        PackageDetails[] RetrievePackageList(IBuildSpecifier buildSpecifier, string sessionToken);
        #endregion

        /// <summary>
        /// Takes a status snapshot of a project.
        /// </summary>
        /// <param name="projectSpecifier">The project.</param>
        /// <param name="sessionToken"></param>
        /// <returns>The snapshot of the current status.</returns>
        ProjectStatusSnapshot TakeStatusSnapshot(IProjectSpecifier projectSpecifier, string sessionToken);

        #region GetLinkedSiteId()
        /// <summary>
        /// Retrieves the identifier for a project on a linked site.
        /// </summary>
        /// <param name="projectSpecifier">The project to retrieve the identifier for.</param>
        /// <param name="siteName">The name of the linked site.</param>
        /// <param name="sessionId"></param>
        /// <returns>The identifier of the other site.</returns>
        string GetLinkedSiteId(IProjectSpecifier projectSpecifier, string sessionId, string siteName);
        #endregion
    }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.