23 |
--------------------------------------------------------------------------------
/hank-ui/src/main/java/com/liveramp/hank/ui/controllers/Action.java:
--------------------------------------------------------------------------------
1 | package com.liveramp.hank.ui.controllers;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.ServletException;
6 | import javax.servlet.http.HttpServletRequest;
7 | import javax.servlet.http.HttpServletResponse;
8 |
9 | public abstract class Action {
10 |
11 | protected abstract void action(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;
12 |
13 | protected void redirect(String uri, HttpServletResponse resp) throws IOException {
14 | resp.sendRedirect(uri);
15 | resp.setStatus(HttpServletResponse.SC_OK);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/hank-ui/src/main/java/com/liveramp/hank/ui/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1" %>
3 |
4 | <%@ page import="com.liveramp.hank.coordinator.*" %>
5 | <%@ page import="com.liveramp.hank.Hank" %>
6 | <%
7 | Coordinator coord = (Coordinator)getServletContext().getAttribute("coordinator");
8 | %>
9 |
10 |
11 |
12 |
13 |
Hank: Home
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
Hank
22 |
23 |
System Summary
24 |
25 | <%= coord.getDomains().size() %>
domains,
26 | <%= coord.getDomainGroups().size() %>
domain groups,
27 | and <%= coord.getRingGroups().size() %>
ring groups.
28 |
29 |
Coordinator
30 |
31 | <%= coord %>
32 |
33 |
34 |
Administration
35 |
Open administration panel
36 |
37 |
Version Information
38 |
39 | Hank version <%= Hank.getVersion() %>, commit <%= Hank.getGitCommit() %>
40 |
41 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/src/assembly/dist.xml:
--------------------------------------------------------------------------------
1 |
4 | dist
5 |
6 | tar.gz
7 |
8 |
9 |
10 | ${project.basedir}
11 | /
12 |
13 | README*
14 | bin/
15 | conf/
16 |
17 |
18 |
19 | ${project.build.directory}
20 | /
21 |
22 | ${project.name}-${project.version}-jobjar.jar
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/assembly/jobjar.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 | jobjar
6 |
7 | jar
8 |
9 | false
10 |
11 |
12 | /
13 | true
14 | true
15 | runtime
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------