C# Class Cydin.Models.UserModel

Inheritance: IDisposable
Afficher le fichier Open project: slluis/cydin Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddProjectOwner() public méthode

public AddProjectOwner ( int projectId, int userId ) : void
projectId int
userId int
Résultat void

BindDownloadInfo() public méthode

public BindDownloadInfo ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
Résultat void

CanManageProject() public méthode

public CanManageProject ( Cydin.Models.Project pr ) : bool
pr Cydin.Models.Project
Résultat bool

CanManageProject() public méthode

public CanManageProject ( int projectId ) : bool
projectId int
Résultat bool

CleanSources() public méthode

public CleanSources ( int sourceTagId ) : void
sourceTagId int
Résultat void

CreateProject() public méthode

public CreateProject ( Cydin.Models.Project p ) : void
p Cydin.Models.Project
Résultat void

CreateRelease() public méthode

public CreateRelease ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
Résultat void

CreateSource() public méthode

public CreateSource ( Cydin.Models.VcsSource source ) : void
source Cydin.Models.VcsSource
Résultat void

CreateSourceTag() public méthode

public CreateSourceTag ( SourceTag stag ) : void
stag SourceTag
Résultat void

DeleteAppRelease() public méthode

public DeleteAppRelease ( int id ) : void
id int
Résultat void

DeleteRelease() public méthode

public DeleteRelease ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
Résultat void

DeleteSource() public méthode

public DeleteSource ( int id ) : void
id int
Résultat void

DeleteSourceTag() public méthode

public DeleteSourceTag ( SourceTag stag ) : void
stag SourceTag
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetAppRelease() public méthode

public GetAppRelease ( int id ) : AppRelease
id int
Résultat AppRelease

GetAppReleaseByVersion() public méthode

public GetAppReleaseByVersion ( string version ) : AppRelease
version string
Résultat AppRelease

GetAppReleases() public méthode

public GetAppReleases ( ) : IEnumerable
Résultat IEnumerable

GetApplication() public méthode

public GetApplication ( int id ) : Application
id int
Résultat Application

GetApplicationAdministrators() public méthode

public GetApplicationAdministrators ( ) : IEnumerable
Résultat IEnumerable

GetApplicationNotifications() public méthode

public GetApplicationNotifications ( ) : List
Résultat List

GetApplications() public méthode

public GetApplications ( ) : IEnumerable
Résultat IEnumerable

GetCurrent() public static méthode

public static GetCurrent ( ) : UserModel
Résultat UserModel

GetCurrentAppName() public static méthode

public static GetCurrentAppName ( ) : string
Résultat string

GetDevStatusItems() public méthode

public GetDevStatusItems ( DevStatus current ) : List
current DevStatus
Résultat List

GetForUser() public static méthode

public static GetForUser ( string login, string password, int appId ) : UserModel
login string
password string
appId int
Résultat UserModel

GetPendingReleases() public méthode

public GetPendingReleases ( string status ) : IEnumerable
status string
Résultat IEnumerable

GetProject() public méthode

public GetProject ( int id ) : Cydin.Models.Project
id int
Résultat Cydin.Models.Project

GetProjectByName() public méthode

public GetProjectByName ( string name ) : Cydin.Models.Project
name string
Résultat Cydin.Models.Project

GetProjectNotifications() public méthode

public GetProjectNotifications ( int projectId ) : List
projectId int
Résultat List

GetProjectOwners() public méthode

public GetProjectOwners ( Cydin.Models.Project p ) : IEnumerable
p Cydin.Models.Project
Résultat IEnumerable

GetProjectReleases() public méthode

public GetProjectReleases ( int projectId ) : IEnumerable
projectId int
Résultat IEnumerable

GetProjectSourceTags() public méthode

public GetProjectSourceTags ( int projectId ) : IEnumerable
projectId int
Résultat IEnumerable

GetProjectSources() public méthode

public GetProjectSources ( int projectId ) : IEnumerable
projectId int
Résultat IEnumerable

GetProjects() public méthode

public GetProjects ( ) : IEnumerable
Résultat IEnumerable

GetPublishedRelease() public méthode

public GetPublishedRelease ( SourceTag st ) : Cydin.Models.Release
st SourceTag
Résultat Cydin.Models.Release

GetRecentReleases() public méthode

public GetRecentReleases ( ) : IEnumerable
Résultat IEnumerable

GetRelease() public méthode

public GetRelease ( int releaseId ) : Cydin.Models.Release
releaseId int
Résultat Cydin.Models.Release

GetReleases() public méthode

public GetReleases ( ) : IEnumerable
Résultat IEnumerable

GetSettings() public static méthode

