Package com.hybris.cockpitng.core.config
Interface CockpitConfigurationPersistenceStrategy
-
- All Known Implementing Classes:
DefaultCockpitConfigurationPersistenceStrategy
public interface CockpitConfigurationPersistenceStrategyStrategy for persisting cockpit configuration. Used byCockpitConfigurationService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamgetConfigurationInputStream()Returns the cockpit configuration XML document as an input stream.java.io.OutputStreamgetConfigurationOutputStream()Returns the output stream to write the cockpit configuration XML document to.java.io.InputStreamgetDefaultConfigurationInputStream()Returns the DEFAULT cockpit configuration XML document as an input stream.longgetLastModification()Returns the timestamp of the last modification of the configuration.
-
-
-
Method Detail
-
getLastModification
long getLastModification()
Returns the timestamp of the last modification of the configuration. Used for caching. Returns 0 if not available.- Returns:
- timestamp of the last modification of the configuration. Used for caching. Returns 0 if not available.
-
getConfigurationInputStream
java.io.InputStream getConfigurationInputStream() throws java.io.IOExceptionReturns the cockpit configuration XML document as an input stream.- Returns:
- cockpit configuration XML document as an input stream
- Throws:
java.io.IOException
-
getConfigurationOutputStream
java.io.OutputStream getConfigurationOutputStream() throws java.io.IOExceptionReturns the output stream to write the cockpit configuration XML document to.- Returns:
- output stream to write the cockpit configuration XML document to
- Throws:
java.io.IOException
-
getDefaultConfigurationInputStream
java.io.InputStream getDefaultConfigurationInputStream() throws java.io.IOExceptionReturns the DEFAULT cockpit configuration XML document as an input stream.- Returns:
- DEFAULT cockpit configuration XML document as an input stream
- Throws:
java.io.IOException
-
-