C# Класс Cydin.Models.UserModel

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ApproveRelease void
CheckIsAdmin void
CheckIsSiteAdmin void
CreateAppRelease void
DeleteProject void
GetAdmin UserModel
GetBaseUrl string
GetBuildLogUrl string
GetProjectUrl string
GetUsersToNotify IEnumerable
GetUsersToNotify IEnumerable
ReadAddinInfo AddinInfo
RejectRelease void
ResetProjectFlags void
SaveFile void
SetProjectFlags void
SetSourceStatus void
SetSourceStatus void
UpdateAppRelease void
UpdateAppReleaseFile void
UpdateAppReleaseFileFromUrl void
UpdateProjectFlags void
UploadRelease SourceTag
UserModel MySql.Data.MySqlClient

Открытые методы

Метод Описание
AddProjectOwner ( int projectId, int userId ) : void
BindDownloadInfo ( Cydin.Models.Release rel ) : void
CanManageProject ( Cydin.Models.Project pr ) : bool
CanManageProject ( int projectId ) : bool
CleanSources ( int sourceTagId ) : void
CreateProject ( Cydin.Models.Project p ) : void
CreateRelease ( Cydin.Models.Release rel ) : void
CreateSource ( Cydin.Models.VcsSource source ) : void
CreateSourceTag ( SourceTag stag ) : void
DeleteAppRelease ( int id ) : void
DeleteRelease ( Cydin.Models.Release rel ) : void
DeleteSource ( int id ) : void
DeleteSourceTag ( SourceTag stag ) : void
Dispose ( ) : void
GetAppRelease ( int id ) : AppRelease
GetAppReleaseByVersion ( string version ) : AppRelease
GetAppReleases ( ) : IEnumerable
GetApplication ( int id ) : Application
GetApplicationAdministrators ( ) : IEnumerable
GetApplicationNotifications ( ) : List
GetApplications ( ) : IEnumerable
GetCurrent ( ) : UserModel
GetCurrentAppName ( ) : string
GetDevStatusItems ( DevStatus current ) : List
GetForUser ( string login, string password, int appId ) : UserModel
GetPendingReleases ( string status ) : IEnumerable
GetProject ( int id ) : Cydin.Models.Project
GetProjectByName ( string name ) : Cydin.Models.Project
GetProjectNotifications ( int projectId ) : List
GetProjectOwners ( Cydin.Models.Project p ) : IEnumerable
GetProjectReleases ( int projectId ) : IEnumerable
GetProjectSourceTags ( int projectId ) : IEnumerable
GetProjectSources ( int projectId ) : IEnumerable
GetProjects ( ) : IEnumerable
GetPublishedRelease ( SourceTag st ) : Cydin.Models.Release
GetRecentReleases ( ) : IEnumerable
GetRelease ( int releaseId ) : Cydin.Models.Release
GetReleases ( ) : IEnumerable
GetSettings ( ) : Cydin.Properties.Settings
GetSource ( int sourceId ) : Cydin.Models.VcsSource
GetSourceTag ( int sourceTagId ) : SourceTag
GetSourceTags ( ) : IEnumerable
GetSources ( int projectId ) : IEnumerable
GetUser ( int id ) : Cydin.Models.User
GetUserProjects ( ) : IEnumerable
GetVcsSource ( int id ) : Cydin.Models.VcsSource
GetVcsSourceTags ( int sourceId ) : IEnumerable
PublishRelease ( int sourceId ) : Cydin.Models.Release
RemoveProjectOwner ( int projectId, int userId ) : void
ResetUserPermission ( ApplicationPermission perm ) : void
SendMail ( string subject, string body, ApplicationNotification notif ) : void
SendMail ( string subject, string body, ProjectNotification notif, int projectId ) : void
SendMail ( string subject, string body, int projectId ) : void
SetApplicationNotification ( ApplicationNotification notif, bool enable ) : void
SetApplicationNotification ( ProjectNotification notif, bool enable ) : void
SetProjectNotification ( ProjectNotification notif, int projectId, bool enable ) : void
SetPublished ( Cydin.Models.Release rel ) : void
SetSiteNotification ( SiteNotification notif, bool enable ) : void
SetSourceTagStatus ( SourceTag stag, string status ) : void
SetUserApplicationPermission ( int userId, ApplicationPermission perms, bool enable ) : void
SetUserPermission ( ApplicationPermission perm ) : void
UpdateProject ( Cydin.Models.Project p ) : void
UpdateSettings ( Cydin.Properties.Settings s ) : void
UpdateSource ( Cydin.Models.VcsSource s, bool rebuild ) : void
UpdateSourceTag ( SourceTag stag ) : void
UpdateUser ( Cydin.Models.User user ) : void
UploadRelease ( int projectId, System.Web.HttpPostedFileBase file, string appVersion, string platforms ) : SourceTag
UploadRelease ( int projectId, byte fileData, string appVersion, string platforms ) : SourceTag
ValidateProject ( int projectId ) : void

