Package fr.openwide.core.jpa.security.business.authority.model

Examples of fr.openwide.core.jpa.security.business.authority.model.Authority


 
  public List<Authority> getPublicAuthorities() {
    List<Authority> publicAuthorities = new ArrayList<Authority>();
   
    for (String authorityName : PUBLIC_AUTHORITIES) {
      Authority authority = authorityService.getByName(authorityName);
      if (authority != null) {
        publicAuthorities.add(authority);
      }
    }
   
View Full Code Here


        Model.ofList(authorityUtils.getPublicAuthorities())) {
      private static final long serialVersionUID = -7557232825932251026L;
     
      @Override
      protected void populateItem(ListItem<Authority> item) {
        Authority authority = item.getModelObject();
       
        Check<Authority> authorityCheck = new Check<Authority>("authorityCheck",
            new GenericEntityModel<Long, Authority>(authority));
       
        authorityCheck.setLabel(new ResourceModel("administration.usergroup.authority." + authority.getName()));
       
        authorityCheckGroup.add(authorityCheck);
        item.add(authorityCheck);
      }
    };
View Full Code Here

    add(new ListView<Authority>("authorities", Model.ofList(authorityUtils.getPublicAuthorities())) {
      private static final long serialVersionUID = -4307272691513553800L;
     
      @Override
      protected void populateItem(ListItem<Authority> item) {
        Authority authority = item.getModelObject();
        item.add(new Label("authorityName", new ResourceModel(
            "administration.usergroup.authority." + authority.getName())));
        item.add(new BooleanIcon("authorityCheck", Model.of(
            userGroupModel.getObject().getAuthorities().contains(authority))));
      }
    });
   
View Full Code Here

      authorityService.delete(authority);
    }
  }

  private void initAuthorities() throws ServiceException, SecurityServiceException {
    authorityService.create(new Authority(CoreAuthorityConstants.ROLE_AUTHENTICATED));
  }
View Full Code Here

TOP

Related Classes of fr.openwide.core.jpa.security.business.authority.model.Authority

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.