コード例 #1
0
 private void fillMapTechnologies() throws PhrescoException {
   List<ApplicationType> applicationTypes = getApplicationTypes();
   for (ApplicationType applicationType : applicationTypes) {
     List<Technology> appTechnologies = applicationType.getTechnologies();
     for (Technology technology : appTechnologies) {
       technologies.put(technology.getId(), technology);
     }
   }
 }
コード例 #2
0
  public ApplicationType getApplicationType(String name) throws PhrescoException {
    if (debugEnabled) {
      S_LOGGER.debug("Entering Method ServiceManagerImpl.getApplicationType(String name)");
    }
    if (debugEnabled) {
      S_LOGGER.debug("getApplicationType() Name = " + name);
    }
    List<ApplicationType> applicationTypes = getApplicationTypes();
    for (ApplicationType applicationType : applicationTypes) {
      if (applicationType.getName().equals(name)) {
        return applicationType;
      }
    }

    return null;
  }