Added setSiteId() which also updates the dirty mask.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1368 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: User.java,v 1.9 2003/07/20 01:43:59 mdb Exp $
|
||||
// $Id: User.java,v 1.10 2004/01/13 23:02:04 ray Exp $
|
||||
//
|
||||
// samskivert library - useful routines for java programs
|
||||
// Copyright (C) 2001 Michael Bayne
|
||||
@@ -89,6 +89,15 @@ public class User
|
||||
_dirty.setModified("email");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the user's site id.
|
||||
*/
|
||||
public void setSiteId (int siteId)
|
||||
{
|
||||
this.siteId = siteId;
|
||||
_dirty.setModified("siteId");
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares the supplied (unencrypted) password with the password
|
||||
* associated with this user record.
|
||||
|
||||
Reference in New Issue
Block a user