|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.managers.ClientManager
public class ClientManager
Class that contains the methods to retrieve the information related to the clients
| Field Summary | |
|---|---|
protected org.nuiton.util.ApplicationConfig |
config
|
protected org.nuiton.wikitty.WikittyProxy |
wikittyProxy
|
| Constructor Summary | |
|---|---|
ClientManager(org.nuiton.util.ApplicationConfig config,
org.nuiton.wikitty.WikittyProxy wikittyProxy)
|
|
| Method Summary | |
|---|---|
void |
archiveQueries(QueryMaker queryMaker)
Archives the queries of a user, client or group in a RSS file. |
void |
deleteClient(String clientId)
Delete client, users associated and user groups association |
void |
deleteGroup(String groupId)
Delete group |
void |
deleteUser(String userId)
Delete users, and groups association |
List<Client> |
getAllClients()
|
List<Group> |
getAllGroups()
|
List<User> |
getAllUsers()
|
Client |
getClient(String clientId)
|
Client |
getClientByUserId(String userId)
|
Group |
getGroup(String groupId)
|
List<Group> |
getGroupsForUser(String userId)
|
List<User> |
getGroupUsers(String groupId)
|
String |
getQueryHistoryFile(String id)
|
User |
getUser(String userId)
|
List<User> |
getUsersByClient(String clientId)
Find all users for a client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.nuiton.util.ApplicationConfig config
protected org.nuiton.wikitty.WikittyProxy wikittyProxy
| Constructor Detail |
|---|
public ClientManager(org.nuiton.util.ApplicationConfig config,
org.nuiton.wikitty.WikittyProxy wikittyProxy)
| Method Detail |
|---|
public void deleteClient(String clientId)
throws VradiException
clientId - to delete
VradiException - throw vradiException if exception is occured
public void deleteUser(String userId)
throws VradiException
userId - to delete
VradiException - throw vradiException if exception is occured
public void deleteGroup(String groupId)
throws VradiException
groupId - to delete
VradiException - throw vradiException if exception is occured
public User getUser(String userId)
throws VradiException
VradiException
public Client getClient(String clientId)
throws VradiException
VradiException
public Group getGroup(String groupId)
throws VradiException
VradiException
public List<User> getGroupUsers(String groupId)
throws VradiException
VradiExceptionpublic List<User> getUsersByClient(String clientId)
clientId - client wikitty id
public List<Group> getGroupsForUser(String userId)
throws VradiException
VradiException
public Client getClientByUserId(String userId)
throws VradiException
VradiException
public List<Client> getAllClients()
throws VradiException
VradiException
public List<User> getAllUsers()
throws VradiException
VradiException
public List<Group> getAllGroups()
throws VradiException
VradiException
public void archiveQueries(QueryMaker queryMaker)
throws VradiException
queryMaker - the query maker whose queries are archived
VradiException - throw vradiException if exception is occuredpublic String getQueryHistoryFile(String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||