C# Class Cydin.Models.UserModel

Inheritance: IDisposable
Exibir arquivo Open project: slluis/cydin Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

public AddProjectOwner ( int projectId, int userId ) : void
projectId int
userId int
return void

BindDownloadInfo() public method

public BindDownloadInfo ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
return void

CanManageProject() public method

public CanManageProject ( Cydin.Models.Project pr ) : bool
pr Cydin.Models.Project
return bool

CanManageProject() public method

public CanManageProject ( int projectId ) : bool
projectId int
return bool

CleanSources() public method

public CleanSources ( int sourceTagId ) : void
sourceTagId int
return void

CreateProject() public method

public CreateProject ( Cydin.Models.Project p ) : void
p Cydin.Models.Project
return void

CreateRelease() public method

public CreateRelease ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
return void

CreateSource() public method

public CreateSource ( Cydin.Models.VcsSource source ) : void
source Cydin.Models.VcsSource
return void

CreateSourceTag() public method

public CreateSourceTag ( SourceTag stag ) : void
stag SourceTag
return void

DeleteAppRelease() public method

public DeleteAppRelease ( int id ) : void
id int
return void

DeleteRelease() public method

public DeleteRelease ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
return void

DeleteSource() public method

public DeleteSource ( int id ) : void
id int
return void

DeleteSourceTag() public method

public DeleteSourceTag ( SourceTag stag ) : void
stag SourceTag
return void

Dispose() public method

public Dispose ( ) : void
return void

GetAppRelease() public method

public GetAppRelease ( int id ) : AppRelease
id int
return AppRelease

GetAppReleaseByVersion() public method

public GetAppReleaseByVersion ( string version ) : AppRelease
version string
return AppRelease

GetAppReleases() public method

public GetAppReleases ( ) : IEnumerable
return IEnumerable

GetApplication() public method

public GetApplication ( int id ) : Application
id int
return Application

GetApplicationAdministrators() public method

public GetApplicationAdministrators ( ) : IEnumerable
return IEnumerable

GetApplicationNotifications() public method

public GetApplicationNotifications ( ) : List
return List

GetApplications() public method

public GetApplications ( ) : IEnumerable
return IEnumerable

GetCurrent() public static method

public static GetCurrent ( ) : UserModel
return UserModel

GetCurrentAppName() public static method

public static GetCurrentAppName ( ) : string
return string

GetDevStatusItems() public method

public GetDevStatusItems ( DevStatus current ) : List
current DevStatus
return List

GetForUser() public static method

public static GetForUser ( string login, string password, int appId ) : UserModel
login string
password string
appId int
return UserModel

GetPendingReleases() public method

public GetPendingReleases ( string status ) : IEnumerable
status string
return IEnumerable

GetProject() public method

public GetProject ( int id ) : Cydin.Models.Project
id int
return Cydin.Models.Project

GetProjectByName() public method

public GetProjectByName ( string name ) : Cydin.Models.Project
name string
return Cydin.Models.Project

GetProjectNotifications() public method

public GetProjectNotifications ( int projectId ) : List
projectId int
return List

GetProjectOwners() public method

public GetProjectOwners ( Cydin.Models.Project p ) : IEnumerable
p Cydin.Models.Project
return IEnumerable

GetProjectReleases() public method

public GetProjectReleases ( int projectId ) : IEnumerable
projectId int
return IEnumerable

GetProjectSourceTags() public method

public GetProjectSourceTags ( int projectId ) : IEnumerable
projectId int
return IEnumerable

GetProjectSources() public method

public GetProjectSources ( int projectId ) : IEnumerable
projectId int
return IEnumerable

GetProjects() public method

public GetProjects ( ) : IEnumerable
return IEnumerable

GetPublishedRelease() public method

public GetPublishedRelease ( SourceTag st ) : Cydin.Models.Release
st SourceTag
return Cydin.Models.Release

GetRecentReleases() public method

public GetRecentReleases ( ) : IEnumerable
return IEnumerable

GetRelease() public method

public GetRelease ( int releaseId ) : Cydin.Models.Release
releaseId int
return Cydin.Models.Release

GetReleases() public method

public GetReleases ( ) : IEnumerable
return IEnumerable

