Examples of Roles


Examples of com.esri.gpt.framework.security.principal.Roles

   
    // set role/group properties
    try {
      readUserGroups(user);
      RoleSet authRoles = user.getAuthenticationStatus().getAuthenticatedRoles();
      Roles cfgRoles = getApplicationConfiguration().getIdentityConfiguration().getConfiguredRoles();
      for (Role role: cfgRoles.values()) {
        authRoles.addAll(role.getFullRoleSet());
      }
    } catch (NamingException e) {
      // will never be thrown
    }
View Full Code Here

Examples of com.lanyuan.entity.Roles

   * @param type
   * @return
   */
  @RequestMapping(value="getById")
  public String getById(Model model,String roleId,int typeKey){
    Roles role = rolesService.getById(roleId);
    model.addAttribute("role", role);
    if(typeKey == 1){
      return "/background/role/edit";
    }else{
      return "/background/role/show";
View Full Code Here

Examples of com.lanyuan.entity.Roles

            + "', fname: '" + r.getName()
            + "'});");

      }
    }
    Roles roles = userService.findbyUserRole(userId);
    if(roles!=null){
      model.addAttribute("roleId", roles.getId());
    }
    model.addAttribute("resources", sb);
    return "/background/resources/permissioUser";
  }
View Full Code Here

Examples of com.woorea.openstack.keystone.model.Roles

  }

  @Override
  public void execute(Keystone keystone, CommandLine cmd) {
   
    final Roles roles = keystone.roles().list().execute();
   
    Table t = new Table(new TableModel<Role>(roles.getList()) {

      @Override
      public Column[] getHeaders() {
        return new Column[]{
          new Column("id", 32, Column.ALIGN_LEFT),
View Full Code Here

Examples of dbbeans.Roles

     * @throws Exception
     */
    @Override
    public String execute() throws Exception {
        Users user;
        Roles role;
        if (!checkIfRoleExists("webuser")) {
            createRole("webuser", "Web-site users role");
        }
        try {
            DBInitializer.tranxBegin();
View Full Code Here

Examples of io.fathom.cloud.identity.api.os.model.Roles

            // TODO: Should we allow a non-admin to list roles?
            // Note that roles are basically public
            throw new WebApplicationException(Status.FORBIDDEN);
        }

        Roles response = new Roles();
        response.roles = Lists.newArrayList();

        for (RoleData model : authRepository.getRoles().list()) {
            response.roles.add(toModel(model));
        }
View Full Code Here

Examples of net.diegomaia.vraptor.saci.annotation.Roles

      accessLevelRestriction.setMinimumAccessLevel(accessLevel.minimumAccessLevel());
      accessLevelRestriction.setMaximumAccessLevel(accessLevel.maximumAccessLevel());
      restrictions.add(accessLevelRestriction);
    }
    if (clazz.isAnnotationPresent(Roles.class)){
      Roles roles = clazz.getAnnotation(Roles.class);
      RolesRestriction rolesRestriction = new RolesRestriction();
      rolesRestriction.setRoles(this.getRoles(roles));
      rolesRestriction.setPolicy(roles.policy());
      restrictions.add(rolesRestriction);
    }
    return new RestrictionsWrapper(clazz.getAnnotation(InheritRestrictions.class), clazz.getAnnotation(OnAccessDenial.class), restrictions);
  }
View Full Code Here

Examples of org.apache.sentry.provider.common.Roles

  @VisibleForTesting
  public SimpleFileProviderBackend(Configuration conf, Path resourcePath) throws IOException {
    this.resourcePath = resourcePath;
    this.fileSystem = resourcePath.getFileSystem(conf);
    this.rolesStorage = new Roles();
    this.conf = conf;
    this.processed = false;
  }
View Full Code Here

Examples of org.apache.syncope.console.pages.Roles

                    } catch (SyncopeClientCompositeErrorException e) {
                        LOG.error("While deleting role " + idRole, e);
                        getSession().error(getString("operation_error"));
                    }

                    setResponsePage(new Roles(null));
                }
            };

            MetaDataRoleAuthorizationStrategy.authorize(dropRoleLink, ENABLE, xmlRolesReader.getAllAllowedRoles(
                    "Roles", "delete"));
View Full Code Here

Examples of org.apache.wicket.authorization.strategies.role.Roles

    if (rolesToAdd == null)
    {
      throw new IllegalArgumentException("Argument rolesToadd cannot be null");
    }

    Roles roles = rolesForComponentClass.get(componentClass);
    if (roles == null)
    {
      roles = new Roles();
      rolesForComponentClass.put(componentClass, roles);
    }
    roles.addAll(rolesToAdd);
  }
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.