Package org.uberfire.security.impl

Examples of org.uberfire.security.impl.RoleImpl


                    credentials.put( contentEntry.getKey().toString(), result[ 0 ] );
                    final List<Role> roles = new ArrayList<Role>();
                    if ( result.length > 1 ) {
                        for ( int i = 1; i < result.length; i++ ) {
                            final String currentRole = result[ i ];
                            roles.add( new RoleImpl( currentRole ) );
                        }
                        this.roles.put( contentEntry.getKey().toString(), roles );
                    }
                }
View Full Code Here


            statement.setString( 1, principal.getName() );
            final ResultSet queryResult = statement.executeQuery();
            final List<Role> roles = new ArrayList<Role>();
            while ( queryResult.next() ) {
                final String roleName = queryResult.getString( 1 );
                roles.add( new RoleImpl( roleName ) );
            }

            queryResult.close();
            statement.close();
View Full Code Here

        public RuntimeRestriction( final Collection<String> roles,
                                   final Collection<String> traits ) {
            if ( roles != null ) {
                final List<Role> tempRoles = new ArrayList<Role>( roles.size() );
                for ( final String tempRole : roles ) {
                    tempRoles.add( new RoleImpl( tempRole ) );
                }

                this.roles = unmodifiableList( tempRoles );
            } else {
                this.roles = emptyList();
View Full Code Here

TOP

Related Classes of org.uberfire.security.impl.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.