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