public interface

UserAccount

implements VARSObject
vars.UserAccount
Known Indirect Subclasses

Summary

Constants
String PASSWORD_DEFAULT Description of the Field
String PROP_AFFILIATION
String PROP_FIRST_NAME
String PROP_LAST_NAME
String PROP_PASSWORD
String PROP_ROLE
String PROP_USER_NAME
String USERNAME_DEFAULT Description of the Field
Public Methods
abstract boolean authenticate(String unencryptedPassword)
abstract String getAffiliation()
abstract String getEmail()
abstract String getFirstName()
abstract String getLastName()
abstract String getPassword()
Gets the password for this UserAccount.
abstract String getRole()
Gets the KB Maint Role for this UserAccount.
abstract String getUserName()
Gets the user name for this UserAccount.
abstract boolean isAdministrator()
abstract boolean isMaintainer()
abstract boolean isReadOnly()
abstract void setAffiliation(String affiliation)
abstract void setEmail(String email)
abstract void setFirstName(String firstName)
abstract void setLastName(String lastName)
abstract void setPassword(String unencryptedPassword)
Sets the password for this UserAccount.
abstract void setRole(String role)
Sets the permissible Role for this UserAccount.
abstract void setUserName(String userName)
Sets the username for this UserAccount.
[Expand]
Inherited Methods
From interface vars.VARSObject

Constants

public static final String PASSWORD_DEFAULT

Description of the Field

Constant Value: "guest"

public static final String PROP_AFFILIATION

Constant Value: "affiliation"

public static final String PROP_FIRST_NAME

Constant Value: "firstName"

public static final String PROP_LAST_NAME

Constant Value: "lastName"

public static final String PROP_PASSWORD

Constant Value: "password"

public static final String PROP_ROLE

Constant Value: "role"

public static final String PROP_USER_NAME

Constant Value: "userName"

public static final String USERNAME_DEFAULT

Description of the Field

Constant Value: "default"

Public Methods

public abstract boolean authenticate (String unencryptedPassword)

public abstract String getAffiliation ()

public abstract String getEmail ()

public abstract String getFirstName ()

public abstract String getLastName ()

public abstract String getPassword ()

Gets the password for this UserAccount.

Returns
  • The password for this UserAccount.

public abstract String getRole ()

Gets the KB Maint Role for this UserAccount.

Returns
  • The KB Maint Role for this UserAccount.

public abstract String getUserName ()

Gets the user name for this UserAccount.

Returns
  • The user name for this UserAccount.

public abstract boolean isAdministrator ()

public abstract boolean isMaintainer ()

public abstract boolean isReadOnly ()

public abstract void setAffiliation (String affiliation)

public abstract void setEmail (String email)

public abstract void setFirstName (String firstName)

public abstract void setLastName (String lastName)

public abstract void setPassword (String unencryptedPassword)

Sets the password for this UserAccount.

Parameters
unencryptedPassword The password for this UserAccount. Implementations of this method should encrypt the passwrd

public abstract void setRole (String role)

Sets the permissible Role for this UserAccount.

Parameters
role The role to set.

public abstract void setUserName (String userName)

Sets the username for this UserAccount.

Parameters
userName The new userName value