Package org.internna.iwebmvc.model.security

Examples of org.internna.iwebmvc.model.security.RoleImpl


    @Transactional(propagation = Propagation.REQUIRED)
    public void createAuthority(String authority) {
        Assert.hasText(authority);
        if (!isAuthority(authority)) {
            entityManager.persist(new RoleImpl(authority));
            entityManager.flush();
        }
    }
View Full Code Here


            }
        } catch (ClassNotFoundException cne) {
          logger.warn("Could not generate authority information for: " + cne.getMessage());
        }
        for (String role : authorities) {
            if (!mainRoles.contains(new RoleImpl(role))) {
                if (logger.isInfoEnabled()) logger.info("Creating application security role [" + role + "]");
                dao.createAuthority(role);
            }
        }
        if (createRootUser) {
View Full Code Here

TOP

Related Classes of org.internna.iwebmvc.model.security.RoleImpl

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.