Example #1
0
 /// <summary>
 /// Creates new user identity.
 /// </summary>
 /// <param name="cr">user credentials</param>
 /// <param name="fromDatabase">if true, the object contents will be downloaded
 /// from the database</param>
 public UserIdentity(Credentials cr, bool fromDatabase)
     : this(fromDatabase ? FromDatabase(cr) : (UserIdentity)cr)
 {
     //nothing needed here
 }
Example #2
0
 public ActionResult UpdateInDatabase(Credentials cr, MachineIdentity mid, DirIdentity did,
                                      FileIdentity newFid)
 {
     throw new ActionException("File modification is not properly handled.",
                               ActionType.File);
 }
Example #3
0
 /// <summary>
 /// Creates new user identity.
 /// </summary>
 /// <param name="cr">user credentials</param>
 /// <param name="name">full name or some nickname of the user</param>
 /// <param name="email">email address of the user</param>
 public UserIdentity(Credentials cr, string name = null, string email = null)
     : this(cr.Login, cr.Password, name, email)
 {
     //nothing needed here
 }