Examples of Role


Examples of org.saiku.database.dto.Role

    return sessionFactory.getCurrentSession();
  }

  @NotNull
  public Role getRole(int id) {
    Role role = (Role) getCurrentSession().load(Role.class, id);
    return role;
  }
View Full Code Here

Examples of org.semanticweb.HermiT.model.Role

                return false;

        return true;
    }
    protected boolean isSatisfiedAtLeastForBlocked(AtLeastConcept atleast,Node blockedX, Node blocker,Node blockerParent) {
        Role r=atleast.getOnRole();
        LiteralConcept c=atleast.getToConcept();
        Node blockedXParent=blockedX.getParent();
        if (m_extensionManager.containsRoleAssertion(r,blockedX,blockedXParent)
                && m_extensionManager.containsConceptAssertion(c,blockedXParent))
            return true;
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.security.Role

    assertThat(roles, is(not(empty())));
  }

  @Test
  public void getRole() {
    final Role role = roles().get("ui-search");
    assertThat(role, is(notNullValue()));
    assertThat(role.id(), is("ui-search"));
  }
View Full Code Here

Examples of org.sonatype.security.authorization.Role

    return roles;
  }

  private Role toRole(String roleId) {
    Role role = new Role();
    role.setRoleId(roleId);
    role.setSource(this.getSource());
    role.setName("Role " + roleId);
    role.setReadOnly(true);

    return role;
  }
View Full Code Here

Examples of org.springframework.data.jpa.domain.sample.Role

  @Before
  public void setup() {

    tom = new User("Thomas", "Darimont", "tdarimont@example.org");
    role = new Role("Developer");
    em.persist(role);
    tom.getRoles().add(role);
  }
View Full Code Here

Examples of org.springside.examples.miniservice.entity.account.Role

    return user;
  }

  public static User getRandomUserWithAdminRole() {
    User user = AccountData.getRandomUser();
    Role adminRole = AccountData.getAdminRole();
    user.getRoleList().add(adminRole);
    return user;
  }
View Full Code Here

Examples of org.springside.examples.miniweb.entity.account.Role

    return role;
  }

  public static Role getRandomRoleWithAuthority() {
    Role role = getRandomRole();
    role.getAuthorityList().addAll(getRandomDefaultAuthorityList());
    return role;
  }
View Full Code Here

Examples of org.springside.examples.showcase.common.entity.Role

    //准备数据
    User user = new User();
    user.setLoginName("admin");
    user.setShaPassword(new ShaPasswordEncoder().encodePassword("admin", null));
    Role role1 = new Role();
    role1.setName("admin");
    Role role2 = new Role();
    role2.setName("user");
    user.getRoleList().add(role1);
    user.getRoleList().add(role2);

    //录制脚本
    EasyMock.expect(mockAccountManager.findUserByLoginName("admin")).andReturn(user);
View Full Code Here

Examples of org.springside.examples.showcase.entity.Role

      @RequestParam(value = "roleList") List<Long> checkedRoleList, RedirectAttributes redirectAttributes) {

    // bind roleList
    user.getRoleList().clear();
    for (Long roleId : checkedRoleList) {
      Role role = new Role(roleId);
      user.getRoleList().add(role);
    }

    accountService.saveUser(user);
View Full Code Here

Examples of org.uberfire.security.Role

                        return iterator.hasNext();
                    }

                    @Override
                    public AuthorizationResult next() {
                        final Role role = iterator.next();

                        for (final Role activeSubjectRole : subject.getRoles()) {
                            if (role.getName().equals(activeSubjectRole.getName())) {
                                return ACCESS_GRANTED;
                            }
                        }

                        return ACCESS_ABSTAIN;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.