@Service public class ClientCreationService extends Object
| Constructor and Description |
|---|
ClientCreationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
createGlobalClient(String clientName,
String timeZoneId)
Create the global client.
|
void |
initGlobalClient()
Initialize the global client on startup.
|
void |
initializeGlobalClient(UserVO adminAccount,
Map<ApplicationProperty,String> params)
Initializes the global client
|
void |
updateClientName(String clientName)
Update the name of the current client.
|
public void createGlobalClient(String clientName, String timeZoneId) throws InvalidClientIdException
clientName - The name of the global client.timeZoneId - The ID of the time zone, used for the global client.InvalidClientIdException - in case of an invalid client idpublic void initGlobalClient()
throws ClientInitializationException
ClientInitializationException - in case the initialization failedpublic void initializeGlobalClient(UserVO adminAccount, Map<ApplicationProperty,String> params) throws Exception
clientName - Name of the global client.adminAccount - the first administrator of the global clientparams - list of application parameters to setException - in case of an errorpublic void updateClientName(String clientName) throws AuthorizationException, ClientNotFoundException
clientName - the new name to setAuthorizationException - in case the current user is not client managerClientNotFoundException - in case the current client got removedCopyright © 2019 Communote team. All rights reserved.