This is an automated email from the ASF dual-hosted git repository.
ofuks pushed a commit to branch DLAB-384
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-384 by this push:
new 8041fec Added type field on roles page
8041fec is described below
commit 8041fec15b9e92a368826364cc7b13acf383d42e
Author: Oleh Fuks <[email protected]>
AuthorDate: Fri Mar 6 11:22:05 2020 +0200
Added type field on roles page
---
.../src/main/java/com/epam/dlab/backendapi/dao/UserRoleDaoImpl.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/services/self-service/src/main/java/com/epam/dlab/backendapi/dao/UserRoleDaoImpl.java
b/services/self-service/src/main/java/com/epam/dlab/backendapi/dao/UserRoleDaoImpl.java
index 0767be4..f4deb0a 100644
---
a/services/self-service/src/main/java/com/epam/dlab/backendapi/dao/UserRoleDaoImpl.java
+++
b/services/self-service/src/main/java/com/epam/dlab/backendapi/dao/UserRoleDaoImpl.java
@@ -55,6 +55,7 @@ public class UserRoleDaoImpl extends BaseDAO implements
UserRoleDao {
private static final String USERS_FIELD = "users";
private static final String GROUPS_FIELD = "groups";
private static final String DESCRIPTION = "description";
+ private static final String TYPE = "type";
private static final String ROLES = "roles";
private static final String GROUPS = "$groups";
private static final String GROUP = "group";
@@ -169,6 +170,7 @@ public class UserRoleDaoImpl extends BaseDAO implements
UserRoleDao {
private Document roleDocument() {
return new Document().append(ID, "$" + ID)
.append(DESCRIPTION, "$" + DESCRIPTION)
+ .append(TYPE, "$" + TYPE)
.append(USERS_FIELD, "$" + USERS_FIELD)
.append(EXPLORATORY_SHAPES_FIELD, "$" +
EXPLORATORY_SHAPES_FIELD)
.append(PAGES_FIELD, "$" + PAGES_FIELD)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]