Class SAPConfigurationServiceImpl
- java.lang.Object
-
- de.hybris.platform.sap.core.configuration.impl.SAPConfigurationServiceImpl
-
- All Implemented Interfaces:
ConfigurationPropertyAccess,SAPConfigurationService
public class SAPConfigurationServiceImpl extends java.lang.Object implements SAPConfigurationService
Model implementation ofSAPConfigurationService.
-
-
Constructor Summary
Constructors Constructor Description SAPConfigurationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAllProperties()Returns all simple properties.java.util.Map<java.lang.String,java.util.Collection<ConfigurationPropertyAccess>>getAllPropertyAccessCollections()Returns all related property access collections (1:n relation).java.util.Map<java.lang.String,ConfigurationPropertyAccess>getAllPropertyAccesses()Returns all related property accesses (1:1 relation).java.lang.StringgetBackendType()Returns the SAP backend type (e.g.java.lang.ObjectgetBaseStoreProperty(java.lang.String propertyName)Returns the value of the requested Base Store property.BaseStoreServicegetBaseStoreService()Returns theBaseStoreService.<T> TgetProperty(java.lang.String propertyName)Returns the value of the requested simple property.ConfigurationPropertyAccessgetPropertyAccess(java.lang.String propertyAccessName)Returns the requested related property access (1:1 relation).java.util.Collection<ConfigurationPropertyAccess>getPropertyAccessCollection(java.lang.String propertyAccessCollectionName)Returns the requested related property access collection (1:n relation).RFCDestinationgetRFCDestination()Returns the RFC destination.java.lang.StringgetSAPConfigurationName()Returns the SAP configuration name.booleanisBaseStoreActive()Checks if currently a Base Store is active.booleanisSAPConfigurationActive()Checks if currently an SAP configuration is active.voidsetBaseStoreService(BaseStoreService baseStoreService)Injection setter forBaseStoreService.java.lang.StringtoString()
-
-
-
Method Detail
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
Injection setter forBaseStoreService.- Parameters:
baseStoreService-BaseStoreServiceto set
-
getBaseStoreService
public BaseStoreService getBaseStoreService()
Returns theBaseStoreService.- Returns:
BaseStoreService
-
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
public java.lang.String getSAPConfigurationName()
Description copied from interface:SAPConfigurationServiceReturns the SAP configuration name.- Specified by:
getSAPConfigurationNamein interfaceSAPConfigurationService- Returns:
- Name of the SAPConfiguration
-
getProperty
public <T> T getProperty(java.lang.String propertyName)
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
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
Description copied from interface:ConfigurationPropertyAccessReturns all simple properties.- Specified by:
getAllPropertiesin interfaceConfigurationPropertyAccess- Returns:
- map of all simple properties (name/value pairs)
-
getPropertyAccess
public ConfigurationPropertyAccess getPropertyAccess(java.lang.String propertyAccessName)
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
public java.util.Map<java.lang.String,ConfigurationPropertyAccess> 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 java.util.Collection<ConfigurationPropertyAccess> getPropertyAccessCollection(java.lang.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
public java.util.Map<java.lang.String,java.util.Collection<ConfigurationPropertyAccess>> 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)
-
getBaseStoreProperty
public java.lang.Object getBaseStoreProperty(java.lang.String propertyName)
Description copied from interface:SAPConfigurationServiceReturns the value of the requested Base Store property.- Specified by:
getBaseStorePropertyin interfaceSAPConfigurationService- Parameters:
propertyName- Property name- Returns:
- Property value
-
getBackendType
public java.lang.String getBackendType()
Description copied from interface:SAPConfigurationServiceReturns the SAP backend type (e.g. ERP).- Specified by:
getBackendTypein interfaceSAPConfigurationService- Returns:
- backend type
-
getRFCDestination
public RFCDestination getRFCDestination()
Description copied from interface:SAPConfigurationServiceReturns the RFC destination.- Specified by:
getRFCDestinationin interfaceSAPConfigurationService- Returns:
- RFC destination
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-