added security.properties in Jetty config directory, next to security.properties, for e-mail validation configuration

This commit is contained in:
Axel Uhl committed 2014-10-14 14:11:28 +02:00
1 parent 4d5f50562b
commit 840af23e4b
9 files changed
+64 -39

No files matched your search

@@ -58,5 +58,6 @@
<servlet-name>remoteLogging</servlet-name>
<url-pattern>/com.sap.sse.security.ui.OAuthLogin/remote_logging</url-pattern>
<url-pattern>/com.sap.sse.security.ui.Login/remote_logging</url-pattern>
<url-pattern>/com.sap.sse.security.ui.UserManagement/remote_logging</url-pattern>
</servlet-mapping>
</web-app>
@@ -83,7 +83,10 @@ public class RolesList extends DecoratorPanel {
hp.add(addRole);
fp.add(hp);
rolesDataProvider = new ListDataProvider<>(userDTO.getRoles(), keyProvider);
rolesDataProvider = new ListDataProvider<String>();
for (String role : userDTO.getRoles()) {
rolesDataProvider.getList().add(role);
}
roleList = new CellList<>(new TextCell(), keyProvider);
rolesDataProvider.addDataDisplay(roleList);
@@ -1,8 +1,9 @@
package com.sap.sse.security.ui.shared;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.google.gwt.user.client.rpc.IsSerializable;
@@ -10,7 +11,7 @@ public class UserDTO implements IsSerializable {
private String name;
private String email;
private List<AccountDTO> accounts;
private List<String> roles = new ArrayList<>();
private Set<String> roles = new HashSet<>();
UserDTO() {} // for serialization only
@@ -28,9 +29,13 @@ public class UserDTO implements IsSerializable {
this.name = name;
}
public List<String> getRoles() {
public Iterable<String> getRoles() {
return roles;
}
public boolean hasRole(String role) {
return roles.contains(role);
}
public void addRoles(Collection<String> roles) {
this.roles.addAll(roles);