Class FeatureStorage
java.lang.Object
org.exoplatform.timetracker.storage.FeatureStorage
Storage service to access / load and save Features. This service will be
used , as well, to convert from JPA entity to DTO.
- Version:
- $Id: $Id
- Author:
- medamine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountFeatures.createFeature(Feature feature) createFeature.voiddeleteFeature(long featureId) deleteFeature.getFeatureById(long FeatureId) getFeatureById.getFeatures.toDTO(FeatureEntity featureEntity) toDTO.toEntity.updateFeature(Feature feature) updateFeature.
-
Constructor Details
-
FeatureStorage
Constructor for FeatureStorage.
- Parameters:
featureDAO- aFeatureDAOobject.
-
-
Method Details
-
createFeature
createFeature.
-
updateFeature
updateFeature.
-
deleteFeature
public void deleteFeature(long featureId) throws org.gatein.api.EntityNotFoundException deleteFeature.
- Parameters:
featureId- a long.- Throws:
org.gatein.api.EntityNotFoundException- if any.
-
getFeatureById
getFeatureById.
- Parameters:
FeatureId- a long.- Returns:
- a
Featureobject.
-
getFeatures
getFeatures.
- Returns:
- a
Listobject.
-
countFeatures
public long countFeatures()countFeatures.
- Returns:
- a long.
-
toDTO
toDTO.
- Parameters:
featureEntity- aFeatureEntityobject.- Returns:
- a
Featureobject.
-
toEntity
toEntity.
- Parameters:
feature- aFeatureobject.- Returns:
- a
FeatureEntityobject.
-