Package com.yammer.dropwizard.views

Examples of com.yammer.dropwizard.views.View


      user.setSessionToken(null);
      userDao.saveOrUpdate(user);
      model.setUser(null);
    }

    View view = new PublicFreemarkerView<BaseModel>("common/home.ftl", model);

    // Remove the session token which will have the effect of logout
    return Response
      .ok()
      .cookie(replaceSessionTokenCookie(Optional.<User>absent()))
View Full Code Here


        // The session token has changed so we create the base model directly
        BaseModel model = new BaseModel();
        model.setUser(user);

        // Authenticated
        View view = new PrivateFreemarkerView<BaseModel>("private/home.ftl", model);

        // Refresh the session token cookie
        return Response
          .ok()
          .cookie(replaceSessionTokenCookie(Optional.of(user)))
View Full Code Here

      // (We'll delete the user but really this would just be an update)
      InMemoryUserCache.INSTANCE.hardDelete(user);
      model.setUser(null);
    }

    View view = new PublicFreemarkerView<BaseModel>("openid/logout.ftl", model);

    // Remove the session token which will have the effect of logout
    return Response
      .ok()
      .cookie(replaceSessionTokenCookie(Optional.<User>absent()))
View Full Code Here

        // The session token has changed so we create the base model directly
        BaseModel model = new BaseModel();
        model.setUser(user);

        // Authenticated
        View view = new PublicFreemarkerView<BaseModel>("private/home.ftl", model);

        // Refresh the session token cookie
        return Response
          .ok()
          .cookie(replaceSessionTokenCookie(Optional.of(user)))
View Full Code Here

TOP

Related Classes of com.yammer.dropwizard.views.View

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.