Commit b10e766e by Tuukka Kivilahti

Merge branch 'mavenfixes' into 'master'

Random minor fixes

Some random minor fixes to stuff. See commit messages

See merge request !276
2 parents d4b4ed4d 786142b7
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<ui:define name="content"> <ui:define name="content">
<h:form> <h:form>
<p:dataTable sort value="#{userSessionView.sessions}" var="sess" sortBy="#{sess.id}"> <p:dataTable value="#{userSessionView.sessions}" var="sess" sortBy="#{sess.id}">
<p:column headerText="#{i18n['httpsession.id']}"> <p:column headerText="#{i18n['httpsession.id']}">
<h:outputText value="#{sess.id}" /> <h:outputText value="#{sess.id}" />
</p:column> </p:column>
......
...@@ -154,10 +154,16 @@ public class HttpSessionWrapper implements HttpSession ...@@ -154,10 +154,16 @@ public class HttpSessionWrapper implements HttpSession
} }
public static List<HttpSessionWrapper> wrap(Set<HttpSession> sessions, SessionMgmtBeanLocal sessionMgmt) { public static List<HttpSessionWrapper> wrap(Set<HttpSession> sessions, SessionMgmtBeanLocal sessionMgmt) {
ArrayList<HttpSessionWrapper> ret = new ArrayList<>(); List<HttpSessionWrapper> ret = new ArrayList<>();
for (HttpSession s : sessions) { for (HttpSession s : sessions) {
UserContainer uc = sessionMgmt.getUsername(s.getId()); UserContainer uc = sessionMgmt.getUsername(s.getId());
ret.add(new HttpSessionWrapper(s, uc.getUsername(), uc.getHostname())); String username = null;
String hostname = null;
if (uc != null) {
username = uc.getUsername();
hostname = uc.getHostname();
}
ret.add(new HttpSessionWrapper(s, username, hostname));
} }
Collections.sort(ret, new LastSeenComparator()); Collections.sort(ret, new LastSeenComparator());
......
...@@ -42,8 +42,9 @@ ...@@ -42,8 +42,9 @@
<url>http://codecrew.fi</url> <url>http://codecrew.fi</url>
</organization> </organization>
<scm> <scm>
<connection>scm:git@gitlab.codecrew.fi:codecrew/moya.git</connection> <connection>scm:git:https://gitlab.codecrew.fi/codecrew/moya.git</connection>
<url>http://gitlab.codecrew.fi</url> <developerConnection>scm:git:git@gitlab.codecrew.fi:codecrew/moya.git</developerConnection>
<url>https://gitlab.codecrew.fi/codecrew/moya</url>
</scm> </scm>
<build> <build>
<pluginManagement> <pluginManagement>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!