From: <mar...@us...> - 2010-02-13 21:22:07
|
Revision: 29 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=29&view=rev Author: marioarce Date: 2010-02-13 21:22:01 +0000 (Sat, 13 Feb 2010) Log Message: ----------- Ticket #5 renamed concept from 'Tracker' to 'Project User'. Project User includes a 'project manager', a 'project team members', and any other project stakeholder The following are examples of project stakeholders: * Project manager * Project team members * Upper management * Project customer * Resource Managers * Product user group * Project testers * Sponsor Modified Paths: -------------- source/trunk/CronosControl/Libraries/BusinessLogic/BusinessLogic.csproj source/trunk/CronosControl/Libraries/BusinessLogic/CronosControlContext.cs source/trunk/CronosControl/Libraries/BusinessLogic/Profile/CronosControlMembershipProvider.cs source/trunk/CronosControl/Libraries/BusinessLogic/Profile/CronosControlRoleProvider.cs source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControl.BusinessLogic.dll source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControl.BusinessLogic.pdb source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControl.Common.dll source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControl.Common.pdb source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControlBusinessClassLibrary.dll source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControlBusinessClassLibrary.pdb source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControlClassLibrary.dll source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControlClassLibrary.pdb source/trunk/CronosControl/Libraries/BusinessLogic/obj/Debug/CronosControl.BusinessLogic.dll source/trunk/CronosControl/Libraries/BusinessLogic/obj/Debug/CronosControl.BusinessLogic.pdb Modified: source/trunk/CronosControl/Libraries/BusinessLogic/BusinessLogic.csproj =================================================================== --- source/trunk/CronosControl/Libraries/BusinessLogic/BusinessLogic.csproj 2010-02-13 21:18:21 UTC (rev 28) +++ source/trunk/CronosControl/Libraries/BusinessLogic/BusinessLogic.csproj 2010-02-13 21:22:01 UTC (rev 29) @@ -62,9 +62,9 @@ <Compile Include="CronosControlContext.cs" /> <Compile Include="Profile\CronosControlMembershipProvider.cs" /> <Compile Include="Profile\CronosControlRoleProvider.cs" /> + <Compile Include="ProjectUser\ProjectUserManager.cs" /> + <Compile Include="ProjectUser\ProjectUserSession.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> - <Compile Include="Tracker\TrackerManager.cs" /> - <Compile Include="Tracker\TrackerSession.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\CronosControlBusinessClassLibrary\CronosControlBusinessClassLibrary.csproj"> Modified: source/trunk/CronosControl/Libraries/BusinessLogic/CronosControlContext.cs =================================================================== --- source/trunk/CronosControl/Libraries/BusinessLogic/CronosControlContext.cs 2010-02-13 21:18:21 UTC (rev 28) +++ source/trunk/CronosControl/Libraries/BusinessLogic/CronosControlContext.cs 2010-02-13 21:22:01 UTC (rev 29) @@ -17,7 +17,7 @@ using System.Threading; using System.Web; using CronosControl.Model; -using CronosControl.BusinessLogic.Tracker; +using CronosControl.BusinessLogic.ProjectUser; using CronosControl.BusinessLogic.Configuration.Settings; namespace CronosControl.BusinessLogic @@ -28,12 +28,12 @@ public partial class CronosControlContext { #region Constants - private const string CONST_TRACKERSESSION = "CronosControl.TrackerSession"; - private const string CONST_TRACKERSESSIONCOOKIE = "CronosControl.TrackerSessionGUIDCookie"; + private const string CONST_PROJECTUSERSESSION = "CronosControl.ProjectUserSession"; + private const string CONST_PROJECTUSERSESSIONCOOKIE = "CronosControl.ProjectUserSessionGUIDCookie"; #endregion #region Fields - private User currentTracker; + private User currentProjectUser; private bool isAdmin; private HttpContext context = HttpContext.Current; private Project currentProject; @@ -52,31 +52,31 @@ #region Methods /// <summary> - /// Save tracker session to data source + /// Save project user session to data source /// </summary> - /// <returns>Saved tracker session</returns> - private TrackerSession SaveSessionToDatabase() + /// <returns>Saved project user session</returns> + private ProjectUserSession SaveSessionToDatabase() { return null; } /// <summary> - /// Gets tracker session + /// Gets project user session /// </summary> /// <param name="createInDatabase">Create session in database if no one exists</param> - /// <returns>Tracker session</returns> - public TrackerSession GetSession(bool createInDatabase) + /// <returns>Project User session</returns> + public ProjectUserSession GetSession(bool createInDatabase) { return this.GetSession(createInDatabase, null); } /// <summary> - /// Gets tracker session + /// Gets project user session /// </summary> /// <param name="createInDatabase">Create session in database if no one exists</param> /// <param name="sessionId">Session identifier</param> - /// <returns>Tracker session</returns> - public TrackerSession GetSession(bool createInDatabase, Guid? sessionId) + /// <returns>Project user session</returns> + public ProjectUserSession GetSession(bool createInDatabase, Guid? sessionId) { return null; } @@ -87,16 +87,16 @@ public void SessionSaveToClient() { if (HttpContext.Current != null && this.Session != null) - SetCookie(HttpContext.Current.ApplicationInstance, CONST_TRACKERSESSIONCOOKIE, this.Session.TrackerSessionGUID.ToString()); + SetCookie(HttpContext.Current.ApplicationInstance, CONST_PROJECTUSERSESSIONCOOKIE, this.Session.ProjectUserSessionGUID.ToString()); } /// <summary> - /// Reset tracker session + /// Reset project user session /// </summary> public void ResetSession() { if (HttpContext.Current != null) - SetCookie(HttpContext.Current.ApplicationInstance, CONST_TRACKERSESSIONCOOKIE, string.Empty); + SetCookie(HttpContext.Current.ApplicationInstance, CONST_PROJECTUSERSESSIONCOOKIE, string.Empty); this.Session = null; this.User = null; this["CronosControl.SessionReseted"] = true; @@ -195,7 +195,7 @@ /// <summary> /// Gets or sets the current session /// </summary> - public TrackerSession Session + public ProjectUserSession Session { get { @@ -203,7 +203,7 @@ } set { - Current[CONST_TRACKERSESSION] = value; + Current[CONST_PROJECTUSERSESSION] = value; } } @@ -214,11 +214,11 @@ { get { - return this.currentTracker; + return this.currentProjectUser; } set { - this.currentTracker = value; + this.currentProjectUser = value; } } Modified: source/trunk/CronosControl/Libraries/BusinessLogic/Profile/CronosControlMembershipProvider.cs =================================================================== --- source/trunk/CronosControl/Libraries/BusinessLogic/Profile/CronosControlMembershipProvider.cs 2010-02-13 21:18:21 UTC (rev 28) +++ source/trunk/CronosControl/Libraries/BusinessLogic/Profile/CronosControlMembershipProvider.cs 2010-02-13 21:22:01 UTC (rev 29) @@ -20,7 +20,7 @@ using System.Collections.Generic; using System.Collections.Specialized; using CronosControl.Common.Utils; -using CronosControl.BusinessLogic.Tracker; +using CronosControl.BusinessLogic.ProjectUser; using CronosControl.Model; namespace CronosControl.BusinessLogic.Profile @@ -85,8 +85,8 @@ { MembershipUser user = null; - // add tracker - TrackerManager.AddTracker(email, username, password, username, "-", isApproved, out status); + // add project user + ProjectUserManager.AddProjectUser(email, username, password, username, "-", isApproved, out status); // user key string userKey = string.Empty; @@ -185,7 +185,7 @@ /// <returns>A MembershipUser object populated with the specified user's information from the data source.</returns> public override MembershipUser GetUser(string username, bool userIsOnline) { - User user = TrackerManager.GetTrackerByUsername(username); + User user = ProjectUserManager.GetProjectUserByUsername(username); if (user == null) return null; @@ -212,7 +212,7 @@ /// <returns>The user name associated with the specified e-mail address. If no match is found, return null.</returns> public override string GetUserNameByEmail(string email) { - User user = TrackerManager.GetTrackerByEmail(email); + User user = ProjectUserManager.GetProjectUserByEmail(email); if (user == null) return null; return user.Username; @@ -345,8 +345,8 @@ /// <returns>true if the specified username and password are valid; otherwise, false.</returns> public override bool ValidateUser(string username, string password) { - User user = TrackerManager.GetTrackerByUsername(username); - return TrackerManager.Login(username, password); + User user = ProjectUserManager.GetProjectUserByUsername(username); + return ProjectUserManager.Login(username, password); } #endregion Modified: source/trunk/CronosControl/Libraries/BusinessLogic/Profile/CronosControlRoleProvider.cs =================================================================== --- source/trunk/CronosControl/Libraries/BusinessLogic/Profile/CronosControlRoleProvider.cs 2010-02-13 21:18:21 UTC (rev 28) +++ source/trunk/CronosControl/Libraries/BusinessLogic/Profile/CronosControlRoleProvider.cs 2010-02-13 21:22:01 UTC (rev 29) @@ -20,7 +20,7 @@ using System.Collections.Specialized; using System.Configuration.Provider; using CronosControl.Model; -using CronosControl.BusinessLogic.Tracker; +using CronosControl.BusinessLogic.ProjectUser; namespace CronosControl.BusinessLogic.Profile { @@ -43,7 +43,7 @@ { try { - TrackerManager.AddUsersToRoles(usernames, roleNames); + ProjectUserManager.AddUsersToRoles(usernames, roleNames); } catch (Exception ex) { @@ -98,11 +98,11 @@ /// <returns>A string array containing the names of all the roles that the specified user is in for the configured applicationName.</returns> public override string[] GetRolesForUser(string username) { - User user = TrackerManager.GetTrackerByUsername(username); + User user = ProjectUserManager.GetProjectUserByUsername(username); if (user == null) return new string[] { }; - return TrackerManager.GetRolesForUser(username); + return ProjectUserManager.GetRolesForUser(username); } /// <summary> @@ -172,11 +172,11 @@ /// <returns>true if the specified user is in the specified role for the configured applicationName; otherwise, false.</returns> public override bool IsUserInRole(string username, string roleName) { - User user = TrackerManager.GetTrackerByUsername(username); + User user = ProjectUserManager.GetProjectUserByUsername(username); if (user == null) return false; - return TrackerManager.IsUserInRole(username, roleName); + return ProjectUserManager.IsUserInRole(username, roleName); } /// <summary> Modified: source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControl.BusinessLogic.dll =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControl.BusinessLogic.pdb =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControl.Common.dll =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControl.Common.pdb =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControlBusinessClassLibrary.dll =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControlBusinessClassLibrary.pdb =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControlClassLibrary.dll =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/bin/Debug/CronosControlClassLibrary.pdb =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/obj/Debug/CronosControl.BusinessLogic.dll =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/Libraries/BusinessLogic/obj/Debug/CronosControl.BusinessLogic.pdb =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |