Examples of SupplierUserRepresentation


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

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

    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
Copyright © 2018 www.massapi.com. 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.