Package org.multibit.mbm.client.interfaces.rest.api.representations.hal.user

Examples of org.multibit.mbm.client.interfaces.rest.api.representations.hal.user.CustomerUserRepresentation


  @Timed
  public Response retrieveOwnUser(
    @RestrictedTo({Authority.ROLE_CUSTOMER})
    User customerUser) {

    Representation representation = new CustomerUserRepresentation().get(customerUser);

    return ok(representation);

  }
View Full Code Here


    User persistentUser = userReadService.saveOrUpdate(customerUser);

    // Provide a minimal representation to the client
    // so that they can see their secret key as a last resort
    // manual recovery option
    Representation representation = new CustomerUserRepresentation().get(persistentUser);
    URI location = uriInfo.getAbsolutePathBuilder().path(persistentUser.getApiKey()).build();

    return created(representation, location);

  }
View Full Code Here

TOP

Related Classes of org.multibit.mbm.client.interfaces.rest.api.representations.hal.user.CustomerUserRepresentation

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.