Class StorageStrategy
java.lang.Object
fr.gouv.vitam.storage.engine.common.referential.model.StorageStrategy
Represents a storage strategy (that may be mapped from Json but not
exclusively)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()getId()booleanisStorageOfferEnabled(String offerId) check whether storage offer is enabled (not present means disabled becausepostInit()method can filter it)booleanisStorageOfferReferent(String offerId) voidpostInit()remove (after init) inactive offerReferencesvoidvoidsetOffers(List<OfferReference> offers)
-
Constructor Details
-
StorageStrategy
public StorageStrategy()
-
-
Method Details
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- of host storage
-
getOffers
- Returns:
- the list of offer references
-
setOffers
- Parameters:
offers- list ofOfferReference
-
getCopy
-
postInit
public void postInit()remove (after init) inactive offerReferences -
isStorageOfferEnabled
check whether storage offer is enabled (not present means disabled becausepostInit()method can filter it)- Parameters:
offerId- storageOfferId to check- Returns:
-
isStorageOfferReferent
-