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

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


  @Timed
  public Response retrieveOwnUser(
    @RestrictedTo({Authority.ROLE_SUPPLIER})
    User supplierUser) {

    Representation representation = new SupplierUserRepresentation().get(supplierUser);

    return ok(representation);

  }
View Full Code Here


    User persistentUser = userReadService.saveOrUpdate(supplierUser);

    // 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 SupplierUserRepresentation().get(supplierUser);
    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.SupplierUserRepresentation

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.