Class SAPGlobalConfigurationServiceImpl
- java.lang.Object
-
- de.hybris.platform.sap.core.configuration.global.impl.SAPGlobalConfigurationServiceImpl
-
- All Implemented Interfaces:
ConfigurationPropertyAccess,SAPGlobalConfigurationService
public class SAPGlobalConfigurationServiceImpl extends java.lang.Object implements SAPGlobalConfigurationService
Exemplary Implementation to read global configuration properties.
-
-
Constructor Summary
Constructors Constructor Description SAPGlobalConfigurationServiceImpl()
-
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).<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).protected ConfigurationPropertyAccessgetSAPGlobalConfigurationCPA()Returns the sap configuration configuration property access.booleansapGlobalConfigurationExists()Returns true if a SAPGlobalConfiguration exists.voidsetSapGlobalConfigurationDAO(SAPGlobalConfigurationDAO globalConfigurationDAO)Setter for the globalConfigurationDAO variable.
-
-
-
Method Detail
-
setSapGlobalConfigurationDAO
public void setSapGlobalConfigurationDAO(SAPGlobalConfigurationDAO globalConfigurationDAO)
Setter for the globalConfigurationDAO variable.- Parameters:
globalConfigurationDAO- the new value for the variable.
-
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)
-
getSAPGlobalConfigurationCPA
protected ConfigurationPropertyAccess getSAPGlobalConfigurationCPA()
Returns the sap configuration configuration property access.- Returns:
- sap configuration configuration property access
-
sapGlobalConfigurationExists
public boolean sapGlobalConfigurationExists()
Description copied from interface:SAPGlobalConfigurationServiceReturns true if a SAPGlobalConfiguration exists.- Specified by:
sapGlobalConfigurationExistsin interfaceSAPGlobalConfigurationService- Returns:
- true if SAPGlobalConfiguration exists
-
-