public class ContentReference extends Object implements Identifiable
A content reference represents a reference to content stored with a ContentProvider
.
Modifier and Type | Class and Description |
---|---|
static class |
ContentReference.Builder
Builder for a
ContentReference instance. |
Modifier and Type | Method and Description |
---|---|
static ContentReference.Builder |
builder()
Creates a builder for a new concrete default content reference instance.
|
static ContentReference.Builder |
builder(ContentReference contentReferenceTemplate)
Creates a builder with a
ContentReference as a template. |
boolean |
equals(Object o) |
String |
getContentProviderId()
Returns the content provider id with which this content was stored.
|
Optional<String> |
getContentSourceId()
Returns the optional content source id from where the content reference is linked.
|
String |
getId()
The object id.
|
Map<String,String> |
getProviderProperties()
Returns the provider properties which are used by the
ContentProvider to properly resolve the content reference. |
Optional<String> |
getVersion()
Returns the optional content version.
|
int |
hashCode() |
String |
toString() |
public String getId()
Identifiable
The object id.
getId
in interface Identifiable
public String getContentProviderId()
Returns the content provider id with which this content was stored.
public Optional<String> getContentSourceId()
Returns the optional content source id from where the content reference is linked.
If the content is not referenced this method returns Optional.empty()
.
public Optional<String> getVersion()
Returns the optional content version.
If the content is not versioned or the version is not defined method returns Optional.empty()
.
public Map<String,String> getProviderProperties()
Returns the provider properties which are used by the ContentProvider
to properly resolve the content reference.
public static ContentReference.Builder builder()
Creates a builder for a new concrete default content reference instance.
public static ContentReference.Builder builder(ContentReference contentReferenceTemplate)
Creates a builder with a ContentReference
as a template.
contentReferenceTemplate
- the content reference templateCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.