Package org.activiti.rest.service.api.identity

Examples of org.activiti.rest.service.api.identity.UserResponse


   
    return response;
  }
 
  public UserResponse createUserResponse(User user, boolean incudePassword, String serverRootUrl) {
    UserResponse response = new UserResponse();
    response.setFirstName(user.getFirstName());
    response.setLastName(user.getLastName());
    response.setId(user.getId());
    response.setEmail(user.getEmail());
    response.setUrl(formatUrl(serverRootUrl, RestUrls.URL_USER, user.getId()));
   
    if(incudePassword) {
      response.setPassword(user.getPassword());
    }
   
    if(user.isPictureSet()){
      response.setPictureUrl(formatUrl(serverRootUrl, RestUrls.URL_USER_PICTURE, user.getId()));
    }
    return response;
  }
View Full Code Here

TOP

Related Classes of org.activiti.rest.service.api.identity.UserResponse

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.