Package com.cosmicpush.app.domain.clients.actions

Examples of com.cosmicpush.app.domain.clients.actions.CreateClientAction


    if (config.getAccountStore().getByClientName(clientName) != null) {
      throw ApiException.badRequest(String.format("The client name %s already exists.", clientName));
    }

    CreateClientAction action = new CreateClientAction(clientName, clientPassword);

    ApiClient apiClient = account.add(action);
    config.getAccountStore().update(account);

    return Response.seeOther(new URI("manage/api-client/"+apiClient.getClientName())).build();
View Full Code Here

TOP

Related Classes of com.cosmicpush.app.domain.clients.actions.CreateClientAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.