Package br.eti.kinoshita.testlinkjavaapi.model

Examples of br.eti.kinoshita.testlinkjavaapi.model.Role


      }
      return user;
    }

    public static final Role getRole(Map<String, Object> map) {
      Role role = null;
      if (map != null && map.size() > 0) {
        Object o = map.get(TestLinkResponseParams.DB_ID.toString());
        if (o != null) {
          Integer dbID = Integer.parseInt(o.toString());
          if (dbID > 0) {
            role = new Role(dbID);
            role.setDescription(getString(map, TestLinkResponseParams.DESCRIPTION.toString()));
            role.setName(getString(map, TestLinkResponseParams.NAME.toString()));
            role.setRights((Object[]) map.get(TestLinkResponseParams.RIGHTS.toString()));
          }
        }
      }
      return role;
    }
View Full Code Here

TOP

Related Classes of br.eti.kinoshita.testlinkjavaapi.model.Role

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.