public class SolrContentUrlBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_EXTENSION |
static String |
KEY_ACL_ID
The key for the ACL ID
|
static String |
KEY_DB_ID
The key for the DB ID
|
static String |
KEY_TENANT
The key for the tenant name
|
protected static org.slf4j.Logger |
logger |
static String |
SOLR_PROTOCOL
solr is the prefix for SOLR content URLs
|
static String |
SOLR_PROTOCOL_PREFIX |
| Modifier | Constructor and Description |
|---|---|
protected |
SolrContentUrlBuilder()
Protected constructor used by
start() |
| Modifier and Type | Method and Description |
|---|---|
SolrContentUrlBuilder |
add(String key,
String value)
Add some metadata to the URL generator.
|
String |
get()
Get the final content URL using the
supplied metadata. |
org.alfresco.repo.content.ContentContext |
getContentContext()
Helper method to retrieve a
ContentContext constructed using the final get() url. |
static SolrContentUrlBuilder |
start()
Factory method to start building the SOLR content URL.
|
public static final String SOLR_PROTOCOL
#isContentUrlSupported(String),
Constant Field Valuespublic static final String SOLR_PROTOCOL_PREFIX
public static final String FILE_EXTENSION
public static final String KEY_TENANT
public static final String KEY_DB_ID
public static final String KEY_ACL_ID
protected static final org.slf4j.Logger logger
protected SolrContentUrlBuilder()
start()public static SolrContentUrlBuilder start()
public SolrContentUrlBuilder add(String key, String value)
KEY_TENANT: The name of the tenant or 'default' if missing.KEY_DB_ID: The database ID.KEY_ACL_ID: The ACL ID.key - an arbitrary metadata key (never null>value - some metadata value (null is supported)IllegalArgumentException - if the key is nullIllegalStateException - if the key has been used alreadypublic String get()
supplied metadata.IllegalStateException - if no metadata has been addedpublic org.alfresco.repo.content.ContentContext getContentContext()
ContentContext constructed using the final get() url.Copyright © 2005–2019 Alfresco Software. All rights reserved.