Приватные методы

Метод Описание
ApproveRelease ( int id ) : void
CheckIsAdmin ( ) : void
CheckIsSiteAdmin ( ) : void
CreateAppRelease ( AppRelease release, System.Web.HttpPostedFileBase file ) : void
DeleteProject ( int id ) : void
GetAdmin ( int applicationId ) : UserModel
GetBaseUrl ( ) : string
GetBuildLogUrl ( int stagId ) : string
GetProjectUrl ( int projectId ) : string
GetUsersToNotify ( ApplicationNotification notif ) : IEnumerable
GetUsersToNotify ( int projectId, ProjectNotification notif ) : IEnumerable
ReadAddinInfo ( string file ) : AddinInfo
RejectRelease ( int id ) : void
ResetProjectFlags ( int id, ProjectFlag flags ) : void
SaveFile ( Stream inStream, string path ) : void
SetProjectFlags ( int id, ProjectFlag flags ) : void
SetSourceStatus ( int id, string status ) : void
SetSourceStatus ( int id, string status, string message ) : void
UpdateAppRelease ( AppRelease release, System.Web.HttpPostedFileBase file ) : void
UpdateAppReleaseFile ( AppRelease release, System.Web.HttpPostedFileBase file ) : void
UpdateAppReleaseFileFromUrl ( AppRelease release, string url ) : void
UpdateProjectFlags ( int id, ProjectFlag flags ) : void
UploadRelease ( int projectId, System.Web.HttpPostedFileBase file, byte fileData, string appVersion, string platforms ) : SourceTag
UserModel ( ) : MySql.Data.MySqlClient

Описание методов

AddProjectOwner() публичный Метод

public AddProjectOwner ( int projectId, int userId ) : void
projectId int
userId int
Результат void

BindDownloadInfo() публичный Метод

public BindDownloadInfo ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
Результат void

CanManageProject() публичный Метод

public CanManageProject ( Cydin.Models.Project pr ) : bool
pr Cydin.Models.Project
Результат bool

CanManageProject() публичный Метод

public CanManageProject ( int projectId ) : bool
projectId int
Результат bool

CleanSources() публичный Метод

public CleanSources ( int sourceTagId ) : void
sourceTagId int
Результат void

CreateProject() публичный Метод

public CreateProject ( Cydin.Models.Project p ) : void
p Cydin.Models.Project
Результат void

CreateRelease() публичный Метод

public CreateRelease ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
Результат void

CreateSource() публичный Метод

public CreateSource ( Cydin.Models.VcsSource source ) : void
source Cydin.Models.VcsSource
Результат void

CreateSourceTag() публичный Метод

public CreateSourceTag ( SourceTag stag ) : void
stag SourceTag
Результат void

DeleteAppRelease() публичный Метод

public DeleteAppRelease ( int id ) : void
id int
Результат void

DeleteRelease() публичный Метод

public DeleteRelease ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
Результат void

DeleteSource() публичный Метод

public DeleteSource ( int id ) : void
id int
Результат void

