Merge "Prevent ConfigPusher from killing its thread"
[controller.git] / opendaylight / web / root / src / main / java / org / opendaylight / controller / web / UserBean.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.web;
9
10 import java.util.List;
11
12 import org.opendaylight.controller.usermanager.UserConfig;
13
14 public class UserBean {
15     private String user;
16     private List<String> roles;
17
18     public UserBean(String user, List<String> roles) {
19         this.user = user;
20         this.roles = roles;
21     }
22
23     public UserBean(UserConfig config) {
24         this(config.getUser(), config.getRoles());
25     }
26
27     public String getUser() {
28         return user;
29     }
30
31     public List<String> getRoles() {
32         return roles;
33     }
34 }