|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The User service implementation which will be called by the view. This can be any view including RUI and/or HTML web clients.
| 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 |
public void storeUser(User user)
throws DuplicateUserNameException,
LastAdminException
user - A job user.
DuplicateUserNameException - if username
is already in use
LastAdminException - when trying to change the last admin to a normal
user.
public void deleteUser(java.lang.Integer userId)
throws LastAdminException
userId - the user to delete
LastAdminException - if someone deletes the last admin.public User getUserByUserName(java.lang.String userName)
userName - String
public java.util.List getUsers()
public User getUser(java.lang.Integer id)
id - the id of the user
public void storeOrganisationType(OrganisationType organisationType)
organisationType - A OrgnaisationType.public void deleteOrganisationType(java.lang.Integer id)
id - the id of the organisationType to delete Integer.public java.util.List getOrganisationTypes()
public OrganisationType getOrganisationType(java.lang.Integer id)
id - the id of the organisationType
public void deleteOfferType(java.lang.Integer id)
id - the id of the offerType to delete Integer.public void storeOfferType(OfferType offerType)
offerType - A OfferType.public java.util.List getOfferTypes()
public OfferType getOfferType(java.lang.Integer id)
id - the id of the OfferType
public void deleteCountry(java.lang.Integer id)
id - the id of the CountryDao to delete Integer.public void storeCountry(Country country)
country - the country to store.public java.util.List getCountries()
public Country getCountry(java.lang.Integer id)
id - the id of the CountryDao
public java.util.Set getRegions(java.lang.String country)
country - a String containing the country.
public Region getRegionByName(java.lang.String region)
region - a String indication the regio to get.
public void storeProfile(Profile profile)
profile - Profilepublic void deleteProfile(java.lang.Integer id)
id - the profile idpublic java.util.List getProfiles()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||