Package com.appspot.gaeforum309.pathing

Examples of com.appspot.gaeforum309.pathing.Path


  public void initTemplate(PageInfo pageInfo) {
    addSection(DBCategory.tagName, new Template.ITemplateSection() {

      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
        DBCategory category = (DBCategory)object;
       
        response.append("<div id=\"forum71\" class=\"main-head\"><h2 class=\"hn\"><span><a href='"+ Page.getUrl(category) +"'>"+ category.getTitre() +"</a></span></h2></div>");
        response.append("<div class=\"main-subhead\">" +
            "<p class=\"item-summary\"><span><strong class=\"subject-title\">Forum</strong> in this category with details of <strong class=\"info-topics\">Conversation</strong>, <strong class=\"info-posts\">Last</strong>, <strong class=\"info-lastpost\">Date</strong></span></p>" +
            "</div>" +
            "<div id=\"category1\" class=\"main-content main-category\">");
      }
View Full Code Here


   
    addSection(DBCategory.tagName, new Template.ITemplateSection() {
     
      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
        DBCategory category = (DBCategory)object;
       
        response.append("<H2><a href='"+ ForumPages.Page.getUrl(category) +"'>" + category.getTitre()+"</a></H2><b>"+category.getDescription()+"</b>");
        response.append("<table border='1' width='100%'><tr><th width='10px'></th><th>Topic</th></tr>");
      }
     
      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {
View Full Code Here

        String author="";
       
       
        if(lcomments.size() > 0)
        {
          DBComment c = lcomments.get(0);
          DBUser a = c.getAuthor();
          author=a.getEmail();
        }
       
        // TODO: Counter of view in DBConversation
        // TODO: Search last post
        // TODO: Replace all id by real GAEForum id, or remove it !
        // TODO: Add the "em closed" only if topic is closed
        // TODO: Add a possibility to close a topic
        response.append("<div id=\"topic24927\" class=\"main-item odd main-first-item sticky closed\">"+
            "<span class=\"icon sticky closed\"><!-- --></span>"+
            "<div class=\"item-subject\">"+
            "<h3 class=\"hn\"><span class=\"item-num\">1</span> <span class=\"item-status\"><em class=\"closed\">Closed</em>:</span> <a href=\""+ Page.getUrl(conversation) +"\">"+ conversation.getTitle() +"</a></h3>"+
            "<p><span class=\"item-starter\">by <cite>"+ author  +"</cite></span> <span class=\"item-nav\">( <span>Pages&nbsp;</span><a class=\"first-item\" href=\""+ Page.getUrl(conversation) +"\">1</a>&nbsp;<a href=\""+ Page.getUrl(conversation) +"\">2</a> )</span></p>"+
            "</div>" +
            "<ul class=\"item-info\">" +
            "<li class=\"info-replies\"><strong>"+ conversation.getChilds().size() +"</strong> <span class=\"label\">replies</span></li>"+
            "<li class=\"info-views\"><strong>X</strong> <span class=\"label\">views</span></li>"+
            "<li class=\"info-lastpost\"><span class=\"label\">Last post</span> <strong><a href=\"/\">X</a></strong> <cite>by X</cite></li>"+
            "</ul>"+
            "</div>");
      }
    });
    addSection(DBComment.tagName, new Template.ITemplateSection() {

      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
       
      }

      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {

      }

      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBComment comment = (DBComment) object;
        DBUser author = comment.getAuthor();
        DBConversation conversation = (DBConversation) path.getObjectByTagName(DBConversation.tagName);
       
        // TODO: ajouter firstpost, lastpost, ou rien, pour la class du premier div
        // TODO: Add a class of user (Admin, and personalized class ?)
        // TODO: User can be online or not.
        // TODO: Determiner le nombre de posts d'un author
        // TODO: Ajouter une methode de formatage des messages(directement HTML ? ATTENTION au risque d'injection de JavaScript)
        // TODO: Add a signature on comments, and on profile.
        response.append("<div class=\"post odd topicpost\">"+
            "<div id=\"p146029\" class=\"posthead\">"+
            "<h3 class=\"hn post-ident\"><span class=\"post-num\">1</span> <span class=\"post-byline\"><span>Topic by </span><em class=\"group_color_7\"><a title=\"Go to "+ author.getEmail() +"'s profile\" href=\"/\">"+ author.getEmail() +"</a></em></span> <span class=\"post-link\"><a class=\"permalink\" rel=\"bookmark\" title=\"Permanent link to this post\" href=\""+ Page.getUrl(comment) +"\">"+ comment.getDateDiscription().toLocaleString() +"</a></span></h3>"+
            "</div>"+
            "<div class=\"postbody\">"+
            "<div class=\"post-author\">"+
            "<ul class=\"author-ident\">"+
            "<li class=\"username\"><a title=\"Go to "+ author.getEmail() +"'s profile\" href=\"/\">"+ author.getEmail() +"</a></li>"+
            "<li class=\"usertitle\"><span>Standard user</span></li>"+
            "<li class=\"userstatus\"><span>Offline</span></li>"+
            "</ul>"+
            "<ul class=\"author-info\">"+
            "<li><span>Registered: <strong>"+ author.getDateInscription() +"</strong></span></li>"+
            "<li><span>Posts: <strong>X</strong></span></li>"+
            "</ul>"+
            "</div>"+
            "<div class=\"post-entry\">"+
            "<h4 id=\"pc146029\" class=\"entry-title hn\">"+ conversation.getTitle()  +"</h4>"+
            "<div class=\"entry-content\">"+
            "<p>"+ comment.getTextComment() +"</p>"+
            "<div class=\"sig-content\"><span class=\"sig-line\"><!-- --></span>Not implemented yes</div>"+
            "</div>"+
            "</div>"+
            "</div>"+
            "</div>");
View Full Code Here

      public void body(StringBuilder response, Path path, IPathable object) {
        DBConversation conversation = (DBConversation)object;
       
        @SuppressWarnings("unchecked")
        List<DBComment> lcomment = (List<DBComment>) conversation.getChilds(0, 1);
        DBComment dbcomment = null;
        if(lcomment.size() == 0)
          return;
        dbcomment = lcomment.get(0);
       
        response.append("<tr><td>X</td><td><b><a href='" + ForumPages.Page.getUrl(conversation) + "'>"+  conversation.getTitle() + "</a></b><br />" + conversation.getDescription() + "</td><td>"+ dbcomment.getAuthor().getEmail() +"</td><td>"+ dbcomment.getDateDiscription() +"</td>");

      }
    });
   
    addSection(DBComment.tagName, new Template.ITemplateSection() {
     
      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
       
      }
     
      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {
       
      }
     
      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBComment comment = (DBComment) object;
        response.append("<tr><td width='5px'>" + comment.getAuthor().getEmail() + "<br />" + comment.getDateDiscription() + "</td><td><div>"+ comment.getTextComment().replaceAll("\n", "<br />") +"</div></td></tr>");       
      }
    });
  }
