Class ModuleConfigurationAccessImpl
java.lang.Object
de.hybris.platform.sap.core.module.impl.ModuleConfigurationAccessImpl
- All Implemented Interfaces:
ConfigurationPropertyAccess,SAPConfigurationService,ModuleConfigurationAccess
Access to module configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all simple properties.Returns all related property access collections (1:n relation).Returns all related property accesses (1:1 relation).Returns the SAP backend type (e.g.getBaseStoreProperty(String property) Returns the value of the requested Base Store property.Returns the module id of the module configuration access.<T> TgetProperty(String propertyName) Returns the value of the requested simple property.getPropertyAccess(String propertyAccessName) Returns the requested related property access (1:1 relation).getPropertyAccessCollection(String propertyAccessCollectionName) Returns the requested related property access collection (1:n relation).Returns the RFC destination.Returns the SAP configuration name.voidinit()Initializes the module configuration access.booleanChecks if currently a Base Store is active.booleanChecks if currently an SAP configuration is active.voidsetBaseStoreProperties(Map<String, Object> baseStoreProperties) Injection setter for Base Store properties.voidsetConfigurationService(SAPConfigurationService configurationService) Injection setter for SAP configuration service.voidsetModuleId(String moduleId) Injection setter for module id.voidsetProperties(Map<String, Object> properties) Injection setter for properties.voidsetPropertyAccessCollections(Map<String, Collection<ConfigurationPropertyAccess>> propertyAccessCollections) Injection setter for property access collections (1:n relations).voidsetPropertyAccesses(Map<String, ConfigurationPropertyAccess> propertyAccesses) Injection setter for property accesses (1:1 relations).toString()
-
Constructor Details
-
ModuleConfigurationAccessImpl
public ModuleConfigurationAccessImpl()
-
-
Method Details
-
setConfigurationService
Injection setter for SAP configuration service.- Parameters:
configurationService- SAP Configuration service
-
setModuleId
Injection setter for module id.- Parameters:
moduleId- Module id to be set
-
setBaseStoreProperties
Injection setter for Base Store properties.- Parameters:
baseStoreProperties- Base Store properties to set
-
setProperties
Injection setter for properties.- Parameters:
properties- properties
-
setPropertyAccesses
Injection setter for property accesses (1:1 relations).- Parameters:
propertyAccesses- property accesses
-
setPropertyAccessCollections
public void setPropertyAccessCollections(Map<String, Collection<ConfigurationPropertyAccess>> propertyAccessCollections) Injection setter for property access collections (1:n relations).- Parameters:
propertyAccessCollections- property access collections
-
init
public void init()Initializes the module configuration access. -
isSAPConfigurationActive
public boolean isSAPConfigurationActive()Description copied from interface:SAPConfigurationServiceChecks if currently an SAP configuration is active.- Specified by:
isSAPConfigurationActivein interfaceSAPConfigurationService- Returns:
- true, if an SAP configuration is active
-
isBaseStoreActive
public boolean isBaseStoreActive()Description copied from interface:SAPConfigurationServiceChecks if currently a Base Store is active.- Specified by:
isBaseStoreActivein interfaceSAPConfigurationService- Returns:
- true, if a Base Store is active
-
getSAPConfigurationName
Description copied from interface:SAPConfigurationServiceReturns the SAP configuration name.- Specified by:
getSAPConfigurationNamein interfaceSAPConfigurationService- Returns:
- Name of the SAPConfiguration
-
getModuleId
Description copied from interface:ModuleConfigurationAccessReturns the module id of the module configuration access.- Specified by:
getModuleIdin interfaceModuleConfigurationAccess- Returns:
- Module id
-
getBackendType
Description copied from interface:SAPConfigurationServiceReturns the SAP backend type (e.g. ERP).- Specified by:
getBackendTypein interfaceSAPConfigurationService- Returns:
- backend type
-
getRFCDestination
Description copied from interface:SAPConfigurationServiceReturns the RFC destination.- Specified by:
getRFCDestinationin interfaceSAPConfigurationService- Returns:
- RFC destination
-
getBaseStoreProperty
Description copied from interface:SAPConfigurationServiceReturns the value of the requested Base Store property.- Specified by:
getBaseStorePropertyin interfaceSAPConfigurationService- Parameters:
property- Property name- Returns:
- Property value
-
getProperty
Description copied from interface:ConfigurationPropertyAccessReturns the value of the requested simple property.- Specified by:
getPropertyin interfaceConfigurationPropertyAccess- Type Parameters:
T- type of the property value- Parameters:
propertyName- name of property- Returns:
- value of the requested property
-
getAllProperties
Description copied from interface:ConfigurationPropertyAccessReturns all simple properties.- Specified by:
getAllPropertiesin interfaceConfigurationPropertyAccess- Returns:
- map of all simple properties (name/value pairs)
-
getPropertyAccess
Description copied from interface:ConfigurationPropertyAccessReturns the requested related property access (1:1 relation).- Specified by:
getPropertyAccessin interfaceConfigurationPropertyAccess- Parameters:
propertyAccessName- name of property related property access- Returns:
- value of the requested property
-
getAllPropertyAccesses
Description copied from interface:ConfigurationPropertyAccessReturns all related property accesses (1:1 relation).- Specified by:
getAllPropertyAccessesin interfaceConfigurationPropertyAccess- Returns:
- map of all related property accesses (name/property access pairs)
-
getPropertyAccessCollection
public Collection<ConfigurationPropertyAccess> getPropertyAccessCollection(String propertyAccessCollectionName) Description copied from interface:ConfigurationPropertyAccessReturns the requested related property access collection (1:n relation).- Specified by:
getPropertyAccessCollectionin interfaceConfigurationPropertyAccess- Parameters:
propertyAccessCollectionName- name of property related property access- Returns:
- value of the requested property
-
getAllPropertyAccessCollections
Description copied from interface:ConfigurationPropertyAccessReturns all related property access collections (1:n relation).- Specified by:
getAllPropertyAccessCollectionsin interfaceConfigurationPropertyAccess- Returns:
- map of all related property access collections (name/property access collection pairs)
-
toString
-