DeleteSourceTag() публичный Метод

public DeleteSourceTag ( SourceTag stag ) : void
stag SourceTag
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetAppRelease() публичный Метод

public GetAppRelease ( int id ) : AppRelease
id int
Результат AppRelease

GetAppReleaseByVersion() публичный Метод

public GetAppReleaseByVersion ( string version ) : AppRelease
version string
Результат AppRelease

GetAppReleases() публичный Метод

public GetAppReleases ( ) : IEnumerable
Результат IEnumerable

GetApplication() публичный Метод

public GetApplication ( int id ) : Application
id int
Результат Application

GetApplicationAdministrators() публичный Метод

public GetApplicationAdministrators ( ) : IEnumerable
Результат IEnumerable

GetApplicationNotifications() публичный Метод

public GetApplicationNotifications ( ) : List
Результат List

GetApplications() публичный Метод

public GetApplications ( ) : IEnumerable
Результат IEnumerable

GetCurrent() публичный статический Метод

public static GetCurrent ( ) : UserModel
Результат UserModel

GetCurrentAppName() публичный статический Метод

public static GetCurrentAppName ( ) : string
Результат string

GetDevStatusItems() публичный Метод

public GetDevStatusItems ( DevStatus current ) : List
current DevStatus
Результат List

GetForUser() публичный статический Метод

public static GetForUser ( string login, string password, int appId ) : UserModel
login string
password string
appId int
Результат UserModel

GetPendingReleases() публичный Метод

public GetPendingReleases ( string status ) : IEnumerable
status string
Результат IEnumerable

GetProject() публичный Метод

public GetProject ( int id ) : Cydin.Models.Project
id int
Результат Cydin.Models.Project

GetProjectByName() публичный Метод

public GetProjectByName ( string name ) : Cydin.Models.Project
name string
Результат Cydin.Models.Project

GetProjectNotifications() публичный Метод

public GetProjectNotifications ( int projectId ) : List
projectId int
Результат List

GetProjectOwners() публичный Метод

public GetProjectOwners ( Cydin.Models.Project p ) : IEnumerable
p Cydin.Models.Project
Результат IEnumerable

GetProjectReleases() публичный Метод

public GetProjectReleases ( int projectId ) : IEnumerable
projectId int
Результат IEnumerable

GetProjectSourceTags() публичный Метод

public GetProjectSourceTags ( int projectId ) : IEnumerable
projectId int
Результат IEnumerable

GetProjectSources() публичный Метод

public GetProjectSources ( int projectId ) : IEnumerable
projectId int
Результат IEnumerable

GetProjects() публичный Метод

public GetProjects ( ) : IEnumerable
Результат IEnumerable

GetPublishedRelease() публичный Метод

public GetPublishedRelease ( SourceTag st ) : Cydin.Models.Release
st SourceTag
Результат Cydin.Models.Release

GetRecentReleases() публичный Метод

public GetRecentReleases ( ) : IEnumerable
Результат IEnumerable

GetRelease() публичный Метод

public GetRelease ( int releaseId ) : Cydin.Models.Release
releaseId int
Результат Cydin.Models.Release

GetReleases() публичный Метод

public GetReleases ( ) : IEnumerable
Результат IEnumerable

GetSettings() публичный статический Метод

public static GetSettings ( ) : Cydin.Properties.Settings
Результат Cydin.Properties.Settings

GetSource() публичный Метод

public GetSource ( int sourceId ) : Cydin.Models.VcsSource
sourceId int
Результат Cydin.Models.VcsSource

GetSourceTag() публичный Метод

public GetSourceTag ( int sourceTagId ) : SourceTag
sourceTagId int
Результат SourceTag

GetSourceTags() публичный Метод

public GetSourceTags ( ) : IEnumerable
Результат IEnumerable

GetSources() публичный Метод

public GetSources ( int projectId ) : IEnumerable
projectId int
Результат IEnumerable

GetUser() публичный Метод

public GetUser ( int id ) : Cydin.Models.User
id int
Результат Cydin.Models.User

