Class OfficeRepositoryImpl
- java.lang.Object
-
- net.officefloor.model.impl.office.OfficeRepositoryImpl
-
- All Implemented Interfaces:
OfficeRepository
public class OfficeRepositoryImpl extends java.lang.Object implements OfficeRepository
OfficeRepository
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeRepositoryImpl(ModelRepository modelRepository)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
retrieveOffice(OfficeModel office, ConfigurationItem configuration)
Retrieves theOfficeModel
from theConfigurationItem
.void
storeOffice(OfficeModel office, WritableConfigurationItem configuration)
Stores theOfficeModel
into theConfigurationItem
.
-
-
-
Constructor Detail
-
OfficeRepositoryImpl
public OfficeRepositoryImpl(ModelRepository modelRepository)
Initiate.- Parameters:
modelRepository
-ModelRepository
.
-
-
Method Detail
-
retrieveOffice
public void retrieveOffice(OfficeModel office, ConfigurationItem configuration) throws java.lang.Exception
Description copied from interface:OfficeRepository
Retrieves theOfficeModel
from theConfigurationItem
.- Specified by:
retrieveOffice
in interfaceOfficeRepository
- Parameters:
office
-OfficeModel
.configuration
-ConfigurationItem
containing theOfficeModel
.- Throws:
java.lang.Exception
- If fails to retrieve theOfficeModel
.
-
storeOffice
public void storeOffice(OfficeModel office, WritableConfigurationItem configuration) throws java.lang.Exception
Description copied from interface:OfficeRepository
Stores theOfficeModel
into theConfigurationItem
.- Specified by:
storeOffice
in interfaceOfficeRepository
- Parameters:
office
-OfficeModel
.configuration
-WritableConfigurationItem
to contain theOfficeModel
.- Throws:
java.lang.Exception
- If fails to store theOfficeModel
.
-
-