public abstract class AbstractContentStore extends Object implements ContentStore
| Modifier and Type | Field and Description |
|---|---|
static Content |
NO_PREVIOUS |
| Constructor and Description |
|---|
AbstractContentStore(ContentHasher hasher,
com.metabroadcast.common.ids.IdGenerator idGenerator,
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(ParentRef primary) |
protected abstract void |
writeChildRef(ParentRef containerId,
ChildRef childRef)
Add a ref to the child in the container and update its
thisOrChildLastUpdated time.
|
<C extends Content> |
writeContent(C content) |
protected abstract void |
writeSecondaryContainerRef(ParentRef 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 static final Content NO_PREVIOUS
public AbstractContentStore(ContentHasher hasher, com.metabroadcast.common.ids.IdGenerator idGenerator, com.metabroadcast.common.time.Clock clock)
public final <C extends Content> WriteResult<C> writeContent(C content)
writeContent in interface ContentWriter@Nullable protected abstract Content resolvePrevious(@Nullable Id id, org.atlasapi.media.entity.Publisher source, Set<Alias> aliases)
protected abstract Item.ContainerSummary summarize(ParentRef primary)
protected abstract void writeSecondaryContainerRef(ParentRef primary, SeriesRef seriesRef)
primary - series - Copyright © 2014. All rights reserved.