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, setSupportedMatchingMethods
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs
acquireSemaphore, 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, setStartupException
getComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
search
public 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 ParallelTextWithIdService
AccessLimitExceededException
InvalidParameterException
LanguagePairNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguagePairException
UnsupportedMatchingMethodException
public 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
AbstractParallelTextService
doSearch
in class AbstractParallelTextService
sourceLang
- 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