public abstract class AbstractContentStore extends Object implements ContentStore
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
AbstractContentStore(ContentHasher hasher,
com.metabroadcast.common.ids.IdGenerator idGenerator,
MessageSender sender,
com.metabroadcast.common.time.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doWriteContent(Content content,
Content previous) |
protected abstract Content |
resolvePrevious(Id id,
org.atlasapi.media.entity.Publisher source,
Set<Alias> aliases) |
protected abstract Item.ContainerSummary |
summarize(ContainerRef primary) |
<C extends Content> |
writeContent(C content) |
protected abstract void |
writeItemRef(ContainerRef containerId,
ItemRef childRef)
Add a ref to the child in the container and update its
thisOrChildLastUpdated time.
|
protected abstract void |
writeSecondaryContainerRef(BrandRef primary,
SeriesRef seriesRef)
Add a ref to the series in the primary container and update its
thisOrChildLastUpdated time.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveAliasesresolveIdspublic AbstractContentStore(ContentHasher hasher, com.metabroadcast.common.ids.IdGenerator idGenerator, MessageSender sender, com.metabroadcast.common.time.Clock clock)
public final <C extends Content> WriteResult<C> writeContent(C content) throws WriteException
writeContent in interface ContentWriterWriteException@Nullable protected abstract Content resolvePrevious(@Nullable Id id, org.atlasapi.media.entity.Publisher source, Set<Alias> aliases)
protected abstract Item.ContainerSummary summarize(ContainerRef primary)
protected abstract void writeSecondaryContainerRef(BrandRef primary, SeriesRef seriesRef)
primary - series - protected abstract void writeItemRef(ContainerRef containerId, ItemRef childRef)
containerId - child - Copyright © 2014. All rights reserved.