Example #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;
 }
Example #2
0
 /**
  * Description of the adapted UI.
  *
  * @param role the role id
  * @param contextId the context id
  * @return a map describing for each activity ui the specific content in the final code
  */
 public Map<String, String> adaptationDesc(String role, String contextId) {
   AuiRoleMapper roleMapper = roleMapping.get(role);
   if (roleMapper == null) return null;
   return codeGen.codeAdaptation(roleMapper, contextId);
 }