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
-
Method Summary
Modifier and TypeMethodDescriptiongetCopy()
getId()
boolean
isStorageOfferEnabled
(String offerId) check whether storage offer is enabled (not present means disabled becausepostInit()
method can filter it)boolean
isStorageOfferReferent
(String offerId) void
postInit()
remove (after init) inactive offerReferencesvoid
void
setOffers
(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
-