GetUserProjects() публичный Метод

public GetUserProjects ( ) : IEnumerable
Результат IEnumerable

GetVcsSource() публичный Метод

public GetVcsSource ( int id ) : Cydin.Models.VcsSource
id int
Результат Cydin.Models.VcsSource

GetVcsSourceTags() публичный Метод

public GetVcsSourceTags ( int sourceId ) : IEnumerable
sourceId int
Результат IEnumerable

PublishRelease() публичный Метод

public PublishRelease ( int sourceId ) : Cydin.Models.Release
sourceId int
Результат Cydin.Models.Release

RemoveProjectOwner() публичный Метод

public RemoveProjectOwner ( int projectId, int userId ) : void
projectId int
userId int
Результат void

ResetUserPermission() публичный Метод

public ResetUserPermission ( ApplicationPermission perm ) : void
perm ApplicationPermission
Результат void

SendMail() публичный Метод

public SendMail ( string subject, string body, ApplicationNotification notif ) : void
subject string
body string
notif ApplicationNotification
Результат void

SendMail() публичный Метод

public SendMail ( string subject, string body, ProjectNotification notif, int projectId ) : void
subject string
body string
notif ProjectNotification
projectId int
Результат void

SendMail() публичный Метод

public SendMail ( string subject, string body, int projectId ) : void
subject string
body string
projectId int
Результат void

SetApplicationNotification() публичный Метод

public SetApplicationNotification ( ApplicationNotification notif, bool enable ) : void
notif ApplicationNotification
enable bool
Результат void

SetApplicationNotification() публичный Метод

public SetApplicationNotification ( ProjectNotification notif, bool enable ) : void
notif ProjectNotification
enable bool
Результат void

SetProjectNotification() публичный Метод

public SetProjectNotification ( ProjectNotification notif, int projectId, bool enable ) : void
notif ProjectNotification
projectId int
enable bool
Результат void

SetPublished() публичный Метод

public SetPublished ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
Результат void

SetSiteNotification() публичный Метод

public SetSiteNotification ( SiteNotification notif, bool enable ) : void
notif SiteNotification
enable bool
Результат void

SetSourceTagStatus() публичный Метод

public SetSourceTagStatus ( SourceTag stag, string status ) : void
stag SourceTag
status string
Результат void

SetUserApplicationPermission() публичный Метод

public SetUserApplicationPermission ( int userId, ApplicationPermission perms, bool enable ) : void
userId int
perms ApplicationPermission
enable bool
Результат void

SetUserPermission() публичный Метод

public SetUserPermission ( ApplicationPermission perm ) : void
perm ApplicationPermission
Результат void

UpdateProject() публичный Метод

public UpdateProject ( Cydin.Models.Project p ) : void
p Cydin.Models.Project
Результат void

UpdateSettings() публичный Метод

public UpdateSettings ( Cydin.Properties.Settings s ) : void
s Cydin.Properties.Settings
Результат void

UpdateSource() публичный Метод

public UpdateSource ( Cydin.Models.VcsSource s, bool rebuild ) : void
s Cydin.Models.VcsSource
rebuild bool
Результат void

UpdateSourceTag() публичный Метод

public UpdateSourceTag ( SourceTag stag ) : void
stag SourceTag
Результат void

UpdateUser() публичный Метод

public UpdateUser ( Cydin.Models.User user ) : void
user Cydin.Models.User
Результат void

UploadRelease() публичный Метод

public UploadRelease ( int projectId, System.Web.HttpPostedFileBase file, string appVersion, string platforms ) : SourceTag
projectId int
file System.Web.HttpPostedFileBase
appVersion string
platforms string
Результат SourceTag

UploadRelease() публичный Метод

public UploadRelease ( int projectId, byte fileData, string appVersion, string platforms ) : SourceTag
projectId int
fileData byte
appVersion string
platforms string
Результат SourceTag

ValidateProject() публичный Метод

public ValidateProject ( int projectId ) : void
projectId int
Результат void