vub.starlab.ontoserver.database.ontologyobjects
Class User

java.lang.Object
  |
  +--vub.starlab.ontoserver.database.ontologyobjects.User
All Implemented Interfaces:
IOntologyObject, IUser

public class User
extends java.lang.Object
implements IUser


Constructor Summary
User(java.lang.String userName)
           
User(java.lang.String userName, java.lang.String name, java.lang.String email, java.lang.String password, boolean isAdministrator, java.lang.String affiliation)
           
 
Method Summary
 java.lang.String getAffiliation()
          Accessor method returns the affiliation for this user
 java.lang.String getEmail()
          Accessor method for getting the email address of this user
 java.lang.String getName()
          Accessor method for getting the name of this user
 java.lang.String getUserName()
          Accessor method for getting the username of this user
 boolean isAdministrator()
          Accessor method returns true if this user is an administrator, false otherwise
 void print()
          Prints the content of the ontology object
 void setAdministrator(boolean IsAdministrator)
          Accessor method to set whether or not this user is an administrator
 void setAffiliation(java.lang.String Affiliation)
          Accessor method to set the affiliation for this user
 void setEmail(java.lang.String email)
          Accessor method to set the email address for this user
 void setName(java.lang.String name)
          Accessor method to set the name for this user
 void setUserName(java.lang.String userName)
          Accessor method to set the username for this user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User(java.lang.String userName)

User

public User(java.lang.String userName,
            java.lang.String name,
            java.lang.String email,
            java.lang.String password,
            boolean isAdministrator,
            java.lang.String affiliation)
Method Detail

print

public void print()
Description copied from interface: IOntologyObject
Prints the content of the ontology object
Specified by:
print in interface IOntologyObject

getUserName

public java.lang.String getUserName()
Description copied from interface: IUser
Accessor method for getting the username of this user
Specified by:
getUserName in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Returns:
String the username of this user

getName

public java.lang.String getName()
Description copied from interface: IUser
Accessor method for getting the name of this user
Specified by:
getName in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Returns:
String the name of this user

getEmail

public java.lang.String getEmail()
Description copied from interface: IUser
Accessor method for getting the email address of this user
Specified by:
getEmail in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Returns:
String the email address of this user

isAdministrator

public boolean isAdministrator()
Description copied from interface: IUser
Accessor method returns true if this user is an administrator, false otherwise
Specified by:
isAdministrator in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Returns:
boolean true if this user is an administrator, false otherwise

getAffiliation

public java.lang.String getAffiliation()
Description copied from interface: IUser
Accessor method returns the affiliation for this user
Specified by:
getAffiliation in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Returns:
String the affiliation for this user

setUserName

public void setUserName(java.lang.String userName)
Description copied from interface: IUser
Accessor method to set the username for this user
Specified by:
setUserName in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Parameters:
userName - the new username for this user

setName

public void setName(java.lang.String name)
Description copied from interface: IUser
Accessor method to set the name for this user
Specified by:
setName in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Parameters:
name - the name for this user

setEmail

public void setEmail(java.lang.String email)
Description copied from interface: IUser
Accessor method to set the email address for this user
Specified by:
setEmail in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Parameters:
email - the new email address for this user

setAdministrator

public void setAdministrator(boolean IsAdministrator)
Description copied from interface: IUser
Accessor method to set whether or not this user is an administrator
Specified by:
setAdministrator in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Parameters:
isAdministrator - true if the user should be granted administrator privileges, false otherwise

setAffiliation

public void setAffiliation(java.lang.String Affiliation)
Description copied from interface: IUser
Accessor method to set the affiliation for this user
Specified by:
setAffiliation in interface IUser
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.IUser
Parameters:
affiliation - the new affiliation for this user