public static GetSettings ( ) : Cydin.Properties.Settings
Résultat Cydin.Properties.Settings

GetSource() public méthode

public GetSource ( int sourceId ) : Cydin.Models.VcsSource
sourceId int
Résultat Cydin.Models.VcsSource

GetSourceTag() public méthode

public GetSourceTag ( int sourceTagId ) : SourceTag
sourceTagId int
Résultat SourceTag

GetSourceTags() public méthode

public GetSourceTags ( ) : IEnumerable
Résultat IEnumerable

GetSources() public méthode

public GetSources ( int projectId ) : IEnumerable
projectId int
Résultat IEnumerable

GetUser() public méthode

public GetUser ( int id ) : Cydin.Models.User
id int
Résultat Cydin.Models.User

GetUserProjects() public méthode

public GetUserProjects ( ) : IEnumerable
Résultat IEnumerable

GetVcsSource() public méthode

public GetVcsSource ( int id ) : Cydin.Models.VcsSource
id int
Résultat Cydin.Models.VcsSource

GetVcsSourceTags() public méthode

public GetVcsSourceTags ( int sourceId ) : IEnumerable
sourceId int
Résultat IEnumerable

PublishRelease() public méthode

public PublishRelease ( int sourceId ) : Cydin.Models.Release
sourceId int
Résultat Cydin.Models.Release

RemoveProjectOwner() public méthode

public RemoveProjectOwner ( int projectId, int userId ) : void
projectId int
userId int
Résultat void

ResetUserPermission() public méthode

public ResetUserPermission ( ApplicationPermission perm ) : void
perm ApplicationPermission
Résultat void

SendMail() public méthode

public SendMail ( string subject, string body, ApplicationNotification notif ) : void
subject string
body string
notif ApplicationNotification
Résultat void

SendMail() public méthode

public SendMail ( string subject, string body, ProjectNotification notif, int projectId ) : void
subject string
body string
notif ProjectNotification
projectId int
Résultat void

SendMail() public méthode

public SendMail ( string subject, string body, int projectId ) : void
subject string
body string
projectId int
Résultat void

SetApplicationNotification() public méthode

public SetApplicationNotification ( ApplicationNotification notif, bool enable ) : void
notif ApplicationNotification
enable bool
Résultat void

SetApplicationNotification() public méthode

public SetApplicationNotification ( ProjectNotification notif, bool enable ) : void
notif ProjectNotification
enable bool
Résultat void

SetProjectNotification() public méthode

public SetProjectNotification ( ProjectNotification notif, int projectId, bool enable ) : void
notif ProjectNotification
projectId int
enable bool
Résultat void

SetPublished() public méthode

public SetPublished ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
Résultat void

SetSiteNotification() public méthode

public SetSiteNotification ( SiteNotification notif, bool enable ) : void
notif SiteNotification
enable bool
Résultat void

SetSourceTagStatus() public méthode

public SetSourceTagStatus ( SourceTag stag, string status ) : void
stag SourceTag
status string
Résultat void

SetUserApplicationPermission() public méthode

public SetUserApplicationPermission ( int userId, ApplicationPermission perms, bool enable ) : void
userId int
perms ApplicationPermission
enable bool
Résultat void

SetUserPermission() public méthode

public SetUserPermission ( ApplicationPermission perm ) : void
perm ApplicationPermission
Résultat void

UpdateProject() public méthode

public UpdateProject ( Cydin.Models.Project p ) : void
p Cydin.Models.Project
Résultat void

UpdateSettings() public méthode

public UpdateSettings ( Cydin.Properties.Settings s ) : void
s Cydin.Properties.Settings
Résultat void

UpdateSource() public méthode

public UpdateSource ( Cydin.Models.VcsSource s, bool rebuild ) : void
s Cydin.Models.VcsSource
rebuild bool
Résultat void

UpdateSourceTag() public méthode

public UpdateSourceTag ( SourceTag stag ) : void
stag SourceTag
Résultat void

UpdateUser() public méthode

public UpdateUser ( Cydin.Models.User user ) : void
user Cydin.Models.User
Résultat void

UploadRelease() public méthode

public UploadRelease ( int projectId, System.Web.HttpPostedFileBase file, string appVersion, string platforms ) : SourceTag
projectId int
file System.Web.HttpPostedFileBase
appVersion string
platforms string
Résultat SourceTag

UploadRelease() public méthode

public UploadRelease ( int projectId, byte fileData, string appVersion, string platforms ) : SourceTag
projectId int
fileData byte
appVersion string
platforms string
Résultat SourceTag

ValidateProject() public méthode

public ValidateProject ( int projectId ) : void
projectId int
Résultat void