Package org.adempiere.base
Class Core
java.lang.Object
org.adempiere.base.Core
This is a facade class for the Service Locator.
It provides simple access to all core services.
- Author:
- viola, hengsin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<IColumnCallout>findCallout(String tableName, String columnName) static IAddressValidationgetAddressValidation(MAddressValidation validation) Get address validation instancestatic BankStatementLoaderInterfacegetBankStatementLoader(String className) get BankStatementLoader instancegetBankStatementMatcher(String className) get BankStatementMatcher instancestatic ICacheServicestatic CalloutgetCallout(String className, String methodName) static IClusterServicestatic ICreditManagergetCreditManager(PO po) get Credit Managerstatic IDepreciationMethodgetDepreciationMethod(DepreciationFactoryLookupDTO factoryLookupDTO) lookup implementIDepreciationMethodstatic IDictionaryServicestatic IEventManagerstatic IKeyStorestatic IMappedColumnCalloutFactorystatic IMappedDocumentFactorystatic IMappedModelFactorystatic IMappedProcessFactorystatic IMarkdownRendererGet markdown renderer servicestatic IMessageServicestatic ModelValidatorgetModelValidator(String validatorId) static PaymentExportgetPaymentExporter(String className) get PaymentExporter instancestatic PaymentProcessorGet payment processor instancestatic IPrintHeaderFootergetPrintHeaderFooter(I_AD_PrintHeaderFooter printHeaderFooter) Get print header/footer instancestatic ProcessCallgetProcess(String processId) static IProductPricingget ProductPricing instancestatic ReplenishInterfacegetReplenish(String className) get Custom Replenish instancestatic IReservationTracerFactoryGetIReservationTracerFactorycomponentstatic IResourceFinderstatic ScriptEnginegetScriptEngine(String engineName) Get script enginestatic IShipmentProcessorstatic ITaxLookupGet tax lookup servicestatic ITaxProvidergetTaxProvider(MTaxProvider provider) Get tax provider instancestatic IUploadServicegetUploadService(MAuthorizationAccount account) static List<IUploadService>
-
Field Details
-
SCRIPT_ENGINE_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IPROCESS_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IRESOURCE_FINDER_CACHE_TABLE_NAME
- See Also:
-
IDEPRECIATION_METHOD_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IPAYMENT_EXPORTER_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IREPLENISH_FACTORY_CACHE_TABLE_NAME
- See Also:
-
ITAX_PROVIDER_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IADDRESS_VALIDATION_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IBANK_STATEMENT_MATCHER_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IBANK_STATEMENT_LOADER_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IMODEL_VALIDATOR_FACTORY_CACHE_TABLE_NAME
- See Also:
-
ISHIPMENT_PROCESSOR_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IPAYMENT_PROCESSOR_FACTORY_CACHE_TABLE_NAME
- See Also:
-
IPRINT_HEADER_FOOTER_CACHE_TABLE_NAME
- See Also:
-
-
Constructor Details
-
Core
public Core()
-
-
Method Details
-
getResourceFinder
- Returns:
- list of active resource finder
-
findCallout
- Parameters:
tableName-columnName-- Returns:
- list of callout register for tableName.columnName
-
getCallout
- Parameters:
className-methodName-- Returns:
- callout for className
-
getProcess
- Parameters:
processId- Java class name or equinox extension id- Returns:
- ProcessCall instance or null if processId not found
-
getModelValidator
- Parameters:
validatorId- Java class name or equinox extension Id- Returns:
- ModelValidator instance of null if validatorId not found
-
getKeyStore
- Returns:
IKeyStore
-
getPaymentProcessor
Get payment processor instance- Parameters:
mbap- payment processor modelmp- payment model- Returns:
- initialized PaymentProcessor or null
-
getBankStatementLoader
get BankStatementLoader instance- Parameters:
className-- Returns:
- instance of the BankStatementLoaderInterface or null
-
getBankStatementMatcher
get BankStatementMatcher instance- Parameters:
className-- Returns:
- instance of the BankStatementMatcherInterface or null
-
getShipmentProcessor
- Parameters:
sf-- Returns:
- shipment process instance or null if not found
-
getAddressValidation
Get address validation instance- Parameters:
validation-- Returns:
- address validation instance or null if not found
-
getTaxProvider
Get tax provider instance- Parameters:
provider-- Returns:
- tax provider instance or null if not found
-
getReplenish
get Custom Replenish instance- Parameters:
className-- Returns:
- instance of the ReplenishInterface or null
-
getScriptEngine
Get script engine- Parameters:
engineName-- Returns:
- ScriptEngine found, or null
-
getPaymentExporter
get PaymentExporter instance- Parameters:
className-- Returns:
- instance of the PaymentExporterInterface or null
-
getProductPricing
get ProductPricing instance- Returns:
- instance of the IProductPricing or null
-
getDepreciationMethod
public static IDepreciationMethod getDepreciationMethod(DepreciationFactoryLookupDTO factoryLookupDTO) lookup implementIDepreciationMethod- Parameters:
factoryLookupDTO-- Returns:
IDepreciationMethod
-
getMessageService
- Returns:
IMessageService
-
getClusterService
- Returns:
IClusterService
-
getCacheService
- Returns:
ICacheService
-
getDictionaryService
- Returns:
IDictionaryService
-
getMappedModelFactory
- Returns:
IMappedModelFactory
-
getMappedProcessFactory
- Returns:
IMappedProcessFactory
-
getMappedColumnCalloutFactory
- Returns:
IMappedColumnCalloutFactory
-
getMappedDocumentFactory
- Returns:
IMappedDocumentFactory
-
getEventManager
- Returns:
IEventManager
-
getUploadServices
- Returns:
IUploadService
-
getUploadService
- Parameters:
account-- Returns:
IUploadService
-
getReservationTracerFactory
GetIReservationTracerFactorycomponent- Returns:
IReservationTracerFactoryimplementation
-
getTaxLookup
Get tax lookup service- Returns:
- ITaxLookup service
-
getDefaultAnnotationBasedEventManager
- Returns:
DefaultAnnotationBasedEventManager
-
getCreditManager
get Credit Manager- Parameters:
po-- Returns:
- instance of the ICreditManager
-
getReportRenderer
-
getMarkdownRenderer
Get markdown renderer service- Returns:
- markdown renderer service
-