Changed TODO comment to CSLATODO

This commit is contained in:
Rich
2010-09-27 16:07:23 +00:00
parent 6c6676375a
commit fe23fd84e3
60 changed files with 159 additions and 159 deletions

View File

@@ -173,7 +173,7 @@ namespace VEPROMS.CSLA.Library
if (_StartDate != tmp.ToString())
{
_StartDate = tmp.ToString();
// TODO: Any Cross Property Validation
// CSLATODO: Any Cross Property Validation
}
}
catch
@@ -203,7 +203,7 @@ namespace VEPROMS.CSLA.Library
if (_EndDate != tmp.ToString())
{
_EndDate = tmp.ToString();
// TODO: Any Cross Property Validation
// CSLATODO: Any Cross Property Validation
}
}
catch
@@ -275,7 +275,7 @@ namespace VEPROMS.CSLA.Library
}
}
private byte[] _LastChanged = new byte[8];//timestamp
// TODO: Check RolePermission.GetIdValue to assure that the ID returned is unique
// CSLATODO: Check RolePermission.GetIdValue to assure that the ID returned is unique
/// <summary>
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
/// </summary>
@@ -284,7 +284,7 @@ namespace VEPROMS.CSLA.Library
{
return MyRolePermissionUnique; // Absolutely Unique ID
}
// TODO: Replace base RolePermission.ToString function as necessary
// CSLATODO: Replace base RolePermission.ToString function as necessary
/// <summary>
/// Overrides Base ToString
/// </summary>
@@ -354,7 +354,7 @@ namespace VEPROMS.CSLA.Library
ValidationRules.AddRule(
Csla.Validation.CommonRules.StringMaxLength,
new Csla.Validation.CommonRules.MaxLengthRuleArgs("UsrID", 100));
// TODO: Add other validation rules
// CSLATODO: Add other validation rules
}
private static bool StartDateValid(RolePermission target, Csla.Validation.RuleArgs e)
{
@@ -397,7 +397,7 @@ namespace VEPROMS.CSLA.Library
#region Authorization Rules
protected override void AddAuthorizationRules()
{
//TODO: Who can read/write which fields
//CSLATODO: Who can read/write which fields
//AuthorizationRules.AllowRead(PID, "<Role(s)>");
//AuthorizationRules.AllowRead(PermLevel, "<Role(s)>");
//AuthorizationRules.AllowWrite(PermLevel, "<Role(s)>");
@@ -420,18 +420,18 @@ namespace VEPROMS.CSLA.Library
}
public static bool CanAddObject()
{
// TODO: Can Add Authorization
// CSLATODO: Can Add Authorization
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
return true;
}
public static bool CanGetObject()
{
// TODO: CanGet Authorization
// CSLATODO: CanGet Authorization
return true;
}
public static bool CanDeleteObject()
{
// TODO: CanDelete Authorization
// CSLATODO: CanDelete Authorization
//bool result = false;
//if (Csla.ApplicationContext.User.IsInRole("ProjectManager"))result = true;
//if (Csla.ApplicationContext.User.IsInRole("Administrator"))result = true;
@@ -440,7 +440,7 @@ namespace VEPROMS.CSLA.Library
}
public static bool CanEditObject()
{
// TODO: CanEdit Authorization
// CSLATODO: CanEdit Authorization
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
return true;
}
@@ -475,7 +475,7 @@ namespace VEPROMS.CSLA.Library
private RolePermission(int permLevel, int versionType, int permValue)
{
MarkAsChild();
// TODO: Add any initialization & defaults
// CSLATODO: Add any initialization & defaults
_PID = Permission.NextPID;
_PermAD = _RolePermissionExtension.DefaultPermAD;
_StartDate = _RolePermissionExtension.DefaultStartDate;
@@ -623,7 +623,7 @@ namespace VEPROMS.CSLA.Library
// {
// partial class RolePermissionExtension : extensionBase
// {
// // TODO: Override automatic defaults
// // CSLATODO: Override automatic defaults
// public virtual int DefaultPermAD
// {
// get { return 0; }