Package org.hoteia.qalingo.core.pojo.customer

Examples of org.hoteia.qalingo.core.pojo.customer.CustomerPojo


        Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
        if (!(authentication instanceof AnonymousAuthenticationToken)) {
            String currentCustomerName = authentication.getName();
           
            if(StringUtils.isNotEmpty(currentCustomerName)){
                CustomerPojo customerPojo = customerPojoService.getCustomerByLoginOrEmail(currentCustomerName);
                customerPojoResponse.setCustomerPojo(customerPojo);
            }
        }
       
        // TODO : ERROR
View Full Code Here


    @GET
    @Path("permalink/{permalink}")
    @Produces(MediaType.APPLICATION_JSON)
    public CustomerPojoResponse getCustomerByPermalink(@PathParam("permalink") final String permalink) {
        CustomerPojoResponse customerPojoResponse = new CustomerPojoResponse();
        CustomerPojo customerPojo = customerPojoService.getCustomerByPermalink(permalink);
        customerPojoResponse.setCustomerPojo(customerPojo);
        return customerPojoResponse;
    }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.pojo.customer.CustomerPojo

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.