added admin flag to user

This commit is contained in:
Sebastian Sdorra
2010-11-25 18:57:21 +01:00
parent 823c7e0bd4
commit afc56635ea
5 changed files with 48 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder =
{
"name", "displayName", "mail", "password", "type"
"name", "displayName", "mail", "password", "admin", "type"
})
public class User
implements TypedObject, Principal, Cloneable, Validateable, Serializable
@@ -267,6 +267,17 @@ public class User
return type;
}
/**
* Method description
*
*
* @return
*/
public boolean isAdmin()
{
return admin;
}
/**
* Method description
*
@@ -283,6 +294,17 @@ public class User
//~--- set methods ----------------------------------------------------------
/**
* Method description
*
*
* @param admin
*/
public void setAdmin(boolean admin)
{
this.admin = admin;
}
/**
* Method description
*
@@ -341,6 +363,9 @@ public class User
//~--- fields ---------------------------------------------------------------
/** Field description */
private boolean admin;
/** Field description */
private String displayName;