org.bejug.javacareers.jobs.service
Interface AdminService


public interface AdminService

The User service implementation which will be called by the view. This can be any view including RUI and/or HTML web clients.

Version:
$Revision: 1.2 $ - $Date: 2005/09/13 08:10:55 $
Author:
Sven Schauwvliege (Last modified by $Author: schauwvliege $)

Method Summary
 void deleteCountry(java.lang.Integer id)
          delete a CountryDao.
 void deleteOfferType(java.lang.Integer id)
          delete a offerType.
 void deleteOrganisationType(java.lang.Integer id)
          delete a organisationType.
 void deleteProfile(java.lang.Integer id)
           
 void deleteUser(java.lang.Integer userId)
          delete a user.
 java.util.List getCountries()
          get a list of CountryDao.
 Country getCountry(java.lang.Integer id)
          gets a CountryDao by id.
 OfferType getOfferType(java.lang.Integer id)
          gets a OfferType by id.
 java.util.List getOfferTypes()
          get a list of offerType.
 OrganisationType getOrganisationType(java.lang.Integer id)
          gets a organisationType by id.
 java.util.List getOrganisationTypes()
          get a list of organisationType.
 java.util.List getProfiles()
           
 Region getRegionByName(java.lang.String region)
           
 java.util.Set getRegions(java.lang.String country)
           
 User getUser(java.lang.Integer id)
          gets a user by id.
 User getUserByUserName(java.lang.String userName)
          get a user.
 java.util.List getUsers()
          get a list of users.
 void storeCountry(Country country)
          Adds a CountryDao.
 void storeOfferType(OfferType offerType)
          Adds a offerType.
 void storeOrganisationType(OrganisationType organisationType)
          Adds a OrganisationType.
 void storeProfile(Profile profile)
           
 void storeUser(User user)
          stores a user.
 

Method Detail

storeUser

public void storeUser(User user)
               throws DuplicateUserNameException,
                      LastAdminException
stores a user.

Parameters:
user - A job user.
Throws:
DuplicateUserNameException - if username is already in use
LastAdminException - when trying to change the last admin to a normal user.

deleteUser

public void deleteUser(java.lang.Integer userId)
                throws LastAdminException
delete a user.

Parameters:
userId - the user to delete
Throws:
LastAdminException - if someone deletes the last admin.

getUserByUserName

public User getUserByUserName(java.lang.String userName)
get a user.

Parameters:
userName - String
Returns:
a user

getUsers

public java.util.List getUsers()
get a list of users.

Returns:
a list containing all the users

getUser

public User getUser(java.lang.Integer id)
gets a user by id.

Parameters:
id - the id of the user
Returns:
the wanted user

storeOrganisationType

public void storeOrganisationType(OrganisationType organisationType)
Adds a OrganisationType.

Parameters:
organisationType - A OrgnaisationType.

deleteOrganisationType

public void deleteOrganisationType(java.lang.Integer id)
delete a organisationType.

Parameters:
id - the id of the organisationType to delete Integer.

getOrganisationTypes

public java.util.List getOrganisationTypes()
get a list of organisationType.

Returns:
a list containing all the organisationType

getOrganisationType

public OrganisationType getOrganisationType(java.lang.Integer id)
gets a organisationType by id.

Parameters:
id - the id of the organisationType
Returns:
the wanted organisationType

deleteOfferType

public void deleteOfferType(java.lang.Integer id)
delete a offerType.

Parameters:
id - the id of the offerType to delete Integer.

storeOfferType

public void storeOfferType(OfferType offerType)
Adds a offerType.

Parameters:
offerType - A OfferType.

getOfferTypes

public java.util.List getOfferTypes()
get a list of offerType.

Returns:
a list containing all the offerType

getOfferType

public OfferType getOfferType(java.lang.Integer id)
gets a OfferType by id.

Parameters:
id - the id of the OfferType
Returns:
the wanted OfferType

deleteCountry

public void deleteCountry(java.lang.Integer id)
delete a CountryDao.

Parameters:
id - the id of the CountryDao to delete Integer.

storeCountry

public void storeCountry(Country country)
Adds a CountryDao.

Parameters:
country - the country to store.

getCountries

public java.util.List getCountries()
get a list of CountryDao.

Returns:
a list containing all the Countrys

getCountry

public Country getCountry(java.lang.Integer id)
gets a CountryDao by id.

Parameters:
id - the id of the CountryDao
Returns:
the wanted CountryDao

getRegions

public java.util.Set getRegions(java.lang.String country)
Parameters:
country - a String containing the country.
Returns:
a set of regions.

getRegionByName

public Region getRegionByName(java.lang.String region)
Parameters:
region - a String indication the regio to get.
Returns:
the wanted Region.

storeProfile

public void storeProfile(Profile profile)
Parameters:
profile - Profile

deleteProfile

public void deleteProfile(java.lang.Integer id)
Parameters:
id - the profile id

getProfiles

public java.util.List getProfiles()
Returns:
profiles List


Copyright © 2005-2006 BeJUG. All Rights Reserved.