Package | Description |
---|---|
com.edorasware.commons.core.content |
Classes related to content management.
|
com.edorasware.commons.core.content.maintenance | |
com.edorasware.commons.core.content.support |
Support classes for content management.
|
com.edorasware.commons.core.content.support.database |
Modifier and Type | Method and Description |
---|---|
ContentReference |
ContentManager.addContent(ContentInfo contentInfo,
InputStream inputStream,
int inputStreamLength)
Add content with the specified
ContentInfo and the content itself as InputStream . |
ContentReference |
ContentProvider.createContentReference(ContentInfo contentInfo)
Creates a new
ContentReference for the specified ContentInfo . |
ContentReference |
ContentNotFoundException.getContentReference()
Returns the
ContentReference of the missing content. |
ContentReference |
ContentPreProcessingException.getContentReference()
Returns the
ContentReference of the |
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 . |
Modifier and Type | Method and Description |
---|---|
List<ContentReference> |
ContentProvider.deleteContent(ContentScope contentScope,
ContentSourceId contentSourceId)
Deletes the content that is associated to the supplied
ContentSourceId for the ContentScope . |
com.google.common.base.Optional<ContentReference> |
ContentManager.getContentReference(ContentReferenceId contentReferenceId)
Gets the content reference associated to the supplied
ContentReferenceId . |
com.google.common.base.Optional<ContentReference> |
ContentProvider.getContentReference(ContentScope contentScope,
ContentReferenceId contentReferenceId)
Gets the content reference associated to the supplied
ContentReferenceId for the ContentScope . |
List<ContentReference> |
ContentProvider.getContentReferences(ContentScope contentScope,
ContentSourceId contentSourceId)
Gets a list of all the content references associated to the supplied
ContentSourceId for the ContentScope . |
List<ContentReference> |
ContentManager.getContentReferences(ContentSourceId contentSourceId)
Gets a list of all the content references associated to the supplied
ContentSourceId . |
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 . |
int |
ContentManager.deleteContent(ContentReference contentReference)
Deletes all versions of the specified
ContentReference such that the passed in ContentReference cannot be used anymore to retrieve content. |
void |
ContentManager.deleteContent(ContentReference contentReference,
String version)
Deletes a specific version of the specified
ContentReference such that the passed in ContentReference cannot be used anymore to retrieve content with that
version. |
int |
ContentProvider.deleteContent(ContentScope contentScope,
ContentReference contentReference)
Deletes all versions of the specified
ContentReference such that the passed in ContentReference cannot be used anymore to retrieve content. |
void |
ContentProvider.deleteContent(ContentScope contentScope,
ContentReference contentReference,
String version)
Deletes a specific version of the specified
ContentReference such that the passed in ContentReference cannot be used anymore to retrieve content with that
version. |
InputStream |
ContentManager.getContent(ContentReference contentReference)
Returns the latest version of the content.
|
InputStream |
ContentManager.getContent(ContentReference contentReference,
String version)
Returns the specified version of the content.
|
InputStream |
ContentProvider.getContent(ContentScope contentScope,
ContentReference contentReference)
Returns the latest version of the content within the content scope.
|
InputStream |
ContentProvider.getContent(ContentScope contentScope,
ContentReference contentReference,
String version)
Returns the specified version of the content.
|
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.
|
List<String> |
ContentManager.getContentVersions(ContentReference contentReference)
Returns a list with all the versions of the content of the specified
ContentReference . |
List<String> |
ContentProvider.getContentVersions(ContentScope contentScope,
ContentReference contentReference)
Returns a list with all versions of the content of the specified
ContentReference . |
void |
ContentManager.setContentSourceId(ContentReference contentReference,
ContentSourceId contentSourceId)
Sets the
ContentSourceId for a selected ContentReference . |
void |
ContentProvider.setContentSourceId(ContentScope contentScope,
ContentReference contentReference,
ContentSourceId contentSourceId)
Sets the
ContentSourceId for a selected ContentReference . |
boolean |
ContentProvider.supports(ContentReference contentReference)
Returns true if the specified
ContentReference is resolvable by the content provider, false otherwise. |
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.
|
Constructor and Description |
---|
ContentNotFoundException(String message,
ContentReference contentReference)
Creates a new exception with the message and the specified
ContentReference from the missing content. |
ContentNotFoundException(String message,
ContentReference contentReference,
Throwable cause)
Creates a new exception with the message and the specified
ContentReference from the missing content. |
ContentPreProcessingException(String message,
ContentReference contentReference)
Creates a new exception with the message and the specified
ContentReference for the content processing failure. |
Modifier and Type | Method and Description |
---|---|
ContentReference |
ContentProcessorContext.getContentReference() |
Modifier and Type | Method and Description |
---|---|
ContentProcessorContext.Builder |
ContentProcessorContext.Builder.contentReference(ContentReference contentReference) |
Modifier and Type | Method and Description |
---|---|
ContentReference |
BaseConfigurableContentProvider.createContentReference(ContentInfo contentInfo) |
ContentReference |
ContentEvent.getNewContentReference()
Gets the current content reference from the content involved in the event.
|
protected abstract ContentReference |
BaseConfigurableContentProvider.internalCreateContentReference(ContentInfo contentInfo) |
protected abstract ContentReference |
BaseConfigurableContentProvider.internalUpdateContent(ContentScope contentScope,
ContentReference contentReference,
InputStream inputStream,
int inputStreamLength,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
boolean overwrite) |
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) |
Modifier and Type | Method and Description |
---|---|
List<ContentReference> |
BaseConfigurableContentProvider.deleteContent(ContentScope contentScope,
ContentSourceId contentSourceId) |
com.google.common.base.Optional<ContentReference> |
BaseConfigurableContentProvider.getContentReference(ContentScope contentScope,
ContentReferenceId contentReferenceId) |
List<ContentReference> |
BaseConfigurableContentProvider.getContentReferences(ContentScope contentScope,
ContentSourceId contentSourceId) |
com.google.common.base.Optional<ContentReference> |
ContentEvent.getOldContentReference()
Gets the previous content reference from the content involved in the event.
|
protected abstract List<ContentReference> |
BaseConfigurableContentProvider.internalDeleteContent(ContentScope contentScope,
ContentSourceId contentSourceId) |
protected abstract com.google.common.base.Optional<ContentReference> |
BaseConfigurableContentProvider.internalGetContentReference(ContentScope contentScope,
ContentReferenceId contentReferenceId) |
protected abstract List<ContentReference> |
BaseConfigurableContentProvider.internalGetContentReferences(ContentScope contentScope,
ContentSourceId contentSourceId) |
Modifier and Type | Method and Description |
---|---|
void |
BaseConfigurableContentProvider.addContent(ContentScope contentScope,
ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
InputStream inputStream,
int inputStreamLength) |
int |
BaseConfigurableContentProvider.deleteContent(ContentScope contentScope,
ContentReference contentReference) |
void |
BaseConfigurableContentProvider.deleteContent(ContentScope contentScope,
ContentReference contentReference,
String version) |
InputStream |
BaseConfigurableContentProvider.getContent(ContentScope contentScope,
ContentReference contentReference) |
InputStream |
BaseConfigurableContentProvider.getContent(ContentScope contentScope,
ContentReference contentReference,
String version) |
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) |
List<String> |
BaseConfigurableContentProvider.getContentVersions(ContentScope contentScope,
ContentReference contentReference) |
protected abstract void |
BaseConfigurableContentProvider.internalAddContent(ContentScope contentScope,
ContentReference contentReference,
com.google.common.base.Optional<ContentMetadata> contentMetadata,
InputStream inputStream,
int inputStreamLength) |
protected abstract int |
BaseConfigurableContentProvider.internalDeleteContent(ContentScope contentScope,
ContentReference contentReference) |
protected abstract void |
BaseConfigurableContentProvider.internalDeleteContent(ContentScope contentScope,
ContentReference contentReference,
String version) |
protected abstract InputStream |
BaseConfigurableContentProvider.internalGetContent(ContentScope contentScope,
ContentReference contentReference) |
protected abstract InputStream |
BaseConfigurableContentProvider.internalGetContent(ContentScope contentScope,
ContentReference contentReference,
String version) |
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) |
protected abstract List<String> |
BaseConfigurableContentProvider.internalGetContentVersions(ContentScope contentScope,
ContentReference contentReference) |
protected abstract void |
BaseConfigurableContentProvider.internalSetContentSourceId(ContentScope contentScope,
ContentReference contentReference,
ContentSourceId contentSourceId) |
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) |
void |
BaseConfigurableContentProvider.setContentSourceId(ContentScope contentScope,
ContentReference contentReference,
ContentSourceId contentSourceId) |
boolean |
BaseConfigurableContentProvider.supports(ContentReference contentReference) |
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 |
---|---|
List<ContentReference> |
DatabaseContentPersistence.deleteContent(ContentScope contentScope)
Deletes all the content of the content provider for the supplied
ContentScope . |
List<ContentReference> |
DatabaseContentPersistence.deleteContent(ContentScope contentScope,
ContentSourceId contentSourceId)
Deletes the content that is associated to the supplied
ContentSourceId for the ContentScope . |
com.google.common.base.Optional<ContentReference> |
DatabaseContentPersistence.getContentReference(ContentScope contentScope,
ContentReferenceId contentReferenceId)
Gets the content references associated to the supplied
ContentReferenceId for the ContentScope . |
List<ContentReference> |
DatabaseContentPersistence.getContentReferences(ContentScope contentScope,
ContentSourceId contentSourceId)
Gets a list of all the content references associated to the supplied
ContentSourceId for the ContentScope . |
List<ContentReference> |
DatabaseContentPersistence.getContentReferences(ContentScope contentScope,
int offset,
int limit)
Gets a list of all the content references extended with the content reference scope.
|
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 . |
int |
DatabaseContentPersistence.deleteContent(ContentScope contentScope,
ContentReference contentReference)
Deletes all versions of the specified
ContentReference such that the passed in ContentReference cannot be used anymore to retrieve content. |
void |
DatabaseContentPersistence.deleteContent(ContentScope contentScope,
ContentReference contentReference,
int version)
Deletes a specific version of the specified
ContentReference such that the passed in ContentReference cannot be used anymore to retrieve content with that
version. |
InputStream |
DatabaseContentPersistence.getContent(ContentScope contentScope,
ContentReference contentReference)
Returns the latest version of the content.
|
InputStream |
DatabaseContentPersistence.getContent(ContentScope contentScope,
ContentReference contentReference,
int version)
Returns the specified version of the content.
|
com.google.common.base.Optional<ContentMetadata> |
DatabaseContentPersistence.getContentMetadata(ContentScope contentScope,
ContentReference contentReference,
int version)
Returns the metadata of the content.
|
ContentSourceId |
DatabaseContentPersistence.getContentSourceId(ContentScope contentScope,
ContentReference contentReference,
int version)
Returns the content source id of a version of the content.
|
List<String> |
DatabaseContentPersistence.getContentVersions(ContentScope contentScope,
ContentReference contentReference)
Returns a list with all versions of the content of the specified
ContentReference . |
int |
DatabaseContentPersistence.getLatestVersion(ContentScope contentScope,
ContentReference contentReference)
Returns the latest content version for the specified
ContentReference without locking. |
int |
DatabaseContentPersistence.getLatestVersionForUpdate(ContentScope contentScope,
ContentReference contentReference)
Returns the latest content version for the specified
ContentReference and locks them on the database for pessimistic locking when using the DatabaseContentPersistence.addContent(ContentScope, ContentReference, InputStream, int, Optional, boolean) method. |
void |
DatabaseContentPersistence.updateContentMetadata(ContentScope contentScope,
ContentReference contentReference,
int version,
com.google.common.base.Optional<ContentMetadata> contentMetadata)
Updates the content metadata.
|
void |
DatabaseContentPersistence.updateContentSourceId(ContentScope contentScope,
ContentReference contentReference,
ContentSourceId contentSourceId)
Updates the content metadata.
|
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.