Class DefaultSmarteditConfigurationService
- java.lang.Object
-
- de.hybris.platform.smarteditwebservices.configuration.service.impl.DefaultSmarteditConfigurationService
-
- All Implemented Interfaces:
SmarteditConfigurationService
public class DefaultSmarteditConfigurationService extends java.lang.Object implements SmarteditConfigurationService
Default implementation of the Smartedit Configuration Service. It has dependencies on theModelServiceandSmarteditConfigurationDao
-
-
Constructor Summary
Constructors Constructor Description DefaultSmarteditConfigurationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SmarteditConfigurationModelcreate(SmarteditConfigurationModel configurationModel)Create a new configuration modelvoiddelete(java.lang.String uid)Deletes the configuration model represented by this unique identifierjava.util.List<SmarteditConfigurationModel>findAll()Finds all ConfigurationData stores in the data store.SmarteditConfigurationModelfindByKey(java.lang.String key)Finds a configuration data bean by its unique identifierprotected ModelServicegetModelService()protected SmarteditConfigurationDaogetSmarteditConfigurationDao()voidsetModelService(ModelService modelService)voidsetSmarteditConfigurationDao(SmarteditConfigurationDao smarteditConfigurationDao)SmarteditConfigurationModelupdate(java.lang.String uid, SmarteditConfigurationModel configurationModel)Updates the configuration model represented by the uid
-
-
-
Method Detail
-
findAll
public java.util.List<SmarteditConfigurationModel> findAll()
Description copied from interface:SmarteditConfigurationServiceFinds all ConfigurationData stores in the data store.- Specified by:
findAllin interfaceSmarteditConfigurationService- Returns:
- a list of
SmarteditConfigurationModel
-
create
public SmarteditConfigurationModel create(SmarteditConfigurationModel configurationModel)
Description copied from interface:SmarteditConfigurationServiceCreate a new configuration model- Specified by:
createin interfaceSmarteditConfigurationService- Parameters:
configurationModel- the model to be saved- Returns:
- tyhe model created
-
update
public SmarteditConfigurationModel update(java.lang.String uid, SmarteditConfigurationModel configurationModel)
Description copied from interface:SmarteditConfigurationServiceUpdates the configuration model represented by the uid- Specified by:
updatein interfaceSmarteditConfigurationService- Parameters:
uid- is the unique identifier of this configurationconfigurationModel- - the model to be updated- Returns:
- the configuration model updated
-
delete
public void delete(java.lang.String uid)
Description copied from interface:SmarteditConfigurationServiceDeletes the configuration model represented by this unique identifier- Specified by:
deletein interfaceSmarteditConfigurationService- Parameters:
uid- the model' unique identifier
-
findByKey
public SmarteditConfigurationModel findByKey(java.lang.String key)
Description copied from interface:SmarteditConfigurationServiceFinds a configuration data bean by its unique identifier- Specified by:
findByKeyin interfaceSmarteditConfigurationService- Parameters:
key- the configuration's unique identifier- Returns:
- the
SmarteditConfigurationModelinstance, or null if it does not exist in the data store.
-
getSmarteditConfigurationDao
protected SmarteditConfigurationDao getSmarteditConfigurationDao()
-
setSmarteditConfigurationDao
public void setSmarteditConfigurationDao(SmarteditConfigurationDao smarteditConfigurationDao)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-