Tabnine Logo
GeneralBusinessException
Code IndexAdd Tabnine to your IDE (free)

How to use
GeneralBusinessException
in
pl.edu.icm.synat.application.exception

Best Java code snippets using pl.edu.icm.synat.application.exception.GeneralBusinessException (Showing top 20 results out of 315)

origin: pl.edu.icm.synat/synat-business-services-impl

@SuppressWarnings("unchecked")
@Override
public BusinessServicesSerializer<?> getSerializerOfType(String type) {
  BusinessServicesSerializer<?> serializer = serializers.get(type);
  if (serializer == null) {
    throw new GeneralBusinessException("Serializer of type {} not found.", type);
  }
  return serializer;
}
origin: pl.edu.icm.synat/synat-portal-core

@Override
public SearchHandler resolve(SearchViewConfiguration searchConfiguration) {
  SearchHandler handler = builderViewHandlers.get(searchConfiguration);
  if (handler == null){
    throw new GeneralBusinessException("Unknown search type {}", searchConfiguration);
  }
  return handler;
}
origin: pl.edu.icm.synat/synat-business-services-impl

@Override
public InterlocutorSendingPolicy getSendingPolicyForInterlocutorType(InterlocutorType interType) {
  InterlocutorSendingPolicy sendingPolicy = sendingPolicies.get(interType);
  if (sendingPolicy == null) {
    throw new GeneralBusinessException("Sending policy for interlocutor of type {} not found.", interType);
  }
  return sendingPolicy;
}
origin: pl.edu.icm.synat/synat-portal-core

@SuppressWarnings("unchecked")
@Override
public PortalSerializer<?> getSerializerOfType(String type) {
  PortalSerializer<?> serializer = serializers.get(type);
  if (serializer == null) {
    throw new GeneralBusinessException("Serializer of type {} not found.", type);
  }
  return serializer;
}
origin: pl.edu.icm.synat/synat-business-services-impl

private ProjectCategoryPair getPairByCategoryId(final String portalCategoryId) {
  ProjectCategoryPair projectCategoryPair = categoryMap.get(portalCategoryId);
  if (projectCategoryPair == null) {
    throw new GeneralBusinessException("Category {} does not exists in configuration", portalCategoryId);
  }
  return projectCategoryPair;
}
origin: pl.edu.icm.synat/synat-console-core

@Override
public ServiceDeployment retrieveServiceDeployment(HttpServletRequest request) {
  String jsonDeployment = request.getParameter("serviceDeployment");
  ServiceDeployment result = null;
  try {
    result = objectMapper.readValue(jsonDeployment, ServiceDeployment.class);
  } catch (IOException e) {
    throw new GeneralBusinessException(e);
  }
  return result;
}
origin: pl.edu.icm.synat/synat-console-core

@Override
public Object transform(ServiceDeployment serviceDeployment) {
  StringWriter sw = new StringWriter();
  try {
    objectMapper.writeValue(sw, serviceDeployment);
  } catch (IOException e) {
    throw new GeneralBusinessException(e);
  }
  
  return sw.toString();
}
origin: pl.edu.icm.synat/synat-platform-integration-tests-bundle

@RequestMapping(value="cas/{ticketGrantingTicket}")
@ResponseBody
public String getServiceTicket(final HttpServletRequest request, final HttpServletResponse response,
    @PathVariable("ticketGrantingTicket") final String ticketGrantingTicket) {
  
  String username = ticketGrantingTickets.get(ticketGrantingTicket);
  if (username == null) {
    throw new GeneralBusinessException("Not found ticketGrantingTicket: ", ticketGrantingTicket);
  }
  String serviceTicket = UUID.randomUUID().toString();
  serviceTickets.put(serviceTicket, username);
  logger.debug("Ticket granting ticket '{}' generate service ticket '{}'", ticketGrantingTicket, serviceTicket);
  
  return serviceTicket;
}

origin: pl.edu.icm.synat/synat-business-services-impl

@Override
public T apply(Set<DBUserProfileCustomProperty> input) {
  if(input.size()>1) {
    throw new GeneralBusinessException("Too many parameters for single property");
  }
  if(input.isEmpty()) {
    return null;
  }
  DBUserProfileCustomProperty property = input.iterator().next();
  return doApply(property);
}
origin: pl.edu.icm.synat/synat-platform-integration-tests

public Properties getProperties() {
  try {
    return mergeProperties();
  } catch (IOException e) {
    throw new GeneralBusinessException(e);
  }
}

origin: pl.edu.icm.synat/synat-console-core

