Package com.dbxml.db.common.security

Examples of com.dbxml.db.common.security.AccessManagerClient.addRoleToUser()


      }
      else if ( action.equals(ACTION_ADDROLE) ) {
         if ( !cl.hasMoreTokens() )
            throw new dbXMLException("A Role ID must be specified");
         String roleID = cl.getNextToken();
         manager.addRoleToUser(userID, roleID);
         pw.println("Role '"+roleID+"' added to User '"+userID+"'");
      }
      else if ( action.equals(ACTION_RMROLE) ) {
         if ( !cl.hasMoreTokens() )
            throw new dbXMLException("A Role ID must be specified");
View Full Code Here


      String roleID = cl.getNextToken("Role ID");
      String action = cl.getNextToken("Role Action").toUpperCase();

      if ( action.equals(ACTION_ADDUSER) ) {
         String userID = cl.getNextToken("User ID");
         manager.addRoleToUser(userID, roleID);
         pw.println("User '"+userID+"' added to Role '"+roleID+"'");
      }
      else if ( action.equals(ACTION_RMUSER) ) {
         String userID = cl.getNextToken("User ID");
         manager.removeRoleFromUser(userID, roleID);
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.