View Full Code Here

    });
    addSection(DBConversation.tagName, new Template.ITemplateSection() {

      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
        DBConversation conversation = (DBConversation) object;
       
        // TODO: Ajouter paging
        response.append("<div id=\"brd-pagepost-top\" class=\"main-pagepost gen-content\">"+
            "<p class=\"paging\"><span class=\"pages\">Pages</span> <strong class=\"first-item\">1</strong></p>"+
            "<p class=\"posting\">You must <a href=\"http://punbb.informer.com/forums/login/\">login</a> or <a href=\"http://punbb.informer.com/forums/register/\">register</a> to post a reply</p>"+
            "</div>");
       
        response.append("<div class=\"main-head\">"+
            "<p class=\"options\"><span class=\"feed first-item\"><a class=\"feed\" href=\"/\">RSS topic feed</a></span></p>"+
            "<h2 class=\"hn\"><span><span class=\"item-info\">Posts: "+ conversation.getChilds().size() +"</span></span></h2>"+
            "</div>");
       
        response.append("<div id=\"forum68\" class=\"main-content main-topic\">");
       
      }

      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {
        response.append("</div>");
       
        if(Action.actionAuthorized(object, Action.ActionType.createChild))
        {
          Action action = Action.buildAction(object, Action.ActionType.createChild);
         
          TemplatePunBB.writeActionAsForm(action, response);
        }
      }

      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBConversation conversation = (DBConversation) object;
        @SuppressWarnings("unchecked")
        List<DBComment> lcomments = (List<DBComment>) conversation.getChilds(0, 1);
        String author="";
       
       
        if(lcomments.size() > 0)
        {
          DBComment c = lcomments.get(0);
          DBUser a = c.getAuthor();
          author=a.getEmail();
        }
       
        // TODO: Counter of view in DBConversation
        // TODO: Search last post
        // TODO: Replace all id by real GAEForum id, or remove it !
        // TODO: Add the "em closed" only if topic is closed
        // TODO: Add a possibility to close a topic
        response.append("<div id=\"topic24927\" class=\"main-item odd main-first-item sticky closed\">"+
            "<span class=\"icon sticky closed\"><!-- --></span>"+
            "<div class=\"item-subject\">"+
            "<h3 class=\"hn\"><span class=\"item-num\">1</span> <span class=\"item-status\"><em class=\"closed\">Closed</em>:</span> <a href=\""+ Page.getUrl(conversation) +"\">"+ conversation.getTitle() +"</a></h3>"+
            "<p><span class=\"item-starter\">by <cite>"+ author  +"</cite></span> <span class=\"item-nav\">( <span>Pages&nbsp;</span><a class=\"first-item\" href=\""+ Page.getUrl(conversation) +"\">1</a>&nbsp;<a href=\""+ Page.getUrl(conversation) +"\">2</a> )</span></p>"+
            "</div>" +
            "<ul class=\"item-info\">" +
            "<li class=\"info-replies\"><strong>"+ conversation.getChilds().size() +"</strong> <span class=\"label\">replies</span></li>"+
            "<li class=\"info-views\"><strong>X</strong> <span class=\"label\">views</span></li>"+
            "<li class=\"info-lastpost\"><span class=\"label\">Last post</span> <strong><a href=\"/\">X</a></strong> <cite>by X</cite></li>"+
            "</ul>"+
            "</div>");
      }
    });
    addSection(DBComment.tagName, new Template.ITemplateSection() {

      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
       
      }

      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {

      }

      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBComment comment = (DBComment) object;
        DBUser author = comment.getAuthor();
        DBConversation conversation = (DBConversation) path.getObjectByTagName(DBConversation.tagName);
       
        // TODO: ajouter firstpost, lastpost, ou rien, pour la class du premier div
        // TODO: Add a class of user (Admin, and personalized class ?)
        // TODO: User can be online or not.
        // TODO: Determiner le nombre de posts d'un author
        // TODO: Ajouter une methode de formatage des messages(directement HTML ? ATTENTION au risque d'injection de JavaScript)
        // TODO: Add a signature on comments, and on profile.
        response.append("<div class=\"post odd topicpost\">"+
            "<div id=\"p146029\" class=\"posthead\">"+
            "<h3 class=\"hn post-ident\"><span class=\"post-num\">1</span> <span class=\"post-byline\"><span>Topic by </span><em class=\"group_color_7\"><a title=\"Go to "+ author.getEmail() +"'s profile\" href=\"/\">"+ author.getEmail() +"</a></em></span> <span class=\"post-link\"><a class=\"permalink\" rel=\"bookmark\" title=\"Permanent link to this post\" href=\""+ Page.getUrl(comment) +"\">"+ comment.getDateDiscription().toLocaleString() +"</a></span></h3>"+
            "</div>"+
            "<div class=\"postbody\">"+
            "<div class=\"post-author\">"+
            "<ul class=\"author-ident\">"+
            "<li class=\"username\"><a title=\"Go to "+ author.getEmail() +"'s profile\" href=\"/\">"+ author.getEmail() +"</a></li>"+
            "<li class=\"usertitle\"><span>Standard user</span></li>"+
            "<li class=\"userstatus\"><span>Offline</span></li>"+
            "</ul>"+
            "<ul class=\"author-info\">"+
            "<li><span>Registered: <strong>"+ author.getDateInscription() +"</strong></span></li>"+
            "<li><span>Posts: <strong>X</strong></span></li>"+
            "</ul>"+
            "</div>"+
            "<div class=\"post-entry\">"+
            "<h4 id=\"pc146029\" class=\"entry-title hn\">"+ conversation.getTitle()  +"</h4>"+
            "<div class=\"entry-content\">"+
            "<p>"+ comment.getTextComment() +"</p>"+
            "<div class=\"sig-content\"><span class=\"sig-line\"><!-- --></span>Not implemented yes</div>"+
            "</div>"+
            "</div>"+
View Full Code Here

        response.append("<table border='1' width='100%'><tr><th width='5px'>Author</th><th>Message</th></tr>");
      }
     
      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {
        DBConversation conv = (DBConversation) path.getObjectByTagName(DBConversation.tagName);
        response.append("</table>");
        if(ForumAPI.loggedUser())
        {
          response.append("<p>Comment this discussion:</p>" +
              "<form action='/forumAction' method='post' >" +
              "<input type='hidden' name='action' value='addComment' />" +
              "<input type='hidden' name='conversationKey' value='"+ conv.getKeyStr() +"' />" +
              "<textarea style='width:100%' rows=7 name='comment'></textarea><br />" +
              "<input type='submit' />" +
              "</form>");
        }
        else
        {
          response.append("<p>Please log you for comment this conversation.</p>");
        }
      }
     
      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBConversation conversation = (DBConversation)object;
       
        @SuppressWarnings("unchecked")
        List<DBComment> lcomment = (List<DBComment>) conversation.getChilds(0, 1);
        DBComment dbcomment = null;
        if(lcomment.size() == 0)
          return;
        dbcomment = lcomment.get(0);
       
        response.append("<tr><td>X</td><td><b><a href='" + ForumPages.Page.getUrl(conversation) + "'>"+  conversation.getTitle() + "</a></b><br />" + conversation.getDescription() + "</td><td>"+ dbcomment.getAuthor().getEmail() +"</td><td>"+ dbcomment.getDateDiscription() +"</td>");

      }
    });
   
    addSection(DBComment.tagName, new Template.ITemplateSection() {
View Full Code Here

    });
    addSection(DBTopic.tagName, new Template.ITemplateSection() {

      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
        DBTopic topic = (DBTopic) object;
        // Affichage des pages
        /*
        response.append("<div " +
            "id=\"brd-pagepost-top\" class=\"main-pagepost gen-content\">"+
            "<p class=\"paging\"><span class=\"pages\">Pages</span> <strong class=\"first-item\">1</strong> <a href=\"http://punbb.informer.com/forums/forum/48/news/page/2/\">2</a> <a href=\"http://punbb.informer.com/forums/forum/48/news/page/3/\">3</a> <a href=\"http://punbb.informer.com/forums/forum/48/news/page/4/\">4</a> <a href=\"http://punbb.informer.com/forums/forum/48/news/page/2/\">Next</a></p>"+
            "<p class=\"posting\">You must <a href=\"http://punbb.informer.com/forums/login/\">login</a> or <a href=\"http://punbb.informer.com/forums/register/\">register</a> to post a new topic</p>"+
            "</div>"
            );
            */
       
       
        // TODO: Remplacer getChilds().size() par mieux
        // TODO: Paging doit influer les valeurs affichées
        response.append("<div class=\"main-head\">"+
            "<p class=\"options\"><span class=\"feed first-item\"><a class=\"feed\" href=\"/\">RSS forum feed</a></span></p>"+
            "<h2 class=\"hn\"><span><span class=\"item-info\">Topics: 1 to "+ topic.getChilds().size() +" of "+ topic.getChilds().size() +"</span></span></h2>"+
            "</div>");
       
        response.append("<div class=\"main-subhead\">" +
            "<p class=\"item-summary forum-views\"><span><strong class=\"subject-title\">Topics</strong> in this forum with details of <strong class=\"info-replies\">replies</strong>, <strong class=\"info-views\">views</strong>, <strong class=\"info-lastpost\">last post</strong>.</span></p>" +
            "</div>");
       
        response.append("<div id=\"forum48\" class=\"main-content main-forum forum-views\">");
      }

      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {
        response.append("</div>");
       
        if(Action.actionAuthorized(object, Action.ActionType.createChild))
        {
          Action action = Action.buildAction(object, Action.ActionType.createChild);
         
          TemplatePunBB.writeActionAsForm(action, response);
        }
      }

      // TODO: Add a method on IPathable to count childs objects instead of getChilds().size()
      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBTopic topic = (DBTopic)object;
       
        response.append("<div id=\"forum48\" class=\"main-item odd main-first-item\">" +
            "<span class=\"icon \"><!-- --></span>" +
            "<div class=\"item-subject\">" +
            "<h3 class=\"hn\"><a href=\""+ ForumPages.Page.getUrl(topic) +"\"><span>"+ topic.getTitle() +"</span></a></h3>" +
            "<p>"+topic.getDescription()+"</p>" +
            "</div>" +
            "<ul class=\"item-info\">" +
            "<li class=\"info-topics\"><strong>"+ topic.getChilds().size() +"</strong> <span class=\"label\">topics</span></li>"+
            "<li class=\"info-posts\"><strong>X</strong> <span class=\"label\">posts</span></li>" +
            "<li class=\"info-lastpost\"><span class=\"label\">Last post:</span> <strong><a href=\"http://punbb.informer.com/forums/post/145563/#p145563\">2012-06-28 07:06</a></strong> <cite>by CReatiVe4w3</cite></li>" +
            "</ul>" +
            "</div>");
      }
