Package org.adempiere.base
Class Core
- java.lang.Object
-
- org.adempiere.base.Core
-
public class Core extends Object
This is a facade class for the Service Locator. It provides simple access to all core services.- Author:
- viola, hengsin
-
-
Field Summary
Fields Modifier and Type Field Description static String
IADDRESS_VALIDATION_FACTORY_CACHE_TABLE_NAME
static String
IBANK_STATEMENT_LOADER_FACTORY_CACHE_TABLE_NAME
static String
IBANK_STATEMENT_MATCHER_FACTORY_CACHE_TABLE_NAME
static String
IDEPRECIATION_METHOD_FACTORY_CACHE_TABLE_NAME
static String
IMODEL_VALIDATOR_FACTORY_CACHE_TABLE_NAME
static String
IPAYMENT_EXPORTER_FACTORY_CACHE_TABLE_NAME
static String
IPAYMENT_PROCESSOR_FACTORY_CACHE_TABLE_NAME
static String
IPRINT_HEADER_FOOTER_CACHE_TABLE_NAME
static String
IPROCESS_FACTORY_CACHE_TABLE_NAME
static String
IREPLENISH_FACTORY_CACHE_TABLE_NAME
static String
IRESOURCE_FINDER_CACHE_TABLE_NAME
static String
ISHIPMENT_PROCESSOR_FACTORY_CACHE_TABLE_NAME
static String
ITAX_PROVIDER_FACTORY_CACHE_TABLE_NAME
static String
SCRIPT_ENGINE_FACTORY_CACHE_TABLE_NAME
-
Constructor Summary
Constructors Constructor Description Core()
-
Method Summary
-
-
-
Field Detail
-
SCRIPT_ENGINE_FACTORY_CACHE_TABLE_NAME
public static final String SCRIPT_ENGINE_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IPROCESS_FACTORY_CACHE_TABLE_NAME
public static final String IPROCESS_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IRESOURCE_FINDER_CACHE_TABLE_NAME
public static final String IRESOURCE_FINDER_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IDEPRECIATION_METHOD_FACTORY_CACHE_TABLE_NAME
public static final String IDEPRECIATION_METHOD_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IPAYMENT_EXPORTER_FACTORY_CACHE_TABLE_NAME
public static final String IPAYMENT_EXPORTER_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IREPLENISH_FACTORY_CACHE_TABLE_NAME
public static final String IREPLENISH_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
ITAX_PROVIDER_FACTORY_CACHE_TABLE_NAME
public static final String ITAX_PROVIDER_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IADDRESS_VALIDATION_FACTORY_CACHE_TABLE_NAME
public static final String IADDRESS_VALIDATION_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IBANK_STATEMENT_MATCHER_FACTORY_CACHE_TABLE_NAME
public static final String IBANK_STATEMENT_MATCHER_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IBANK_STATEMENT_LOADER_FACTORY_CACHE_TABLE_NAME
public static final String IBANK_STATEMENT_LOADER_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IMODEL_VALIDATOR_FACTORY_CACHE_TABLE_NAME
public static final String IMODEL_VALIDATOR_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
ISHIPMENT_PROCESSOR_FACTORY_CACHE_TABLE_NAME
public static final String ISHIPMENT_PROCESSOR_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IPAYMENT_PROCESSOR_FACTORY_CACHE_TABLE_NAME
public static final String IPAYMENT_PROCESSOR_FACTORY_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
IPRINT_HEADER_FOOTER_CACHE_TABLE_NAME
public static final String IPRINT_HEADER_FOOTER_CACHE_TABLE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResourceFinder
public static IResourceFinder getResourceFinder()
- Returns:
- list of active resource finder
-
findCallout
public static List<IColumnCallout> findCallout(String tableName, String columnName)
- Parameters:
tableName
-columnName
-- Returns:
- list of callout register for tableName.columnName
-
getCallout
public static Callout getCallout(String className, String methodName)
- Parameters:
className
-methodName
-- Returns:
- callout for className
-
getProcess
public static ProcessCall getProcess(String processId)
- Parameters:
processId
- Java class name or equinox extension id- Returns:
- ProcessCall instance or null if processId not found
-
getModelValidator
public static ModelValidator getModelValidator(String validatorId)
- Parameters:
validatorId
- Java class name or equinox extension Id- Returns:
- ModelValidator instance of null if validatorId not found
-
getPaymentProcessor
public static PaymentProcessor getPaymentProcessor(MBankAccountProcessor mbap, PaymentInterface mp)
Get payment processor instance- Parameters:
mbap
- payment processor modelmp
- payment model- Returns:
- initialized PaymentProcessor or null
-
getBankStatementLoader
public static BankStatementLoaderInterface getBankStatementLoader(String className)
get BankStatementLoader instance- Parameters:
className
-- Returns:
- instance of the BankStatementLoaderInterface or null
-
getBankStatementMatcher
public static BankStatementMatcherInterface getBankStatementMatcher(String className)
get BankStatementMatcher instance- Parameters:
className
-- Returns:
- instance of the BankStatementMatcherInterface or null
-
getShipmentProcessor
public static IShipmentProcessor getShipmentProcessor(MShipperFacade sf)
- Parameters:
sf
-- Returns:
- shipment process instance or null if not found
-
getAddressValidation
public static IAddressValidation getAddressValidation(MAddressValidation validation)
Get address validation instance- Parameters:
validation
-- Returns:
- address validation instance or null if not found
-
getTaxProvider
public static ITaxProvider getTaxProvider(MTaxProvider provider)
Get tax provider instance- Parameters:
provider
-- Returns:
- tax provider instance or null if not found
-
getReplenish
public static ReplenishInterface getReplenish(String className)
get Custom Replenish instance- Parameters:
className
-- Returns:
- instance of the ReplenishInterface or null
-
getScriptEngine
public static ScriptEngine getScriptEngine(String engineName)
Get script engine- Parameters:
engineName
-- Returns:
- ScriptEngine found, or null
-
getPaymentExporter
public static PaymentExport getPaymentExporter(String className)
get PaymentExporter instance- Parameters:
className
-- Returns:
- instance of the PaymentExporterInterface or null
-
getProductPricing
public static IProductPricing 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
public static IMessageService getMessageService()
- Returns:
IMessageService
-
getClusterService
public static IClusterService getClusterService()
- Returns:
IClusterService
-
getCacheService
public static ICacheService getCacheService()
- Returns:
ICacheService
-
getDictionaryService
public static IDictionaryService getDictionaryService()
- Returns:
IDictionaryService
-
getMappedModelFactory
public static IMappedModelFactory getMappedModelFactory()
- Returns:
IMappedModelFactory
-
getMappedProcessFactory
public static IMappedProcessFactory getMappedProcessFactory()
- Returns:
IMappedProcessFactory
-
getMappedColumnCalloutFactory
public static IMappedColumnCalloutFactory getMappedColumnCalloutFactory()
- Returns:
IMappedColumnCalloutFactory
-
getMappedDocumentFactory
public static IMappedDocumentFactory getMappedDocumentFactory()
- Returns:
IMappedDocumentFactory
-
getEventManager
public static IEventManager getEventManager()
- Returns:
IEventManager
-
getUploadServices
public static List<IUploadService> getUploadServices()
- Returns:
IUploadService
-
getUploadService
public static IUploadService getUploadService(MAuthorizationAccount account)
- Parameters:
account
-- Returns:
IUploadService
-
getPrintHeaderFooter
public static IPrintHeaderFooter getPrintHeaderFooter(I_AD_PrintHeaderFooter printHeaderFooter)
Get print header/footer instance- Parameters:
printHeaderFooter
- print header/footer- Returns:
- print header/footer instance or null if not found
-
getReservationTracerFactory
public static IReservationTracerFactory getReservationTracerFactory()
GetIReservationTracerFactory
component- Returns:
IReservationTracerFactory
implementation
-
-