Package com.acumenvelocity.ath.common
Class Const
- java.lang.Object
-
- com.acumenvelocity.ath.common.Const
-
public class Const extends Object
Central constants class for the ATH (Acumen Velocity Translation Hub) application. This class contains all application-wide constants including:- Environment variable configurations
- Database names and collection names
- Default ObjectIds for testing and system operations
- Property names and values
- Date formatters
- Pipeline and MT provider constants
All constants are public static final and organized by category for easy navigation. This class is not meant to be instantiated.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Acumen Velocity
-
-
Field Summary
Fields Modifier and Type Field Description static net.sf.okapi.common.query.MatchTypeAL_MATCH_TYPEstatic StringATH_CREATED_WITHApplication identifier string combining name, version, framework name and version.static StringATH_GCP_PROJECT_LOCATIONThe GCP regionstatic StringATH_GCP_SECRET_FILEPath to Google Cloud Platform service account key filestatic StringATH_GCS_BUCKETGoogle Cloud Storage bucket namestatic StringATH_GCT_API_KEYGoogle Translate API keystatic StringATH_GEMINI_API_KEYGemini API keystatic StringATH_LOGS_CONFIGLogging configuration settingstatic StringATH_OPENAI_API_KEYOpenAI API keystatic StringATH_PDF_CLIENT_IDThe Client ID required for authenticating with the Adobe PDF services API.static StringATH_PDF_CLIENT_SECRETThe Client Secret for authenticating with the Adobe PDF services API.static StringATH_PIPELINE_TYPE_EXPORTExport pipeline type identifierstatic StringATH_PIPELINE_TYPE_IMPORTImport pipeline type identifierstatic intATH_PORTPort number for the ATH application server.static StringATH_PROP_ALT_TRANS_INDEXstatic StringATH_PROP_ALT_TRANS_JSONstatic StringATH_PROP_CAT_FRAMEWORK_NAMEProperty name for the CAT framework name.static StringATH_PROP_CAT_FRAMEWORK_VERSIONProperty name for the CAT framework version.static StringATH_PROP_CAT_NAMEProperty name for the CAT name.static StringATH_PROP_CAT_SOLR_VERSIONProperty name for the CAT Solr version.static StringATH_PROP_CAT_TOOLProperty name for the CAT tool.static StringATH_PROP_CAT_VERSIONProperty name for the CAT version.static StringATH_PROP_CREATED_ATProperty name for created at.static StringATH_PROP_CREATED_BYProperty name for created by.static StringATH_PROP_DOC_FILE_ENCODINGProperty name for the document file encoding.static StringATH_PROP_DOC_FILE_NAMEProperty name for the document file name.static StringATH_PROP_DOC_IDProperty name for the document ID (UUID) inside a TM entry.static StringATH_PROP_DOC_OUT_FILE_ENCODINGProperty name for the document output file encoding.static StringATH_PROP_DOC_OUT_STORAGE_NAMEstatic StringATH_PROP_DOC_SEG_IDstatic StringATH_PROP_DOC_STORAGE_NAMEstatic StringATH_PROP_DOC_TRL_FILE_ENCODINGProperty name for the trl (2nd input) document file encoding.static StringATH_PROP_DOC_TRL_STORAGE_NAMEstatic StringATH_PROP_ERROR_MESSAGEProperty name for the error message.static StringATH_PROP_ERROR_TYPEProperty name for the error type.static StringATH_PROP_EXPORT_TM_IDProperty name for the TM ID.static StringATH_PROP_FILE_IDProperty name for the file ID.static StringATH_PROP_FILE_NAMEProperty name for the file name.static StringATH_PROP_FILTER_IDProperty name for the filter ID (string).static StringATH_PROP_FILTER_PARAMSProperty name for the filter parameters (string).static StringATH_PROP_FINISHED_ATProperty name for finished at.static StringATH_PROP_LOCKEDIndicates if the segment is locked for editingstatic StringATH_PROP_MATCHEDIndicates if the segment has translation memory matchesstatic StringATH_PROP_MERGEDIndicates if this segment was merged from multiple segmentsstatic StringATH_PROP_MERGED_FROM_SEGMENTS_JSONJSON data about segments this was merged fromstatic StringATH_PROP_MT_CONFIDENCE_SCOREstatic StringATH_PROP_MT_ENGINE_IDProperty name for the MT engine ID (string).static StringATH_PROP_MT_ENGINE_PARAMSProperty name for the MT-engine-specific parameters (string).static StringATH_PROP_MT_PROJECT_LOCATIONProperty name for the MT project location (string).static StringATH_PROP_NAMEProperty name for the name.static StringATH_PROP_NOTETranslator/reviewer notes for the segmentstatic StringATH_PROP_ORIGINOrigin/source of the segment (human, MT, TM, etc.)static StringATH_PROP_POSITIONPosition/order of the segment in the documentstatic StringATH_PROP_PROCESSED_BYProperty name for processed by.static StringATH_PROP_SEG_IDSegment ID within a translation unitstatic StringATH_PROP_SEGMENT_TM_SCOREProperty name for the segment TM score.static StringATH_PROP_SERVER_JAVA_HOMEProperty name for the server Java home.static StringATH_PROP_SERVER_JAVA_RUNTIME_VERSIONProperty name for the server Java runtime version.static StringATH_PROP_SERVER_JAVA_VENDORProperty name for the server Java vendor.static StringATH_PROP_SERVER_JAVA_VERSIONProperty name for the server Java version.static StringATH_PROP_SERVER_OS_ARCHITECTUREProperty name for the server OS architecture.static StringATH_PROP_SERVER_OS_NAMEProperty name for the server OS name.static StringATH_PROP_SERVER_OS_USER_NAMEProperty name for the server OS user name.static StringATH_PROP_SERVER_OS_VERSIONProperty name for the server OS version.static StringATH_PROP_SERVER_USER_NAMEProperty name for the server user name.static StringATH_PROP_SERVER_WEB_NAMEProperty name for the server web name.static StringATH_PROP_SERVER_WEB_VERSIONProperty name for the server web version.static StringATH_PROP_SOLR_IDProperty name for the Solr ID.static StringATH_PROP_SOLR_SCOREProperty name for the Solr score.static StringATH_PROP_SOURCEProperty name for the source.static StringATH_PROP_SOURCE_JSONProperty name for the source JSON.static StringATH_PROP_SOURCE_WITH_CODESstatic StringATH_PROP_SPLITIndicates if this segment was split from a larger segmentstatic StringATH_PROP_SPLIT_FROM_SEGMENTS_JSONJSON data about the segment this was split fromstatic StringATH_PROP_SRC_LANGProperty name for the source language.static StringATH_PROP_SRC_SRXProperty name for the source segmentation rules (string).static StringATH_PROP_STARTED_ATProperty name for started at.static StringATH_PROP_STATUSProperty name for the status.static StringATH_PROP_TARGETProperty name for the target.static StringATH_PROP_TARGET_JSONProperty name for the target JSON.static StringATH_PROP_TARGET_WITH_CODESstatic StringATH_PROP_TM_FILE_NAMEProperty name for the TM name.static StringATH_PROP_TM_IDProperty name for the TM ID.static StringATH_PROP_TM_MATCH_INFO_JSONJSON data about translation memory match informationstatic StringATH_PROP_TM_MATCH_SCOREstatic StringATH_PROP_TM_SEG_IDstatic StringATH_PROP_TM_THRESHOLDProperty name for the TM threshold percentage (byte).static StringATH_PROP_TRG_LANGProperty name for the target language.static StringATH_PROP_TRG_SRXProperty name for the target segmentation rules (string).static StringATH_PROP_TU_IDTranslation Unit IDstatic StringATH_PROP_TYPEProperty name for the type.static StringATH_PROP_UPDATED_ATProperty name for updated at.static StringATH_PROP_UPDATED_BYProperty name for updated by.static StringATH_PROP_USER_IDProperty name for the user ID.static StringATH_PROP_USER_TYPEProperty name for the user type.static intATH_SOLR_BATCH_SIZEstatic StringATH_SOLR_URLApache Solr server URL for search functionalitystatic StringATLAS_TM_INDEX_NAMEAtlas Translation Memory index name for search operationsstatic StringCAT_FRAMEWORK_NAMEstatic StringCAT_FRAMEWORK_VERSIONstatic StringCAT_NAMEstatic StringCAT_SOLR_VERSIONstatic StringCAT_SYSTEM_TEST_USER_NAMEstatic StringCAT_SYSTEM_USER_NAMEstatic StringCAT_VERSIONstatic StringCORE_DOCUMENTOffice Open XML core document relationship typestatic StringDEFAULT_MT_PROVIDERDefault machine translation provider namestatic intDEFAULT_MT_THRESHOLDDefault machine translation confidence thresholdstatic StringGEMINI_ALIGNMENT_MODELstatic StringGEMINI_CODE_REINSERTION_MODELstatic StringMT_PROVIDER_GOOGLE_MTGoogle Machine Translation provider identifierstatic StringMT_PROVIDER_GOOGLE_MT_V3Google Cloud Translation v3 provider identifierstatic StringOPENAI_MODELOpenAI modelstatic DateFormatQUARTZ_DATE_FORMATstatic StringSEGMENT_TM_SCOREstatic StringSERVER_JAVA_HOMEstatic StringSERVER_JAVA_RUNTIME_VERSIONstatic StringSERVER_JAVA_VENDORstatic StringSERVER_JAVA_VERSIONstatic StringSERVER_OS_ARCHITECTUREstatic StringSERVER_OS_NAMEstatic StringSERVER_OS_USER_NAMEstatic StringSERVER_OS_VERSIONstatic StringSERVER_WEB_NAMEstatic StringSERVER_WEB_VERSIONstatic StringSOLR_CORE_ATH_DOC_SEGMENTSstatic StringSOLR_CORE_ATH_DOCSstatic StringSOLR_CORE_ATH_TM_SEGMENTSstatic StringSOLR_CORE_ATH_TMSstatic longSOLR_DOC_LOCK_TIMEOUT_MSDistributed lock timeout in milliseconds for document segment repositioning operations.static longSTORAGE_TIMEOUT_MINUTESStorage timeout in minutes for temporary data and cached resources.static StringSTYLE_PARTOffice Open XML styles part relationship typestatic StringTEMP_PREFIXTemporary file prefixstatic DateFormatTMX_DATE_FORMATISO 8601 date format for TMX files.static StringUS_CENTRAL1_PROJECT_LOCATIONstatic StringUSER_UNASSIGNEDDefault value for unassigned user fields
-
Constructor Summary
Constructors Constructor Description Const()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbuildDefConfigFileExtensions(net.sf.okapi.common.filters.IFilter filter)Gets the file extensions for a filter's default configuration.static StringbuildDefConfigId(String filterName)Builds a default configuration ID for a given filter name.static StringbuildDefConfigId(net.sf.okapi.common.filters.IFilter filter)Builds a default configuration ID for a given filter.static StringbuildDefConfigMimeType(net.sf.okapi.common.filters.IFilter filter)Gets the MIME type for a filter's default configuration.static StringbuildDefConfigName(net.sf.okapi.common.filters.IFilter filter)Builds a default configuration name for a given filter.static StringbuildDefConfigNote(net.sf.okapi.common.filters.IFilter filter)Builds a default configuration note/description for a given filter.static booleanrequireApiKey(String mtProvider)Determines if a machine translation provider requires an API key.
-
-
-
Field Detail
-
ATH_PORT
public static final int ATH_PORT
Port number for the ATH application server. Defaults to 8080 if ATH_PORT environment variable is not set or invalid. This value is checked for validity in EnvVarsChecker.
-
STORAGE_TIMEOUT_MINUTES
public static final long STORAGE_TIMEOUT_MINUTES
Storage timeout in minutes for temporary data and cached resources. Defaults to 15 minutes if ATH_STORAGE_TIMEOUT_MINUTES environment variable is not defined. This prevents test failures when the environment variable is missing.
-
SOLR_DOC_LOCK_TIMEOUT_MS
public static final long SOLR_DOC_LOCK_TIMEOUT_MS
Distributed lock timeout in milliseconds for document segment repositioning operations. Defaults to 30 seconds (30000ms) if ATH_SOLR_DOC_LOCK_TIMEOUT_MS environment variable is not defined. This timeout prevents deadlocks when a worker node crashes or becomes unresponsive while holding a lock. After this duration, the lock is considered expired and can be acquired by another node.
-
ATH_GCS_BUCKET
public static final String ATH_GCS_BUCKET
Google Cloud Storage bucket name
-
ATH_GCP_SECRET_FILE
public static final String ATH_GCP_SECRET_FILE
Path to Google Cloud Platform service account key file
-
ATH_GCP_PROJECT_LOCATION
public static final String ATH_GCP_PROJECT_LOCATION
The GCP region
-
ATH_PDF_CLIENT_ID
public static final String ATH_PDF_CLIENT_ID
The Client ID required for authenticating with the Adobe PDF services API.
-
ATH_PDF_CLIENT_SECRET
public static final String ATH_PDF_CLIENT_SECRET
The Client Secret for authenticating with the Adobe PDF services API.
-
ATH_SOLR_URL
public static final String ATH_SOLR_URL
Apache Solr server URL for search functionality
-
ATH_LOGS_CONFIG
public static final String ATH_LOGS_CONFIG
Logging configuration setting
-
ATH_GCT_API_KEY
public static final String ATH_GCT_API_KEY
Google Translate API key
-
ATH_OPENAI_API_KEY
public static final String ATH_OPENAI_API_KEY
OpenAI API key
-
OPENAI_MODEL
public static final String OPENAI_MODEL
OpenAI model- See Also:
- Constant Field Values
-
ATH_GEMINI_API_KEY
public static final String ATH_GEMINI_API_KEY
Gemini API key
-
GEMINI_CODE_REINSERTION_MODEL
public static final String GEMINI_CODE_REINSERTION_MODEL
- See Also:
- Constant Field Values
-
GEMINI_ALIGNMENT_MODEL
public static final String GEMINI_ALIGNMENT_MODEL
- See Also:
- Constant Field Values
-
AL_MATCH_TYPE
public static final net.sf.okapi.common.query.MatchType AL_MATCH_TYPE
-
DEFAULT_MT_PROVIDER
public static final String DEFAULT_MT_PROVIDER
Default machine translation provider name
-
DEFAULT_MT_THRESHOLD
public static final int DEFAULT_MT_THRESHOLD
Default machine translation confidence threshold
-
TEMP_PREFIX
public static final String TEMP_PREFIX
Temporary file prefix
-
ATLAS_TM_INDEX_NAME
public static final String ATLAS_TM_INDEX_NAME
Atlas Translation Memory index name for search operations
-
TMX_DATE_FORMAT
public static final DateFormat TMX_DATE_FORMAT
ISO 8601 date format for TMX files. Reference: https://www.gala-global.org/tmx-14b#creationdate Configured with timezone from project properties.
-
QUARTZ_DATE_FORMAT
public static final DateFormat QUARTZ_DATE_FORMAT
-
ATH_PIPELINE_TYPE_IMPORT
public static final String ATH_PIPELINE_TYPE_IMPORT
Import pipeline type identifier
-
ATH_PIPELINE_TYPE_EXPORT
public static final String ATH_PIPELINE_TYPE_EXPORT
Export pipeline type identifier
-
ATH_SOLR_BATCH_SIZE
public static final int ATH_SOLR_BATCH_SIZE
-
ATH_PROP_SOLR_ID
public static final String ATH_PROP_SOLR_ID
Property name for the Solr ID.- See Also:
- Constant Field Values
-
ATH_PROP_TM_SEG_ID
public static final String ATH_PROP_TM_SEG_ID
- See Also:
- Constant Field Values
-
ATH_PROP_DOC_SEG_ID
public static final String ATH_PROP_DOC_SEG_ID
- See Also:
- Constant Field Values
-
ATH_PROP_TM_ID
public static final String ATH_PROP_TM_ID
Property name for the TM ID.- See Also:
- Constant Field Values
-
ATH_PROP_TM_THRESHOLD
public static final String ATH_PROP_TM_THRESHOLD
Property name for the TM threshold percentage (byte).- See Also:
- Constant Field Values
-
ATH_PROP_TM_FILE_NAME
public static final String ATH_PROP_TM_FILE_NAME
Property name for the TM name.- See Also:
- Constant Field Values
-
ATH_PROP_MT_ENGINE_ID
public static final String ATH_PROP_MT_ENGINE_ID
Property name for the MT engine ID (string).- See Also:
- Constant Field Values
-
ATH_PROP_MT_ENGINE_PARAMS
public static final String ATH_PROP_MT_ENGINE_PARAMS
Property name for the MT-engine-specific parameters (string).- See Also:
- Constant Field Values
-
ATH_PROP_MT_PROJECT_LOCATION
public static final String ATH_PROP_MT_PROJECT_LOCATION
Property name for the MT project location (string).- See Also:
- Constant Field Values
-
ATH_PROP_EXPORT_TM_ID
public static final String ATH_PROP_EXPORT_TM_ID
Property name for the TM ID.- See Also:
- Constant Field Values
-
ATH_PROP_SOLR_SCORE
public static final String ATH_PROP_SOLR_SCORE
Property name for the Solr score.- See Also:
- Constant Field Values
-
ATH_PROP_FILE_ID
public static final String ATH_PROP_FILE_ID
Property name for the file ID.- See Also:
- Constant Field Values
-
ATH_PROP_FILE_NAME
public static final String ATH_PROP_FILE_NAME
Property name for the file name.- See Also:
- Constant Field Values
-
ATH_PROP_DOC_ID
public static final String ATH_PROP_DOC_ID
Property name for the document ID (UUID) inside a TM entry.- See Also:
- Constant Field Values
-
ATH_PROP_DOC_FILE_NAME
public static final String ATH_PROP_DOC_FILE_NAME
Property name for the document file name.- See Also:
- Constant Field Values
-
ATH_PROP_DOC_STORAGE_NAME
public static final String ATH_PROP_DOC_STORAGE_NAME
- See Also:
- Constant Field Values
-
ATH_PROP_DOC_TRL_STORAGE_NAME
public static final String ATH_PROP_DOC_TRL_STORAGE_NAME
- See Also:
- Constant Field Values
-
ATH_PROP_DOC_OUT_STORAGE_NAME
public static final String ATH_PROP_DOC_OUT_STORAGE_NAME
- See Also:
- Constant Field Values
-
ATH_PROP_DOC_FILE_ENCODING
public static final String ATH_PROP_DOC_FILE_ENCODING
Property name for the document file encoding.- See Also:
- Constant Field Values
-
ATH_PROP_DOC_TRL_FILE_ENCODING
public static final String ATH_PROP_DOC_TRL_FILE_ENCODING
Property name for the trl (2nd input) document file encoding.- See Also:
- Constant Field Values
-
ATH_PROP_DOC_OUT_FILE_ENCODING
public static final String ATH_PROP_DOC_OUT_FILE_ENCODING
Property name for the document output file encoding.- See Also:
- Constant Field Values
-
ATH_PROP_FILTER_ID
public static final String ATH_PROP_FILTER_ID
Property name for the filter ID (string).- See Also:
- Constant Field Values
-
ATH_PROP_FILTER_PARAMS
public static final String ATH_PROP_FILTER_PARAMS
Property name for the filter parameters (string).- See Also:
- Constant Field Values
-
ATH_PROP_SRC_SRX
public static final String ATH_PROP_SRC_SRX
Property name for the source segmentation rules (string).- See Also:
- Constant Field Values
-
ATH_PROP_TRG_SRX
public static final String ATH_PROP_TRG_SRX
Property name for the target segmentation rules (string).- See Also:
- Constant Field Values
-
ATH_PROP_SRC_LANG
public static final String ATH_PROP_SRC_LANG
Property name for the source language.- See Also:
- Constant Field Values
-
ATH_PROP_TRG_LANG
public static final String ATH_PROP_TRG_LANG
Property name for the target language.- See Also:
- Constant Field Values
-
ATH_PROP_STATUS
public static final String ATH_PROP_STATUS
Property name for the status.- See Also:
- Constant Field Values
-
ATH_PROP_ERROR_MESSAGE
public static final String ATH_PROP_ERROR_MESSAGE
Property name for the error message.- See Also:
- Constant Field Values
-
ATH_PROP_ERROR_TYPE
public static final String ATH_PROP_ERROR_TYPE
Property name for the error type.- See Also:
- Constant Field Values
-
ATH_PROP_NAME
public static final String ATH_PROP_NAME
Property name for the name.- See Also:
- Constant Field Values
-
ATH_PROP_TYPE
public static final String ATH_PROP_TYPE
Property name for the type.- See Also:
- Constant Field Values
-
ATH_PROP_CAT_TOOL
public static final String ATH_PROP_CAT_TOOL
Property name for the CAT tool.- See Also:
- Constant Field Values
-
ATH_PROP_USER_ID
public static final String ATH_PROP_USER_ID
Property name for the user ID.- See Also:
- Constant Field Values
-
ATH_PROP_USER_TYPE
public static final String ATH_PROP_USER_TYPE
Property name for the user type.- See Also:
- Constant Field Values
-
ATH_PROP_SOURCE
public static final String ATH_PROP_SOURCE
Property name for the source.- See Also:
- Constant Field Values
-
ATH_PROP_SOURCE_WITH_CODES
public static final String ATH_PROP_SOURCE_WITH_CODES
- See Also:
- Constant Field Values
-
ATH_PROP_TARGET_WITH_CODES
public static final String ATH_PROP_TARGET_WITH_CODES
- See Also:
- Constant Field Values
-
ATH_PROP_TARGET
public static final String ATH_PROP_TARGET
Property name for the target.- See Also:
- Constant Field Values
-
ATH_PROP_SOURCE_JSON
public static final String ATH_PROP_SOURCE_JSON
Property name for the source JSON.- See Also:
- Constant Field Values
-
ATH_PROP_TARGET_JSON
public static final String ATH_PROP_TARGET_JSON
Property name for the target JSON.- See Also:
- Constant Field Values
-
ATH_PROP_ALT_TRANS_JSON
public static final String ATH_PROP_ALT_TRANS_JSON
- See Also:
- Constant Field Values
-
ATH_PROP_ALT_TRANS_INDEX
public static final String ATH_PROP_ALT_TRANS_INDEX
- See Also:
- Constant Field Values
-
ATH_PROP_TU_ID
public static final String ATH_PROP_TU_ID
Translation Unit ID- See Also:
- Constant Field Values
-
ATH_PROP_SEG_ID
public static final String ATH_PROP_SEG_ID
Segment ID within a translation unit- See Also:
- Constant Field Values
-
ATH_PROP_MERGED
public static final String ATH_PROP_MERGED
Indicates if this segment was merged from multiple segments- See Also:
- Constant Field Values
-
ATH_PROP_MERGED_FROM_SEGMENTS_JSON
public static final String ATH_PROP_MERGED_FROM_SEGMENTS_JSON
JSON data about segments this was merged from- See Also:
- Constant Field Values
-
ATH_PROP_NOTE
public static final String ATH_PROP_NOTE
Translator/reviewer notes for the segment- See Also:
- Constant Field Values
-
ATH_PROP_SPLIT
public static final String ATH_PROP_SPLIT
Indicates if this segment was split from a larger segment- See Also:
- Constant Field Values
-
ATH_PROP_SPLIT_FROM_SEGMENTS_JSON
public static final String ATH_PROP_SPLIT_FROM_SEGMENTS_JSON
JSON data about the segment this was split from- See Also:
- Constant Field Values
-
ATH_PROP_LOCKED
public static final String ATH_PROP_LOCKED
Indicates if the segment is locked for editing- See Also:
- Constant Field Values
-
ATH_PROP_MATCHED
public static final String ATH_PROP_MATCHED
Indicates if the segment has translation memory matches- See Also:
- Constant Field Values
-
ATH_PROP_TM_MATCH_INFO_JSON
public static final String ATH_PROP_TM_MATCH_INFO_JSON
JSON data about translation memory match information- See Also:
- Constant Field Values
-
ATH_PROP_POSITION
public static final String ATH_PROP_POSITION
Position/order of the segment in the document- See Also:
- Constant Field Values
-
ATH_PROP_ORIGIN
public static final String ATH_PROP_ORIGIN
Origin/source of the segment (human, MT, TM, etc.)- See Also:
- Constant Field Values
-
ATH_PROP_TM_MATCH_SCORE
public static final String ATH_PROP_TM_MATCH_SCORE
- See Also:
- Constant Field Values
-
ATH_PROP_MT_CONFIDENCE_SCORE
public static final String ATH_PROP_MT_CONFIDENCE_SCORE
- See Also:
- Constant Field Values
-
ATH_PROP_CREATED_BY
public static final String ATH_PROP_CREATED_BY
Property name for created by.- See Also:
- Constant Field Values
-
ATH_PROP_CREATED_AT
public static final String ATH_PROP_CREATED_AT
Property name for created at.- See Also:
- Constant Field Values
-
ATH_PROP_UPDATED_BY
public static final String ATH_PROP_UPDATED_BY
Property name for updated by.- See Also:
- Constant Field Values
-
ATH_PROP_UPDATED_AT
public static final String ATH_PROP_UPDATED_AT
Property name for updated at.- See Also:
- Constant Field Values
-
ATH_PROP_PROCESSED_BY
public static final String ATH_PROP_PROCESSED_BY
Property name for processed by.- See Also:
- Constant Field Values
-
ATH_PROP_STARTED_AT
public static final String ATH_PROP_STARTED_AT
Property name for started at.- See Also:
- Constant Field Values
-
ATH_PROP_FINISHED_AT
public static final String ATH_PROP_FINISHED_AT
Property name for finished at.- See Also:
- Constant Field Values
-
MT_PROVIDER_GOOGLE_MT
public static final String MT_PROVIDER_GOOGLE_MT
Google Machine Translation provider identifier- See Also:
- Constant Field Values
-
MT_PROVIDER_GOOGLE_MT_V3
public static final String MT_PROVIDER_GOOGLE_MT_V3
Google Cloud Translation v3 provider identifier- See Also:
- Constant Field Values
-
US_CENTRAL1_PROJECT_LOCATION
public static final String US_CENTRAL1_PROJECT_LOCATION
- See Also:
- Constant Field Values
-
ATH_PROP_CAT_NAME
public static final String ATH_PROP_CAT_NAME
Property name for the CAT name.- See Also:
- Constant Field Values
-
ATH_PROP_CAT_VERSION
public static final String ATH_PROP_CAT_VERSION
Property name for the CAT version.- See Also:
- Constant Field Values
-
ATH_PROP_CAT_FRAMEWORK_NAME
public static final String ATH_PROP_CAT_FRAMEWORK_NAME
Property name for the CAT framework name.- See Also:
- Constant Field Values
-
ATH_PROP_CAT_FRAMEWORK_VERSION
public static final String ATH_PROP_CAT_FRAMEWORK_VERSION
Property name for the CAT framework version.- See Also:
- Constant Field Values
-
ATH_PROP_CAT_SOLR_VERSION
public static final String ATH_PROP_CAT_SOLR_VERSION
Property name for the CAT Solr version.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_JAVA_HOME
public static final String ATH_PROP_SERVER_JAVA_HOME
Property name for the server Java home.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_JAVA_VENDOR
public static final String ATH_PROP_SERVER_JAVA_VENDOR
Property name for the server Java vendor.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_JAVA_VERSION
public static final String ATH_PROP_SERVER_JAVA_VERSION
Property name for the server Java version.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_JAVA_RUNTIME_VERSION
public static final String ATH_PROP_SERVER_JAVA_RUNTIME_VERSION
Property name for the server Java runtime version.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_OS_ARCHITECTURE
public static final String ATH_PROP_SERVER_OS_ARCHITECTURE
Property name for the server OS architecture.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_OS_NAME
public static final String ATH_PROP_SERVER_OS_NAME
Property name for the server OS name.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_OS_VERSION
public static final String ATH_PROP_SERVER_OS_VERSION
Property name for the server OS version.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_USER_NAME
public static final String ATH_PROP_SERVER_USER_NAME
Property name for the server user name.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_OS_USER_NAME
public static final String ATH_PROP_SERVER_OS_USER_NAME
Property name for the server OS user name.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_WEB_NAME
public static final String ATH_PROP_SERVER_WEB_NAME
Property name for the server web name.- See Also:
- Constant Field Values
-
ATH_PROP_SERVER_WEB_VERSION
public static final String ATH_PROP_SERVER_WEB_VERSION
Property name for the server web version.- See Also:
- Constant Field Values
-
ATH_PROP_SEGMENT_TM_SCORE
public static final String ATH_PROP_SEGMENT_TM_SCORE
Property name for the segment TM score.- See Also:
- Constant Field Values
-
CAT_NAME
public static final String CAT_NAME
-
CAT_SYSTEM_USER_NAME
public static final String CAT_SYSTEM_USER_NAME
-
CAT_SYSTEM_TEST_USER_NAME
public static final String CAT_SYSTEM_TEST_USER_NAME
-
CAT_VERSION
public static final String CAT_VERSION
-
CAT_FRAMEWORK_NAME
public static final String CAT_FRAMEWORK_NAME
-
CAT_FRAMEWORK_VERSION
public static final String CAT_FRAMEWORK_VERSION
-
CAT_SOLR_VERSION
public static final String CAT_SOLR_VERSION
-
SERVER_JAVA_HOME
public static final String SERVER_JAVA_HOME
-
SERVER_JAVA_VENDOR
public static final String SERVER_JAVA_VENDOR
-
SERVER_JAVA_VERSION
public static final String SERVER_JAVA_VERSION
-
SERVER_JAVA_RUNTIME_VERSION
public static final String SERVER_JAVA_RUNTIME_VERSION
-
SERVER_OS_ARCHITECTURE
public static final String SERVER_OS_ARCHITECTURE
-
SERVER_OS_NAME
public static final String SERVER_OS_NAME
-
SERVER_OS_VERSION
public static final String SERVER_OS_VERSION
-
SERVER_OS_USER_NAME
public static final String SERVER_OS_USER_NAME
-
SERVER_WEB_NAME
public static final String SERVER_WEB_NAME
-
SERVER_WEB_VERSION
public static final String SERVER_WEB_VERSION
-
SEGMENT_TM_SCORE
public static final String SEGMENT_TM_SCORE
-
USER_UNASSIGNED
public static final String USER_UNASSIGNED
Default value for unassigned user fields- See Also:
- Constant Field Values
-
ATH_CREATED_WITH
public static final String ATH_CREATED_WITH
Application identifier string combining name, version, framework name and version. Used in the "createdWith" field to track which version of the application created data. Dots are replaced with underscores to avoid conflicts in some contexts.
-
CORE_DOCUMENT
public static final String CORE_DOCUMENT
Office Open XML core document relationship type- See Also:
- Constant Field Values
-
STYLE_PART
public static final String STYLE_PART
Office Open XML styles part relationship type- See Also:
- Constant Field Values
-
SOLR_CORE_ATH_DOCS
public static final String SOLR_CORE_ATH_DOCS
- See Also:
- Constant Field Values
-
SOLR_CORE_ATH_DOC_SEGMENTS
public static final String SOLR_CORE_ATH_DOC_SEGMENTS
- See Also:
- Constant Field Values
-
SOLR_CORE_ATH_TMS
public static final String SOLR_CORE_ATH_TMS
- See Also:
- Constant Field Values
-
SOLR_CORE_ATH_TM_SEGMENTS
public static final String SOLR_CORE_ATH_TM_SEGMENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
requireApiKey
public static boolean requireApiKey(String mtProvider)
Determines if a machine translation provider requires an API key. Currently Google MT v2 and v3 require API keys for authentication.- Parameters:
mtProvider- the MT provider name to check- Returns:
- true if the provider requires an API key, false otherwise
-
buildDefConfigId
public static String buildDefConfigId(net.sf.okapi.common.filters.IFilter filter)
Builds a default configuration ID for a given filter. Combines the filter name with a suffix from project properties.- Parameters:
filter- the Okapi filter to build configuration ID for- Returns:
- configuration ID string
-
buildDefConfigId
public static String buildDefConfigId(String filterName)
Builds a default configuration ID for a given filter name.- Parameters:
filterName- the name of the filter- Returns:
- configuration ID string
-
buildDefConfigName
public static String buildDefConfigName(net.sf.okapi.common.filters.IFilter filter)
Builds a default configuration name for a given filter.- Parameters:
filter- the Okapi filter (parameter not used, loads from properties)- Returns:
- default configuration name from properties
-
buildDefConfigNote
public static String buildDefConfigNote(net.sf.okapi.common.filters.IFilter filter)
Builds a default configuration note/description for a given filter. Combines the filter's display name with a suffix from project properties.- Parameters:
filter- the Okapi filter to build note for- Returns:
- configuration note string
-
buildDefConfigMimeType
public static String buildDefConfigMimeType(net.sf.okapi.common.filters.IFilter filter)
Gets the MIME type for a filter's default configuration.- Parameters:
filter- the Okapi filter- Returns:
- the filter's MIME type
-
buildDefConfigFileExtensions
public static String buildDefConfigFileExtensions(net.sf.okapi.common.filters.IFilter filter)
Gets the file extensions for a filter's default configuration. Currently returns "*" (all extensions) for all filters.- Parameters:
filter- the Okapi filter (parameter not used)- Returns:
- "*" indicating all file extensions are supported
-
-