using System.Collections.Generic;
using System.Collections.Specialized;
using System.Web;
using System.Web.Profile;
namespace Neo.Afx.Security
{
///
/// The user profile
///
public partial class UserProfile : ProfileBase
{
public class Securable
{
public long SecurableID;
public bool CanRead;
public bool CanEdit;
}
///
/// Gets the current .
///
/// The current .
public static UserProfile Current
{
get
{
return (UserProfile)HttpContext.Current.Profile;
}
}
#region UserID
///
/// Gets or sets the user ID.
///
[SettingsAllowAnonymous(false)]
public long UserID
{
get
{
return (long)base["UserID"];
}
set
{
base["UserID"] = value;
}
}
#endregion
#region Email
///
/// Gets or sets the email.
///
[SettingsAllowAnonymous(false)]
public string Email
{
get
{
return (string)base["Email"];
}
set
{
base["Email"] = value;
}
}
#endregion
#region FirstName
///
/// Gets or sets the first name.
///
[SettingsAllowAnonymous(false)]
public string FirstName
{
get
{
return (string)base["FirstName"];
}
set
{
base["FirstName"] = value;
}
}
#endregion
#region LastName
///
/// Gets or sets the last name.
///
[SettingsAllowAnonymous(false)]
public string LastName
{
get
{
return (string)base["LastName"];
}
set
{
base["LastName"] = value;
}
}
#endregion
#region FullName
///
/// Gets or sets the full name.
///
[SettingsAllowAnonymous(false)]
public string FullName
{
get
{
return (string)base["FullName"];
}
set
{
base["FullName"] = value;
}
}
#endregion
#region UserProfileDocID
///
/// Gets or sets the User Profile Doc ID.
///
[SettingsAllowAnonymous(false)]
public long? UserProfileDocID
{
get
{
return (long?)base["UserProfileDocID"];
}
set
{
base["UserProfileDocID"] = value;
}
}
#endregion
#region OfficeLocationID
///
/// Gets or sets the User Profile Doc ID.
///
[SettingsAllowAnonymous(false)]
public long? OfficeLocationID
{
get
{
return (long?)base["OfficeLocationID"];
}
set
{
base["OfficeLocationID"] = value;
}
}
#endregion
#region OfficeLocationName
///
/// Gets or sets the Office Location Name.
///
[SettingsAllowAnonymous(false)]
public string OfficeLocationName
{
get
{
return (string)base["OfficeLocationName"];
}
set
{
base["OfficeLocationName"] = value;
}
}
#endregion
#region OfficeLocationName
///
/// Gets or sets the Is NPTR
///
[SettingsAllowAnonymous(false)]
public bool IsNPTR
{
get {
return (bool)base["IsNPTR"];
}
set {
base["IsNPTR"] = value;
}
}
#endregion
#region IsPasswordExpired
///
/// Gets or sets a value indicating whether password is expired.
///
[SettingsAllowAnonymous(false)]
public bool IsPasswordExpired
{
get
{
return (bool)base["IsPasswordExpired"];
}
set
{
base["IsPasswordExpired"] = value;
}
}
#endregion
#region Securables
///
/// Gets or sets the securables.
///
[SettingsAllowAnonymous(false)]
public IEnumerable Securables
{
get
{
return (IEnumerable)base["Securables"];
}
set
{
base["Securables"] = value;
}
}
#endregion
#region Roles
///
/// Gets or sets the roles.
///
[SettingsAllowAnonymous(false)]
public IEnumerable Roles
{
get
{
return (IEnumerable)base["Roles"];
}
set
{
base["Roles"] = value;
}
}
#endregion
#region Settings
///
/// Gets or sets the settings
///
[SettingsAllowAnonymous(false)]
public NameValueCollection Settings
{
get
{
return (NameValueCollection)base["Settings"];
}
set
{
base["Settings"] = value;
}
}
#endregion
#region WorkflowBuddies
///
/// Gets or sets the list of user ids where the logged in user is set as a buddy.
///
[SettingsAllowAnonymous(false)]
public List> WorkflowBuddies
{
get
{
return (List>)base["WorkflowBuddies"];
}
set
{
base["WorkflowBuddies"] = value;
}
}
#endregion
}
}