private List<String> pickObviousServices(boolean forceChoosing, Map<String, List<String>> serviceOptionMap) {
  List<String> pickedServices = new LinkedList<String>();
  for (Map.Entry<String, List<String>> servicesEntries : serviceOptionMap.entrySet()) {
    if (servicesEntries.getValue().size() == 0) {
      throw new GeneralBusinessException("No deployed service with type {}", servicesEntries.getKey());
    } else if (!forceChoosing && servicesEntries.getValue().size() == 1) {
      serviceChooser.setService(servicesEntries.getKey(), servicesEntries.getValue().get(0));
      pickedServices.add(servicesEntries.getKey());
    }
  }
  return pickedServices;
}
origin: pl.edu.icm.synat/synat-portal-core

private SearchHandler getSearchHandler(String searchConfiguration) {
  final SearchViewConfiguration searchConf = SearchViewConfiguration.fromCode(searchConfiguration);
  SearchHandler handler = advancedSearchBuilderViewHandlers.get(searchConf);
  if (handler == null)
    throw new GeneralBusinessException("Unsupported advanced search type {}", searchConfiguration);
  return handler;
}
origin: pl.edu.icm.synat/synat-platform-container

@Override
public synchronized void removeService(final String serviceId) {
  ServiceDeployment removed = currentConfigurationMap.remove(serviceId);
  
  if (removed == null) {
    throw new GeneralBusinessException("Unable to remove service [{}]", serviceId);
  }
  
  saveConfiguration();
}

origin: pl.edu.icm.synat/synat-portal-core

private String formatUrl(String url, ObservationObjectType objectType, String viewDescription, Object... params) {
  if (url == null) {
    throw new GeneralBusinessException(
        "Cannot determine '{}' for observation object type '{}'",
        objectType.name(), viewDescription);
  }
  
  return String.format(url, params);
}

origin: pl.edu.icm.synat/synat-platform-integration-tests

  public void addProperties(Properties properties) {
    try {
      loadProperties(properties);
    } catch (IOException e) {
      throw new GeneralBusinessException(e);
    }
  }
}
origin: pl.edu.icm.synat/synat-portal-core

private ReferenceParser getParser(String referenceText, final String format, final String filename) {
  for (ReferenceParser parser : parsers) {
    if (parser.isAplicable(referenceText, format, filename)) {
      return parser;
    }
  }
  throw new GeneralBusinessException("should never be here");
}
origin: pl.edu.icm.synat/synat-importer-speech-to-text

private DocumentAttachment prepareDocumentAttachment(final String originalId, final byte[] data)
    throws IOException {
  try {
    return new DocumentAttachment(originalId, RepositoryStoreConstants.PATH_PREFIX_METADATA
        + RepositoryStoreConstants.PATH_SEPARATOR, null, data.length,
    // XML/TEXT
        SpeechToTextImporterConstants.XML_TYPE, data, true);
  } catch (Exception e) {
    logger.error(COULDN_T_PARSE + originalId, e);
    throw new GeneralBusinessException(e, COULDN_T_PARSE + originalId);
  }
}
origin: pl.edu.icm.synat/synat-portal-core

private void contentPart(String elementId, String actionType, boolean viewOnline, Model model, HttpServletRequest request
    , HttpServletResponse response) {
  String prefix = "/resource/" + elementId + "/content/" + actionType + "/";
  String pathInfo = request.getServletPath();
  int prefixIndex = pathInfo.indexOf(prefix);
  String partId;
  if (prefixIndex == -1) {
    throw new GeneralBusinessException("Error while parsing url {} ", pathInfo);
  } else {
    partId = pathInfo.substring(prefixIndex + prefix.length());
  }
  contentPart(elementId, actionType, viewOnline, model, request, response, partId);
}
origin: pl.edu.icm.synat/synat-portal-core

protected void log(FulltextSearchQuery searchQuery) {
  try {
    // Only debug
    if(log.isDebugEnabled()){
      String r = new XStream().toXML(searchQuery);
      log.debug("prepareSearchCountAndDataModel(" + currentTime() + ") query:");
      log.debug(r);
    }
    // End
  } catch (Exception e) {
    throw new GeneralBusinessException(e);
  }
}
origin: pl.edu.icm.synat/synat-importer-speech-to-text

private YElement prepareYElement(List<Video> videosList) {
  YElement yElement = new YElement();
  if (videosList != null) {
    Video video = videosList.get(FIRST);
    try {
      prepareYElementFromApi(video, yElement);
    } catch(ParseException e) {
      throw new GeneralBusinessException(e);
    }
  }
  return yElement;
}
pl.edu.icm.synat.application.exceptionGeneralBusinessException

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ImageIO (javax.imageio)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now