Package org.sonar.core.permission

Examples of org.sonar.core.permission.PermissionTemplateUserDto


      .setId(1L)
      .setName("name")
      .setKee("key")
      .setDescription("description")
      .setUsersPermissions(Lists.newArrayList(
        new PermissionTemplateUserDto().setId(1L).setUserId(1L).setUserName("user1").setUserLogin("login1").setPermission("permission1"),
        new PermissionTemplateUserDto().setId(2L).setUserId(1L).setUserName("user1").setUserLogin("login1").setPermission("permission2"),
        new PermissionTemplateUserDto().setId(3L).setUserId(2L).setUserName("user2").setUserLogin("login2").setPermission("permission1")
      ))
      .setGroupsByPermission(Lists.newArrayList(
        new PermissionTemplateGroupDto().setId(1L).setGroupId(1L).setGroupName("group1").setPermission("permission3"),
        new PermissionTemplateGroupDto().setId(2L).setGroupId(2L).setGroupName("group2").setPermission("permission3"),
        new PermissionTemplateGroupDto().setId(3L).setGroupId(null).setGroupName(null).setPermission("permission3")
View Full Code Here


    verify(permissionTemplateDao).removeByGroup(eq(1L), eq(session));
  }

  private PermissionTemplateUserDto buildUserPermission(String userName, String permission) {
    return new PermissionTemplateUserDto().setUserName(userName).setPermission(permission);
  }
View Full Code Here

TOP

Related Classes of org.sonar.core.permission.PermissionTemplateUserDto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.