C# Class NuGetGallery.PackagesController

Inheritance: AppController
Show file Open project: chocolatey/chocolatey.org

Public Methods

Method Description
ContactAdmins ( string id, string version ) : System.Web.Mvc.ActionResult
ContactOwners ( string id ) : System.Web.Mvc.ActionResult
Download ( ) : System.Web.Mvc.ActionResult
PackagesController ( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, IConfiguration configuration, ISearchService searchService ) : System
ReportAbuse ( string id, string version ) : System.Web.Mvc.ActionResult

Protected Methods

Method Description
GetIdentity ( ) : IIdentity
ReadNuGetPackage ( Stream stream ) : IPackage
UseHttps ( ) : bool

Private Methods

Method Description
CancelUpload ( ) : System.Web.Mvc.ActionResult
ConfirmOwner ( string id, string username, string token ) : System.Web.Mvc.ActionResult
ContactAdmins ( string id, string version, ReportAbuseViewModel reportForm ) : System.Web.Mvc.ActionResult
ContactOwners ( string id, ContactOwnersViewModel contactForm ) : System.Web.Mvc.ActionResult
Delete ( string id, string version ) : System.Web.Mvc.ActionResult
Delete ( string id, string version, bool listed ) : System.Web.Mvc.ActionResult
Delete ( string id, string version, bool listed, string>.Func urlFactory ) : System.Web.Mvc.ActionResult
DisplayPackage ( string id, string version ) : System.Web.Mvc.ActionResult
DisplayPackage ( string id, string version, System.Web.Mvc.FormCollection form ) : System.Web.Mvc.ActionResult
Edit ( string id, string version ) : System.Web.Mvc.ActionResult
Edit ( string id, string version, bool listed ) : System.Web.Mvc.ActionResult
Edit ( string id, string version, bool listed, string>.Func urlFactory ) : System.Web.Mvc.ActionResult
EnsureTrailingSlash ( string siteRoot ) : string
GetPackageOwnerActionFormResult ( string id, string version ) : System.Web.Mvc.ActionResult
GetSearchFilter ( string q, string sortOrder, int page, bool includePrerelease ) : NuGetGallery.SearchFilter
GetSortExpression ( string sortOrder ) : string
ListPackages ( string q, string sortOrder = null, int page = 1, bool prerelease = false, bool moderatorQueue = false ) : System.Web.Mvc.ActionResult
ManagePackageOwners ( string id, string version ) : System.Web.Mvc.ActionResult
NotifyMaintainersOfAddedComment ( string packageId, NuGetGallery.CommentViewModel commentViewModel ) : System.Web.Mvc.ActionResult
PackageNotFound ( string id ) : System.Web.Mvc.ActionResult
PackageNotFound ( string id, string version ) : System.Web.Mvc.ActionResult
RemoveStartingSlash ( string urlPath ) : string
ReportAbuse ( string id, string version, ReportAbuseViewModel reportForm ) : System.Web.Mvc.ActionResult
UploadPackage ( ) : ActionResult
UploadPackage ( HttpPostedFileBase uploadFile ) : ActionResult
UserHasPackageChangePermissions ( IPrincipal user, Package package ) : bool
VerifyPackage ( ) : ActionResult
VerifyPackage ( bool listed ) : ActionResult

Method Details

ContactAdmins() public method

public ContactAdmins ( string id, string version ) : System.Web.Mvc.ActionResult
id string
version string
return System.Web.Mvc.ActionResult

ContactOwners() public method

public ContactOwners ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

Download() public method

public Download ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

GetIdentity() protected method

protected GetIdentity ( ) : IIdentity
return IIdentity

PackagesController() public method

public PackagesController ( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, IConfiguration configuration, ISearchService searchService ) : System
packageSvc IPackageService
uploadFileSvc IUploadFileService
userSvc IUserService
messageService IMessageService
autoCuratedPackageCmd IAutomaticallyCuratePackageCommand
configuration IConfiguration
searchService ISearchService
return System

ReadNuGetPackage() protected method

protected ReadNuGetPackage ( Stream stream ) : IPackage
stream Stream
return IPackage

ReportAbuse() public method

public ReportAbuse ( string id, string version ) : System.Web.Mvc.ActionResult
id string
version string
return System.Web.Mvc.ActionResult

UseHttps() protected method

protected UseHttps ( ) : bool
return bool