View Full Code Here

   
    addSection(DBTopic.tagName, new Template.ITemplateSection() {
     
      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
        DBTopic topic = (DBTopic)object;
       
        response.append("<H2><a href='"+ ForumPages.Page.getUrl(topic)+"'>" + topic.getTitle() + "</a></H2>");
        response.append("<table border='1' width='100%'><tr><th width='10px'></th><th>Subject</th><th>Author</th><th>Last message</th></th>");
      }
     
      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {
        DBTopic topic = (DBTopic)object;
       
        response.append("<H2><a href='"+ForumPages.Page.getUrl(topic)+"'>" + topic.getTitle() + "</a></H2>");
        response.append("</table>");
      }
     
      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBTopic topic = (DBTopic)object;
       
        response.append("<tr><td>X</td><td><b><a href='"+ ForumPages.Page.getUrl(topic) +"'>"+topic.getTitle()+"</a>:</b> "+topic.getDescription()+"</b></td></tr>");
      }
    });
   
    addSection(DBConversation.tagName, new Template.ITemplateSection() {
     
View Full Code Here

       
       
        if(lcomments.size() > 0)
        {
          DBComment c = lcomments.get(0);
          DBUser a = c.getAuthor();
          author=a.getEmail();
        }
       
        // TODO: Counter of view in DBConversation
        // TODO: Search last post
        // TODO: Replace all id by real GAEForum id, or remove it !
        // TODO: Add the "em closed" only if topic is closed
        // TODO: Add a possibility to close a topic
        response.append("<div id=\"topic24927\" class=\"main-item odd main-first-item sticky closed\">"+
            "<span class=\"icon sticky closed\"><!-- --></span>"+
            "<div class=\"item-subject\">"+
            "<h3 class=\"hn\"><span class=\"item-num\">1</span> <span class=\"item-status\"><em class=\"closed\">Closed</em>:</span> <a href=\""+ Page.getUrl(conversation) +"\">"+ conversation.getTitle() +"</a></h3>"+
            "<p><span class=\"item-starter\">by <cite>"+ author  +"</cite></span> <span class=\"item-nav\">( <span>Pages&nbsp;</span><a class=\"first-item\" href=\""+ Page.getUrl(conversation) +"\">1</a>&nbsp;<a href=\""+ Page.getUrl(conversation) +"\">2</a> )</span></p>"+
            "</div>" +
            "<ul class=\"item-info\">" +
            "<li class=\"info-replies\"><strong>"+ conversation.getChilds().size() +"</strong> <span class=\"label\">replies</span></li>"+
            "<li class=\"info-views\"><strong>X</strong> <span class=\"label\">views</span></li>"+
            "<li class=\"info-lastpost\"><span class=\"label\">Last post</span> <strong><a href=\"/\">X</a></strong> <cite>by X</cite></li>"+
            "</ul>"+
            "</div>");
      }
    });
    addSection(DBComment.tagName, new Template.ITemplateSection() {

      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
       
      }

      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {

      }

      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBComment comment = (DBComment) object;
        DBUser author = comment.getAuthor();
        DBConversation conversation = (DBConversation) path.getObjectByTagName(DBConversation.tagName);
       
        // TODO: ajouter firstpost, lastpost, ou rien, pour la class du premier div
        // TODO: Add a class of user (Admin, and personalized class ?)
        // TODO: User can be online or not.
        // TODO: Determiner le nombre de posts d'un author
        // TODO: Ajouter une methode de formatage des messages(directement HTML ? ATTENTION au risque d'injection de JavaScript)
        // TODO: Add a signature on comments, and on profile.
        response.append("<div class=\"post odd topicpost\">"+
            "<div id=\"p146029\" class=\"posthead\">"+
            "<h3 class=\"hn post-ident\"><span class=\"post-num\">1</span> <span class=\"post-byline\"><span>Topic by </span><em class=\"group_color_7\"><a title=\"Go to "+ author.getEmail() +"'s profile\" href=\"/\">"+ author.getEmail() +"</a></em></span> <span class=\"post-link\"><a class=\"permalink\" rel=\"bookmark\" title=\"Permanent link to this post\" href=\""+ Page.getUrl(comment) +"\">"+ comment.getDateDiscription().toLocaleString() +"</a></span></h3>"+
            "</div>"+
            "<div class=\"postbody\">"+
            "<div class=\"post-author\">"+
            "<ul class=\"author-ident\">"+
            "<li class=\"username\"><a title=\"Go to "+ author.getEmail() +"'s profile\" href=\"/\">"+ author.getEmail() +"</a></li>"+
            "<li class=\"usertitle\"><span>Standard user</span></li>"+
            "<li class=\"userstatus\"><span>Offline</span></li>"+
            "</ul>"+
            "<ul class=\"author-info\">"+
            "<li><span>Registered: <strong>"+ author.getDateInscription() +"</strong></span></li>"+
            "<li><span>Posts: <strong>X</strong></span></li>"+
            "</ul>"+
            "</div>"+
            "<div class=\"post-entry\">"+
            "<h4 id=\"pc146029\" class=\"entry-title hn\">"+ conversation.getTitle()  +"</h4>"+
View Full Code Here

      response.append("<span>You are not logged in.</span> <span>Please <a href='"+ ForumAPI.userLoginLogoutUrl(Page.getUrl(path.object())) +"'>login</a> with your Google Account.</span></p>");
      //response.append("<p id=\"visit-links\" class=\"options\"><span id=\"visit-recent\" class=\"first-item\"><a href=\"http://punbb.informer.com/forums/search/recent/\" title=\"Find topics which contain recent posts.\">Active topics</a></span> <span id=\"visit-unanswered\"><a href=\"http://punbb.informer.com/forums/search/unanswered/\" title=\"Find topics which have not been replied to.\">Unanswered topics</a></span>");
    }
    else
    {
      DBUser user = ForumAPI.userLogin();
     
      response.append("<p><span>Welcome "+ user.getEmail() +". </span>");
      if(user.isFirstLogin())
      {
        // TODO: Add an API to get first login form URI.
        response.append("<span>This is your first login, please fill our <a href='/firstLogin'>first login form</a>. </span>");
      }
     
View Full Code Here

TOP

Related Classes of com.appspot.gaeforum309.pathing.Path

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.