Esempio n. 1
0
 /**
  * Adapt.
  *
  * @param role the role
  * @param contextId the context id
  * @return the path to the final code
  * @throws IOException Signals that an I/O exception has occurred.
  */
 public String adapt(String role, String contextId) throws IOException {
   AuiRoleMapper roleMapper = roleMapping.get(role);
   if (roleMapper == null) return null;
   String code = codeGen.adapt(roleMapper, contextId);
   System.out.println(code);
   return code;
 }