PSE 2000 Group 4

jobmatch.business.provider.account
Class AccountManager

java.lang.Object
  |
  +--jobmatch.business.provider.account.AccountManager

public final class AccountManager
extends Object

Controls access to accounts

Since:
May 8 2000
Version:
$Revision: 1.12 $

Method Summary
(package private) static void ()
           
 boolean candidateUsernameExists(String username)
          Checks if the specified username exists in the DB
 boolean companyUsernameExists(String username)
          Checks if the specified username exists in the DB
 void createCandidateAccount(String username, String passphrase, String eMail)
          Creates a new Candidate account
 void createCompanyAccount(String username, String passphrase, String eMail)
          Creates a new Company account
 void createProviderAccount(String username, String passphrase, String eMail)
          Creates a new Provider account
 CandidateAccount getCandidateAccount(String username)
          Returns the account of the candidate with the specified username
 CompanyAccount getCompanyAccount(String username)
          Returns the account of the company with the specified username
 ProviderAccount getProviderAccount(String username)
          Returns the account of the provider with the specified username
static AccountManager getUniqueInstance()
           
 boolean isValidCandidateLogin(String username, String passphrase)
          Checks if the specified Login is valid
 boolean isValidCompanyLogin(String username, String passphrase)
          Checks if the specified Login is valid
 boolean isValidProviderLogin(String username, String passphrase)
          Checks if the specified Login is valid
 boolean providerUsernameExists(String username)
          Checks if the specified username exists in the DB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

static void ()

getUniqueInstance

public static AccountManager getUniqueInstance()

isValidCandidateLogin

public boolean isValidCandidateLogin(String username,
                                     String passphrase)
Checks if the specified Login is valid

getCandidateAccount

public CandidateAccount getCandidateAccount(String username)
Returns the account of the candidate with the specified username

createCandidateAccount

public void createCandidateAccount(String username,
                                   String passphrase,
                                   String eMail)
Creates a new Candidate account

candidateUsernameExists

public boolean candidateUsernameExists(String username)
Checks if the specified username exists in the DB

isValidCompanyLogin

public boolean isValidCompanyLogin(String username,
                                   String passphrase)
Checks if the specified Login is valid

getCompanyAccount

public CompanyAccount getCompanyAccount(String username)
Returns the account of the company with the specified username

createCompanyAccount

public void createCompanyAccount(String username,
                                 String passphrase,
                                 String eMail)
Creates a new Company account

companyUsernameExists

public boolean companyUsernameExists(String username)
Checks if the specified username exists in the DB

isValidProviderLogin

public boolean isValidProviderLogin(String username,
                                    String passphrase)
Checks if the specified Login is valid

getProviderAccount

public ProviderAccount getProviderAccount(String username)
Returns the account of the provider with the specified username

createProviderAccount

public void createProviderAccount(String username,
                                  String passphrase,
                                  String eMail)
Creates a new Provider account

providerUsernameExists

public boolean providerUsernameExists(String username)
Checks if the specified username exists in the DB

PSE 2000 Group 4