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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<IColumnCallout>
findCallout
(String tableName, String columnName) static IAddressValidation
getAddressValidation
(MAddressValidation validation) Get address validation instancestatic BankStatementLoaderInterface
getBankStatementLoader
(String className) get BankStatementLoader instancegetBankStatementMatcher
(String className) get BankStatementMatcher instancestatic ICacheService
static Callout
getCallout
(String className, String methodName) static IClusterService
static ICreditManager
getCreditManager
(PO po) get Credit Managerstatic IDepreciationMethod
getDepreciationMethod
(DepreciationFactoryLookupDTO factoryLookupDTO) lookup implementIDepreciationMethod
static IDictionaryService
static IEventManager
static IKeyStore
static IMappedColumnCalloutFactory
static IMappedDocumentFactory
static IMappedModelFactory
static IMappedProcessFactory
static IMessageService
static ModelValidator
getModelValidator
(String validatorId) static PaymentExport
getPaymentExporter
(String className) get PaymentExporter instancestatic PaymentProcessor
Get payment processor instancestatic IPrintHeaderFooter
getPrintHeaderFooter
(I_AD_PrintHeaderFooter printHeaderFooter) Get print header/footer instancestatic ProcessCall
getProcess
(String processId) static IProductPricing
get ProductPricing instancestatic ReplenishInterface
getReplenish
(String className) get Custom Replenish instancestatic IReservationTracerFactory
GetIReservationTracerFactory
componentstatic IResourceFinder
static ScriptEngine
getScriptEngine
(String engineName) Get script enginestatic IShipmentProcessor
static ITaxLookup
Get tax lookup servicestatic ITaxProvider
getTaxProvider
(MTaxProvider provider) Get tax provider instancestatic IUploadService
getUploadService
(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
GetIReservationTracerFactory
component- Returns:
IReservationTracerFactory
implementation
-
getTaxLookup
Get tax lookup service- Returns:
- ITaxLookup service
-
getDefaultAnnotationBasedEventManager
- Returns:
DefaultAnnotationBasedEventManager
-
getCreditManager
get Credit Manager- Parameters:
po
-- Returns:
- instance of the ICreditManager
-
getReportRenderer
-