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

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


    // Persist the User with cascade for the Customer
    User persistentUser = userReadService.saveOrUpdate(user);

    // Provide a minimal representation to the client
    Representation representation = new ClientUserRepresentation().get(persistentUser);
    URI location = UriBuilder.fromResource(CustomerUserResource.class).build();

    return created(representation, location);

  }
View Full Code Here


    // Persist the User with cascade for the Customer
    User persistentUser = userReadService.saveOrUpdate(user);

    // Provide a minimal representation to the client
    Representation representation = new ClientUserRepresentation().get(persistentUser);
    URI location = uriInfo.getAbsolutePathBuilder().path(persistentUser.getApiKey()).build();

    return created(representation, location);

  }
View Full Code Here

    WebFormAuthenticationDto authenticationRequest) {

    Optional<User> requestedUser = userReadService.getByCredentials(authenticationRequest.getUsername(), authenticationRequest.getPasswordDigest());
    ResourceAsserts.assertPresent(requestedUser,"requestedUser");

    Representation representation = new ClientUserRepresentation().get(requestedUser.get());

    return ok(representation);

  }
View Full Code Here

TOP

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

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.