Package | Description |
---|---|
com.edorasware.commons.core.content |
Classes related to content management.
|
com.edorasware.commons.core.content.support |
Support classes for content management.
|
com.edorasware.commons.core.content.support.database |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<ContentMetadata> |
ContentInfo.getContentMetadata()
Gets the content metadata associated to the content or a
Optional.absent() value. |
com.google.common.base.Optional<ContentMetadata> |
ContentManager.getContentMetadata(ContentReference contentReference)
Returns the metadata of the latest version of the content.
|
com.google.common.base.Optional<ContentMetadata> |
ContentManager.getContentMetadata(ContentReference contentReference,
String version)
Returns the metadata of the supplied version of the content.
|
com.google.common.base.Optional<ContentMetadata> |
ContentProvider.getContentMetadata(ContentScope contentScope,
ContentReference contentReference)
Returns the metadata of the latest version of the content.
|
com.google.common.base.Optional<ContentMetadata> |
ContentProvider.getContentMetadata(ContentScope contentScope,
ContentReference contentReference,
String version)
Returns the metadata of the supplied version of the content.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.net.MediaType |
ContentDetector.detect(ContentMetadata contentMetadata)
Detects the content media type based on the content metadata.
|
Modifier and Type | Method and Description |
---|---|
void |
ContentProvider.addContent(ContentScope contentScope,
ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
InputStream inputStream,
int inputStreamLength)
Add content with the specified
ContentInfo and the content itself as InputStream . |
ContentReference |
ContentManager.updateContent(ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata)
This method behaves exactly like calling
ContentManager.updateContent(ContentReference, InputStream, int, Optional, boolean) with the last parameter set to false. |
ContentReference |
ContentManager.updateContent(ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
boolean overwrite)
Updates the the content and the metadata of the specified
ContentReference with the specified InputStream and ContentMetadata , with the option to
overwrite te existing version. |
ContentReference |
ContentProvider.updateContent(ContentScope contentScope,
ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata)
Updates the specified
ContentReference with the specified InputStream . |
ContentReference |
ContentProvider.updateContent(ContentScope contentScope,
ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
boolean overwrite)
Updates the specified
ContentReference with the specified InputStream . |
void |
ContentManager.updateContentMetadata(ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata)
Updates the content metadata.
|
void |
ContentProvider.updateContentMetadata(ContentScope contentScope,
ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata)
Updates the content metadata.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<ContentMetadata> |
BaseConfigurableContentProvider.getContentMetadata(ContentScope contentScope,
ContentReference contentReference) |
com.google.common.base.Optional<ContentMetadata> |
BaseConfigurableContentProvider.getContentMetadata(ContentScope contentScope,
ContentReference contentReference,
String version) |
com.google.common.base.Optional<ContentMetadata> |
ContentEvent.getNewContentMetadata()
Gets the current content metadata from the content involved in the event.
|
com.google.common.base.Optional<ContentMetadata> |
ContentEvent.getOldContentMetadata()
Gets the previous content metadata from the content involved in the event.
|
protected abstract com.google.common.base.Optional<ContentMetadata> |
BaseConfigurableContentProvider.internalGetContentMetadata(ContentScope contentScope,
ContentReference contentReference) |
protected abstract com.google.common.base.Optional<ContentMetadata> |
BaseConfigurableContentProvider.internalGetContentMetadata(ContentScope contentScope,
ContentReference contentReference,
String version) |
Modifier and Type | Method and Description |
---|---|
void |
BaseConfigurableContentProvider.addContent(ContentScope contentScope,
ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
InputStream inputStream,
int inputStreamLength) |
protected abstract void |
BaseConfigurableContentProvider.internalAddContent(ContentScope contentScope,
ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
InputStream inputStream,
int inputStreamLength) |
protected abstract ContentReference |
BaseConfigurableContentProvider.internalUpdateContent(ContentScope contentScope,
ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
boolean overwrite) |
protected abstract void |
BaseConfigurableContentProvider.internalUpdateContentMetadata(ContentScope contentScope,
ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata) |
ContentReference |
BaseConfigurableContentProvider.updateContent(ContentScope contentScope,
ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata) |
ContentReference |
BaseConfigurableContentProvider.updateContent(ContentScope contentScope,
ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
boolean overwrite) |
void |
BaseConfigurableContentProvider.updateContentMetadata(ContentScope contentScope,
ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<ContentMetadata> |
DatabaseContentPersistence.getContentMetadata(ContentScope contentScope,
ContentReference contentReference,
int version)
Returns the metadata of the content.
|
Modifier and Type | Method and Description |
---|---|
void |
DatabaseContentPersistence.addContent(ContentScope contentScope,
ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
boolean overwrite)
Add content with the specified
ContentReference and the content itself as InputStream . |
void |
DatabaseContentPersistence.updateContentMetadata(ContentScope contentScope,
ContentReference contentReference,
int version,
com.google.common.base.Optional<ContentMetadata> contentMetadata)
Updates the content metadata.
|
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.