Package com.wesabe.grendel.entities

Examples of com.wesabe.grendel.entities.User


  public Response delete(@Context Credentials credentials,
    @PathParam("user_id") String userId, @PathParam("owner_id") String ownerId,
    @PathParam("name") String name) {
   
    final Session session = credentials.buildSession(userDAO, userId);
    final User owner = findUser(ownerId);
    final Document doc = findDocument(owner, name);
   
    checkLinkage(doc, session.getUser());
   
    doc.unlinkUser(session.getUser());
View Full Code Here


      throw new WebApplicationException(Status.NOT_FOUND);
    }
  }
 
  private User findUser(String id) {
    final User user = userDAO.findById(id);
    if (user == null) {
      throw new WebApplicationException(Status.NOT_FOUND);
    }
   
    return user;
View Full Code Here

TOP

Related Classes of com.wesabe.grendel.entities.User

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.