public class FeatureStorage
extends java.lang.Object
| Constructor and Description |
|---|
FeatureStorage(FeatureDAO featureDAO)
Constructor for FeatureStorage.
|
| Modifier and Type | Method and Description |
|---|---|
long |
countFeatures()
countFeatures.
|
Feature |
createFeature(Feature feature)
createFeature.
|
void |
deleteFeature(long featureId)
deleteFeature.
|
Feature |
getFeatureById(long FeatureId)
getFeatureById.
|
java.util.List<Feature> |
getFeatures()
getFeatures.
|
Feature |
toDTO(FeatureEntity featureEntity)
toDTO.
|
FeatureEntity |
toEntity(Feature feature)
toEntity.
|
Feature |
updateFeature(Feature feature)
updateFeature.
|
public FeatureStorage(FeatureDAO featureDAO)
Constructor for FeatureStorage.
featureDAO - a FeatureDAO object.public Feature createFeature(Feature feature) throws java.lang.Exception
createFeature.
public Feature updateFeature(Feature feature) throws java.lang.Exception
updateFeature.
public void deleteFeature(long featureId)
throws org.gatein.api.EntityNotFoundException
deleteFeature.
featureId - a long.org.gatein.api.EntityNotFoundException - if any.public Feature getFeatureById(long FeatureId)
getFeatureById.
FeatureId - a long.Feature object.public java.util.List<Feature> getFeatures()
getFeatures.
List object.public long countFeatures()
countFeatures.
public Feature toDTO(FeatureEntity featureEntity)
toDTO.
featureEntity - a FeatureEntity object.Feature object.public FeatureEntity toEntity(Feature feature)
toEntity.
feature - a Feature object.FeatureEntity object.Copyright © 2003–2021 eXo Platform SAS. All rights reserved.