com.jurismarches.vradi.services.managers
Class ClientManager

java.lang.Object
  extended by com.jurismarches.vradi.services.managers.ClientManager

public class ClientManager
extends java.lang.Object

Class that contains the methods to retrieve the information related to the clients

Version:
$Revision: 1715 $ $Date: 2010-10-27 21:21:28 +0200 (mer., 27 oct. 2010) $
Author:
schorlet

Field Summary
protected  org.nuiton.wikitty.WikittyProxy wikittyProxy
           
 
Constructor Summary
ClientManager(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(java.lang.String clientId)
          Delete client, users associated and user groups association
 void deleteGroup(java.lang.String groupId)
          Delete group
 void deleteUser(java.lang.String userId)
          Delete users, and groups association
 java.util.List<Client> getAllClients()
           
 java.util.List<Group> getAllGroups()
           
 java.util.List<User> getAllUsers()
           
 Client getClient(java.lang.String clientId)
           
 Client getClientByUserId(java.lang.String userId)
           
 Group getGroup(java.lang.String groupId)
           
 java.util.List<Group> getGroupsForUser(java.lang.String userId)
           
 java.util.List<User> getGroupUsers(java.lang.String groupId)
           
 java.lang.String getQueryHistoryFile(java.lang.String id)
           
 User getUser(java.lang.String userId)
           
 java.util.List<User> getUsersByClient(java.lang.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

wikittyProxy

protected org.nuiton.wikitty.WikittyProxy wikittyProxy
Constructor Detail

ClientManager

public ClientManager(org.nuiton.wikitty.WikittyProxy wikittyProxy)
Method Detail

deleteClient

public void deleteClient(java.lang.String clientId)
                  throws VradiException
Delete client, users associated and user groups association

Parameters:
clientId - to delete
Throws:
VradiException - throw vradiException if exception is occured

deleteUser

public void deleteUser(java.lang.String userId)
                throws VradiException
Delete users, and groups association

Parameters:
userId - to delete
Throws:
VradiException - throw vradiException if exception is occured

deleteGroup

public void deleteGroup(java.lang.String groupId)
                 throws VradiException
Delete group

Parameters:
groupId - to delete
Throws:
VradiException - throw vradiException if exception is occured

getUser

public User getUser(java.lang.String userId)
             throws VradiException
Throws:
VradiException

getClient

public Client getClient(java.lang.String clientId)
                 throws VradiException
Throws:
VradiException

getGroup

public Group getGroup(java.lang.String groupId)
               throws VradiException
Throws:
VradiException

getGroupUsers

public java.util.List<User> getGroupUsers(java.lang.String groupId)
                                   throws VradiException
Throws:
VradiException

getUsersByClient

public java.util.List<User> getUsersByClient(java.lang.String clientId)
Find all users for a client.

Parameters:
clientId - client wikitty id
Returns:
all users for client

getGroupsForUser

public java.util.List<Group> getGroupsForUser(java.lang.String userId)
                                       throws VradiException
Throws:
VradiException

getClientByUserId

public Client getClientByUserId(java.lang.String userId)
                         throws VradiException
Throws:
VradiException

getAllClients

public java.util.List<Client> getAllClients()
                                     throws VradiException
Throws:
VradiException

getAllUsers

public java.util.List<User> getAllUsers()
                                 throws VradiException
Throws:
VradiException

getAllGroups

public java.util.List<Group> getAllGroups()
                                   throws VradiException
Throws:
VradiException

archiveQueries

public void archiveQueries(QueryMaker queryMaker)
                    throws VradiException
Archives the queries of a user, client or group in a RSS file.

Parameters:
queryMaker - the query maker whose queries are archived
Throws:
VradiException - throw vradiException if exception is occured

getQueryHistoryFile

public java.lang.String getQueryHistoryFile(java.lang.String id)


Copyright © 2009-2010 JurisMarches. All Rights Reserved.