Package org.pentaho.mantle.client.solutionbrowser.fileproperties

Examples of org.pentaho.mantle.client.solutionbrowser.fileproperties.PermissionsPanel


        public void onResponseReceived( Request request, Response response ) {
          JsArrayString roles = parseRolesJson( JsonUtils.escapeJsonForEval( response.getText() ) );
          // filter out existing
          rolesListBox.clear();
          PermissionsPanel permPanel = new PermissionsPanel( null );
          for ( int i = 0; i < roles.length(); i++ ) {
            String role = roles.get( i );
            if ( !existing.contains( role ) ) {
              rolesListBox.addItem( role );
            }
            else {
              if( !permPanel.getNames( fileInfo, 1 ).contains( role ) && permPanel.getNames( fileInfo, 0 ).contains( role ) ) {
                //we have equal user/role pair(s) and user already in existing list
                rolesListBox.addItem( role );
              }
            }
          }
View Full Code Here


        public void onResponseReceived( Request request, Response response ) {
          JsArrayString users = parseUsersJson( JsonUtils.escapeJsonForEval( response.getText() ) );              
          // filter out existing
          usersListBox.clear();
          PermissionsPanel permPanel = new PermissionsPanel( null );         
          for ( int i = 0; i < users.length(); i++ ) {
            String user = users.get( i );
            if ( !existing.contains( user ) ) {
              usersListBox.addItem( user );
            }
            else {
              if( !permPanel.getNames( fileInfo, 0 ).contains( user ) && permPanel.getNames( fileInfo, 1 ).contains( user ) ) {
                //we have equal user/role pair(s) and role already in existing list
                usersListBox.addItem( user );
              }
            }
          }
View Full Code Here

TOP

Related Classes of org.pentaho.mantle.client.solutionbrowser.fileproperties.PermissionsPanel

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.