-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-xi8ix GWTC 1.3.3.3 now supports -Dmaven.compiler.gwt.skip=true to skip GWT compile. -Supervisor Search re-indexing -Supervisor mailing list viewer
- Loading branch information
Showing
14 changed files
with
241 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mvn install:install-file -DgroupId=com.google -DartifactId=gwt-google-apis -Dversion=$1 -Dpackaging=jar -Dfile=build/lib/gwt-google-apis.jar -DgeneratePom=true | ||
mvn install:install-file -Dclassifier=sources -DgroupId=com.google -DartifactId=gwt-google-apis -Dversion=$1 -Dpackaging=jar -Dfile=build/lib/gwt-google-apis.jar -DgeneratePom=true | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mvn install:install-file -DgroupId=com.google -DartifactId=gwt-servlet -Dversion=$1 -Dpackaging=jar -Dfile=build/staging/gwt-linux-0.0.0/gwt-servlet.jar -DgeneratePom=true | ||
mvn install:install-file -DgroupId=com.google -DartifactId=gwt-user -Dversion=$1 -Dpackaging=jar -Dfile=build/staging/gwt-linux-0.0.0/gwt-user.jar -DgeneratePom=true | ||
mvn install:install-file -Dclassifier=sources -DgroupId=com.google -DartifactId=gwt-user -Dversion=$1 -Dpackaging=jar -Dfile=build/staging/gwt-linux-0.0.0/gwt-user.jar -DgeneratePom=true | ||
mvn install:install-file -DgroupId=com.google -DartifactId=gwt-dev-windows -Dversion=$1 -Dpackaging=jar -Dfile=build/staging/gwt-linux-0.0.0/gwt-dev-linux.jar -DgeneratePom=true | ||
mvn install:install-file -Dclassifier=sources -DgroupId=com.google -DartifactId=gwt-dev-windows -Dversion=$1 -Dpackaging=jar -Dfile=build/staging/gwt-linux-0.0.0/gwt-dev-linux.jar -DgeneratePom=true | ||
cp build/staging/gwt-linux-0.0.0/swt-win32-3235.dll "$USERPROFILE"/.m2/repository/com/google/gwt-dev-windows/$1 | ||
cp build/staging/gwt-linux-0.0.0/gwt-ll.dll "$USERPROFILE"/.m2/repository/com/google/gwt-dev-windows/$1 | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mvn -Dwebdir=/src/main/webapp jetty:run | ||
mvn -Dwebdir=/src/main/webapp -Dmaven.compiler.gwt.skip=true jetty:run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
src/main/java/com/apress/progwt/server/web/controllers/SupervisorController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/* | ||
* Copyright 2008 Jeff Dwyer | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package com.apress.progwt.server.web.controllers; | ||
|
||
import javax.servlet.http.HttpServletRequest; | ||
|
||
import org.apache.log4j.Logger; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.ModelMap; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.servlet.ModelAndView; | ||
|
||
import com.apress.progwt.client.exception.InfrastructureException; | ||
import com.apress.progwt.server.domain.MailingListEntry; | ||
import com.apress.progwt.server.service.InvitationService; | ||
import com.apress.progwt.server.service.SchoolService; | ||
import com.apress.progwt.server.service.SearchService; | ||
import com.apress.progwt.server.service.UserService; | ||
|
||
/** | ||
* | ||
* @author Jeff Dwyer | ||
* | ||
*/ | ||
@Controller | ||
public class SupervisorController { | ||
private static final Logger log = Logger | ||
.getLogger(SupervisorController.class); | ||
|
||
private UserService userService; | ||
private SchoolService schoolService; | ||
|
||
private InvitationService invitationService; | ||
private SearchService searchService; | ||
|
||
@RequestMapping("/secure/extreme/mailinglist.html") | ||
public ModelAndView mailingListHandler(HttpServletRequest req, | ||
ModelMap map) { | ||
ControllerUtil.updateModelMapWithDefaults(map, req, userService); | ||
|
||
map.addAttribute("list", invitationService.getMailingList()); | ||
return new ModelAndView("secure/extreme/mailinglist", map); | ||
|
||
} | ||
|
||
@RequestMapping("/secure/extreme/mailinglistaction.html") | ||
public ModelAndView resendInvite(HttpServletRequest request, | ||
@RequestParam("entryID") | ||
long entryID, ModelMap map) throws InfrastructureException { | ||
|
||
MailingListEntry entry = invitationService.getEntryById(entryID); | ||
|
||
invitationService.sendInvite(entry); | ||
|
||
map.addAttribute("message", "Success Re-Sending Invite"); | ||
|
||
return mailingListHandler(request, map); | ||
} | ||
|
||
@RequestMapping("/secure/extreme/scripts.html") | ||
public ModelAndView scriptsHandler(HttpServletRequest req, | ||
ModelMap map) { | ||
ControllerUtil.updateModelMapWithDefaults(map, req, userService); | ||
|
||
return new ModelAndView("secure/extreme/scripts", map); | ||
} | ||
|
||
@RequestMapping("/secure/extreme/scripts_action_search_index.html") | ||
public ModelAndView scriptsActionHandler(HttpServletRequest req, | ||
ModelMap map) { | ||
|
||
searchService.reindex(); | ||
map.addAttribute("message", "Re-Indexing begun"); | ||
|
||
return scriptsHandler(req, map); | ||
} | ||
|
||
@Autowired | ||
public void setUserService(UserService userService) { | ||
this.userService = userService; | ||
} | ||
|
||
@Autowired | ||
public void setSchoolService(SchoolService schoolService) { | ||
this.schoolService = schoolService; | ||
} | ||
|
||
@Autowired | ||
public void setInvitationService(InvitationService invitationService) { | ||
this.invitationService = invitationService; | ||
} | ||
|
||
@Autowired | ||
public void setSearchService(SearchService searchService) { | ||
this.searchService = searchService; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<html> | ||
<#if inviter?exists> | ||
Congratulations, ${inviter.username} has sent you an invitation to ToCollege.net. | ||
ToCollege.net is a website that let's you keep track of your College application process. | ||
<#else> | ||
Congratulations, your number has been called and you can now sign up to use ToCollege.net. | ||
ToCollege.net is a website that let's you keep track of your College application process. | ||
</#if> | ||
<p> | ||
Your secret key is ${randomkey} | ||
<p> | ||
You can use this key to signup for an account. Go to http://www.ToCollege.net/site/signup.html?secretkey=${randomkey} to signup or just | ||
<a href="http://www.ToCollege.net.com/site/signup.html?secretkey=${randomkey}&email=${email?url}">click here.</a> | ||
<p> | ||
If you want to learn more about the site, just go to <a href="http://www.ToCollege.net/">ToCollege.net</a> and take a look at the screencasts. | ||
<p> | ||
Thanks for your time, | ||
<p> | ||
-Jeff Dwyer | ||
Founder, ToCollege.net | ||
http://www.ToCollege.net | ||
</html> |
45 changes: 45 additions & 0 deletions
45
src/main/webapp/WEB-INF/freemarker/secure/extreme/mailinglist.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
<#import "/spring.ftl" as spring/> | ||
|
||
<html> | ||
<head> | ||
<title>Mailing List</title> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
|
||
<#if message?exists> | ||
<p class="message">${message}</p> | ||
</#if> | ||
<div class="main"> | ||
|
||
<table> | ||
<tr> | ||
<th>email</th> | ||
<th>key</th> | ||
<th>inviter</th> | ||
<th>signedup</th> | ||
<th>mail ok</th> | ||
<th></th> | ||
</tr> | ||
|
||
<#list list as entry> | ||
<tr> | ||
<td>${entry.email?default("")}</td> | ||
<td>${entry.randomkey?default("")}</td> | ||
<td><#if entry.inviter?exists>${entry.inviter.username}<#else>None</#if></td> | ||
<td><#if entry.signedUpUser?exists>${entry.signedUpUser.username}<#else>None</#if></td> | ||
<td>${entry.sentEmailOk?string}</td> | ||
<td><a href="<@spring.url "/site/secure/extreme/mailinglistaction.html?entryID=${entry.id?c}"/>"/>Send Invite</a></td> | ||
</tr> | ||
</#list> | ||
</table> | ||
|
||
|
||
|
||
</div> | ||
|
||
</body> | ||
</html> |
21 changes: 21 additions & 0 deletions
21
src/main/webapp/WEB-INF/freemarker/secure/extreme/scripts.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
<#import "/spring.ftl" as spring/> | ||
|
||
<html> | ||
<head> | ||
<title>Scripts</title> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
|
||
<#if message?exists> | ||
<p class="message">${message}</p> | ||
</#if> | ||
<div class="main"> | ||
<a href="<@spring.url "/site/secure/extreme/scripts_action_search_index.html"/>"/>Re-Index Search</a> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters