public abstract class AbstractParallelTextWithIdService extends AbstractParallelTextService implements ParallelTextWithIdService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| Constructor and Description |
|---|
AbstractParallelTextWithIdService()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<Category> |
doListCategories() |
protected Collection<ParallelText> |
doSearch(Language sourceLang,
Language targetLang,
String source,
MatchingMethod matchingMethod)
Runs a search.
|
protected abstract Collection<ParallelTextWithId> |
doSearchParallelTexts(Language sourceLang,
Language targetLang,
String source,
MatchingMethod matchingMethod,
String[] categoryIds) |
Category[] |
listCategories() |
ParallelTextWithId[] |
searchParallelTexts(String sourceLang,
String targetLang,
String source,
String matchingMethod,
String[] categoryIds) |
getSupportedMatchingMethods, getValidLanguagePair, getValidMatchingMethod, search, setSupportedMatchingMethodsgetSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairsacquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupExceptiongetComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsearchpublic AbstractParallelTextWithIdService()
public ParallelTextWithId[] searchParallelTexts(String sourceLang, String targetLang, String source, String matchingMethod, String[] categoryIds) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException, UnsupportedMatchingMethodException
searchParallelTexts in interface ParallelTextWithIdServiceAccessLimitExceededExceptionInvalidParameterExceptionLanguagePairNotUniquelyDecidedExceptionNoAccessPermissionExceptionNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionUnsupportedLanguagePairExceptionUnsupportedMatchingMethodExceptionpublic Category[] listCategories() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
protected Collection<ParallelText> doSearch(Language sourceLang, Language targetLang, String source, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
AbstractParallelTextServicedoSearch in class AbstractParallelTextServicesourceLang - Source languagetargetLang - Target languagesource - Keywords to be searchedmatchingMethod - Matching methodInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failedprotected abstract Collection<ParallelTextWithId> doSearchParallelTexts(Language sourceLang, Language targetLang, String source, MatchingMethod matchingMethod, String[] categoryIds) throws InvalidParameterException, ProcessFailedException
protected abstract Collection<Category> doListCategories() throws ProcessFailedException
ProcessFailedException