|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StorageService
User: couteau Date: 30 nov. 2010
| Method Summary | |
|---|---|
AgentSkill |
addSkill(String agentId)
|
EntitiesList |
addSkill(String agentId,
List<String> skillIds,
String frequencyId)
|
EntitiesList |
addSkill(String agentId,
Skill skill,
String frequencyId)
|
void |
adminCreationIfDoNotExist()
|
void |
clear()
|
AgentSkill |
createAgentSkill(String agentId)
|
Cati |
createCati()
Return a new cati created in database. |
Department |
createDepartment()
Return a new department created in database. |
Frequency |
createFrequency()
Return a new frequency created in database. |
void |
createPrivateGroupIfDoNotExist()
|
Skill |
createSkill(String parentId)
Return a new user created in database. |
Unit |
createUnit()
Return a new unit created in database. |
User |
createUser()
Return a new user created in database. |
void |
deleteCati(Cati cati)
Delete a cati |
void |
deleteDepartment(Department department)
Delete a department |
void |
deleteEntity(org.nuiton.wikitty.entities.BusinessEntity entity)
|
void |
deleteFrequency(Frequency frequency,
boolean force)
Delete a frequency |
void |
deleteSkill(Skill skill)
Delete a skill |
void |
deleteUnit(Unit unit)
Delete a unit |
void |
deleteUser(User user)
Delete a user |
void |
exportEntitiesReferentiel(Writer writer)
|
void |
exportSkillsReferentiel(Writer writer)
|
void |
exportUserBase(Writer writer)
|
String |
getAdminEmail()
Get the administrator email address from config |
Agent |
getAgent(String id)
|
EntitiesList |
getAgentAndDependencies(String id)
|
AgentSkill |
getAgentSkill(String skillId)
|
List<Skill> |
getAllSkills()
|
Cati |
getCati(String id)
Get a cati with its id |
List<Cati> |
getCatis()
Get all the catis. |
List<Skill> |
getChildrenSkill(String id)
|
org.nuiton.wikitty.WikittyClient |
getClient()
|
Department |
getDepartment(String id)
Get a department with its id |
List<Department> |
getDepartments()
Get all the departments. |
List<Department> |
getDepartments(String id)
Get all departments for a unit |
List<Frequency> |
getFrequencies()
Get all the frequencies. |
Frequency |
getFrequency(String id)
Get a frequency with its id |
org.nuiton.wikitty.entities.WikittyUser |
getLoggedInUser()
|
String |
getPath(String id)
|
Map<String,Skill> |
getRootSkill(List<String> skills)
|
List<Skill> |
getRootSkills()
|
Skill |
getSkill(String id)
Get a skill with its id |
EntitiesList |
getSkills(String agentId)
Get the skills for an agent |
Unit |
getUnit(String id)
Get a unit with its id |
List<Unit> |
getUnits()
Get all units |
List<Unit> |
getUnits(String id)
Get all the units for a department |
User |
getUser(String id)
Get a user with its id |
List<User> |
getUsers()
Get all the users. |
void |
importCSV(Reader reader)
|
boolean |
isAdmin()
|
boolean |
isAdmin(String id)
|
boolean |
isAgent()
|
Boolean |
isLoggedIn()
|
Boolean |
login(String login,
String password)
Log the user in |
void |
logout()
|
boolean |
moveSkill(String destination,
String node)
|
void |
removeSkill(String skillId)
|
Agent |
saveAgent(Locale locale,
String context,
Agent agent)
Save an agent in database. |
void |
saveAgentSkill(Locale locale,
AgentSkill skill)
|
Cati |
saveCati(Locale locale,
Cati cati)
Save a cati in database. |
Department |
saveDepartment(Locale locale,
Department department)
Save a department in database. |
Department |
saveDepartment(Locale locale,
Department department,
List<String> units)
Save a department in database. |
void |
saveEntity(org.nuiton.wikitty.entities.BusinessEntity entity)
|
Frequency |
saveFrequency(Locale locale,
Frequency frequency)
Save a frequency in database. |
EntitiesList |
saveMySkills(Locale locale,
List<AgentSkill> skills)
|
Skill |
saveSkill(Locale locale,
Skill skill)
Save a skill in database. |
Unit |
saveUnit(Locale locale,
Unit unit)
Save a unit in database. |
Unit |
saveUnit(Locale locale,
Unit unit,
List<String> departments)
Save a unit in database. |
User |
saveUser(Locale locale,
String context,
User user)
Save a user in database. |
EntitiesList |
searchSkill(String search,
String cati,
String department,
String unit,
String frequency)
|
EntitiesList |
searchUser(String search,
String cati,
String department,
String unit,
String frequency)
|
boolean |
sendPassword(Locale locale,
String userId)
|
void |
setAdmin(String agentId,
boolean admin)
|
Agent |
setAgent(User user)
|
void |
setClient(org.nuiton.wikitty.WikittyClient client)
|
void |
setPrivateSkills(List<String> ids)
|
void |
setPublicSkills(List<String> ids)
|
void |
unsetAgent(String id)
|
| Method Detail |
|---|
org.nuiton.wikitty.WikittyClient getClient()
void setClient(org.nuiton.wikitty.WikittyClient client)
List<Cati> getCatis()
Cati saveCati(Locale locale,
Cati cati)
throws InvalidEntityException
cati - the cati to save
InvalidEntityException - if the cati is not valid and cannot be savedCati createCati()
void deleteCati(Cati cati)
cati - the cati to deleteCati getCati(String id)
id - the cati to get's id
List<Frequency> getFrequencies()
Frequency saveFrequency(Locale locale,
Frequency frequency)
throws InvalidEntityException
frequency - the frequency to save
AlreadyExistingException - if a frequency with the same name already
exist in database
InvalidEntityExceptionFrequency createFrequency()
void deleteFrequency(Frequency frequency,
boolean force)
throws UsedException
frequency - the frequency to deleteforce - true to force the deletion even if used
UsedException - if not forcing deletion and frequency still used in skillsFrequency getFrequency(String id)
id - the frequency to get's id
List<User> getUsers()
User saveUser(Locale locale,
String context,
User user)
throws InvalidEntityException
user - the user to save
InvalidEntityExceptionUser createUser()
void deleteUser(User user)
user - the user to deleteUser getUser(String id)
id - the user to get's id
Agent getAgent(String id)
EntitiesList getAgentAndDependencies(String id)
Agent setAgent(User user)
void unsetAgent(String id)
Agent saveAgent(Locale locale,
String context,
Agent agent)
throws InvalidEntityException
agent - the agent to save
InvalidEntityException
Skill saveSkill(Locale locale,
Skill skill)
throws InvalidEntityException
locale - the user locale for error messagesskill - the skill to save
InvalidEntityException - if the skill is not validSkill createSkill(String parentId)
parentId - the parent skill wikitty Id
void deleteSkill(Skill skill)
throws UsedException
skill - the skill to delete
UsedException - If the skill is used and we cannot delete the skillSkill getSkill(String id)
id - the skill to get's id
List<Skill> getChildrenSkill(String id)
Boolean login(String login,
String password)
login - the user loginpassword - the user password
void logout()
Boolean isLoggedIn()
Department saveDepartment(Locale locale,
Department department)
throws InvalidEntityException
department - the department to save
InvalidEntityException
Department saveDepartment(Locale locale,
Department department,
List<String> units)
throws InvalidEntityException
department - the department to saveunits - the units linked to the department
InvalidEntityExceptionDepartment createDepartment()
void deleteDepartment(Department department)
department - the department to deleteDepartment getDepartment(String id)
id - the department to get's id
List<Department> getDepartments()
List<Department> getDepartments(String id)
id - the unit id
Unit saveUnit(Locale locale,
Unit unit)
throws InvalidEntityException
unit - the unit to save
InvalidEntityException
Unit saveUnit(Locale locale,
Unit unit,
List<String> departments)
throws InvalidEntityException
unit - the unit to savedepartments - the departments that got the unit
InvalidEntityExceptionUnit createUnit()
void deleteUnit(Unit unit)
unit - the unit to deleteUnit getUnit(String id)
id - the unit to get's id
List<Unit> getUnits(String id)
id - the department id
List<Unit> getUnits()
void saveEntity(org.nuiton.wikitty.entities.BusinessEntity entity)
void deleteEntity(org.nuiton.wikitty.entities.BusinessEntity entity)
String getAdminEmail()
AgentSkill createAgentSkill(String agentId)
void saveAgentSkill(Locale locale,
AgentSkill skill)
throws InvalidEntityException
InvalidEntityExceptionboolean isAdmin()
boolean isAdmin(String id)
boolean isAgent()
void adminCreationIfDoNotExist()
EntitiesList getSkills(String agentId)
agentId - the wikittyId of the agent to get the skills of
AgentSkill addSkill(String agentId)
EntitiesList addSkill(String agentId,
Skill skill,
String frequencyId)
EntitiesList addSkill(String agentId,
List<String> skillIds,
String frequencyId)
void removeSkill(String skillId)
org.nuiton.wikitty.entities.WikittyUser getLoggedInUser()
EntitiesList saveMySkills(Locale locale,
List<AgentSkill> skills)
throws InvalidEntityException
InvalidEntityExceptionAgentSkill getAgentSkill(String skillId)
EntitiesList searchUser(String search,
String cati,
String department,
String unit,
String frequency)
EntitiesList searchSkill(String search,
String cati,
String department,
String unit,
String frequency)
void setAdmin(String agentId,
boolean admin)
void importCSV(Reader reader)
void exportSkillsReferentiel(Writer writer)
void exportEntitiesReferentiel(Writer writer)
void exportUserBase(Writer writer)
String getPath(String id)
void createPrivateGroupIfDoNotExist()
void setPrivateSkills(List<String> ids)
void setPublicSkills(List<String> ids)
void clear()
boolean moveSkill(String destination,
String node)
boolean sendPassword(Locale locale,
String userId)
Map<String,Skill> getRootSkill(List<String> skills)
List<Skill> getAllSkills()
List<Skill> getRootSkills()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||