GetSettings() public static method

public static GetSettings ( ) : Cydin.Properties.Settings
return Cydin.Properties.Settings

GetSource() public method

public GetSource ( int sourceId ) : Cydin.Models.VcsSource
sourceId int
return Cydin.Models.VcsSource

GetSourceTag() public method

public GetSourceTag ( int sourceTagId ) : SourceTag
sourceTagId int
return SourceTag

GetSourceTags() public method

public GetSourceTags ( ) : IEnumerable
return IEnumerable

GetSources() public method

public GetSources ( int projectId ) : IEnumerable
projectId int
return IEnumerable

GetUser() public method

public GetUser ( int id ) : Cydin.Models.User
id int
return Cydin.Models.User

GetUserProjects() public method

public GetUserProjects ( ) : IEnumerable
return IEnumerable

GetVcsSource() public method

public GetVcsSource ( int id ) : Cydin.Models.VcsSource
id int
return Cydin.Models.VcsSource

GetVcsSourceTags() public method

public GetVcsSourceTags ( int sourceId ) : IEnumerable
sourceId int
return IEnumerable

PublishRelease() public method

public PublishRelease ( int sourceId ) : Cydin.Models.Release
sourceId int
return Cydin.Models.Release

RemoveProjectOwner() public method

public RemoveProjectOwner ( int projectId, int userId ) : void
projectId int
userId int
return void

ResetUserPermission() public method

public ResetUserPermission ( ApplicationPermission perm ) : void
perm ApplicationPermission
return void

SendMail() public method

public SendMail ( string subject, string body, ApplicationNotification notif ) : void
subject string
body string
notif ApplicationNotification
return void

SendMail() public method

public SendMail ( string subject, string body, ProjectNotification notif, int projectId ) : void
subject string
body string
notif ProjectNotification
projectId int
return void

SendMail() public method

public SendMail ( string subject, string body, int projectId ) : void
subject string
body string
projectId int
return void

SetApplicationNotification() public method

public SetApplicationNotification ( ApplicationNotification notif, bool enable ) : void
notif ApplicationNotification
enable bool
return void

SetApplicationNotification() public method

public SetApplicationNotification ( ProjectNotification notif, bool enable ) : void
notif ProjectNotification
enable bool
return void

SetProjectNotification() public method

public SetProjectNotification ( ProjectNotification notif, int projectId, bool enable ) : void
notif ProjectNotification
projectId int
enable bool
return void

SetPublished() public method

public SetPublished ( Cydin.Models.Release rel ) : void
rel Cydin.Models.Release
return void

SetSiteNotification() public method

public SetSiteNotification ( SiteNotification notif, bool enable ) : void
notif SiteNotification
enable bool
return void

SetSourceTagStatus() public method

public SetSourceTagStatus ( SourceTag stag, string status ) : void
stag SourceTag
status string
return void

SetUserApplicationPermission() public method

public SetUserApplicationPermission ( int userId, ApplicationPermission perms, bool enable ) : void
userId int
perms ApplicationPermission
enable bool
return void

SetUserPermission() public method

public SetUserPermission ( ApplicationPermission perm ) : void
perm ApplicationPermission
return void

UpdateProject() public method

public UpdateProject ( Cydin.Models.Project p ) : void
p Cydin.Models.Project
return void

UpdateSettings() public method

public UpdateSettings ( Cydin.Properties.Settings s ) : void
s Cydin.Properties.Settings
return void

UpdateSource() public method

public UpdateSource ( Cydin.Models.VcsSource s, bool rebuild ) : void
s Cydin.Models.VcsSource
rebuild bool
return void

UpdateSourceTag() public method

public UpdateSourceTag ( SourceTag stag ) : void
stag SourceTag
return void

UpdateUser() public method

public UpdateUser ( Cydin.Models.User user ) : void
user Cydin.Models.User
return void

UploadRelease() public method

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

UploadRelease() public method

public UploadRelease ( int projectId, byte fileData, string appVersion, string platforms ) : SourceTag
projectId int
fileData byte
appVersion string
platforms string
return SourceTag

ValidateProject() public method

public ValidateProject ( int projectId ) : void
projectId int
return void