public class RepositoryUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
RepositoryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static RepositoryItem[] |
convertRepositoryReferenceArrayParameter(java.lang.String pStrValue,
ComponentResolver pResolver,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Converts a string of the form /path/to/repository:item-descriptor:itemId,...
|
static RepositoryItem |
convertRepositoryReferenceParameter(java.lang.String pRepRefString,
ComponentResolver pResolver,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Converts a string of the form /path/to/repository:item-descriptor:itemId to the referenced RepositoryItem
|
static java.lang.String |
formatRepositoryReferenceParameter(java.lang.String pRepRefString,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Converts a string of the form /path/to/repository/item-descriptor/itemId to /path/to/repository:item-descriptor:itemId so it can be passed to
DynamicBeans.setPropertyValueAsString()
|
public static java.lang.String formatRepositoryReferenceParameter(java.lang.String pRepRefString,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws RestException
pRepRefString - the source stringpRequest - the servlet requestpResponse - the servlet responseRestException - if the source string is not of the proper formatpublic static RepositoryItem convertRepositoryReferenceParameter(java.lang.String pRepRefString, ComponentResolver pResolver, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException
pRepRefString - the source stringpResolver - the component resolver to use to find the repository itempRequest - the servlet requestpResponse - the servlet responseRestException - if the source string is not of the proper formatpublic static RepositoryItem[] convertRepositoryReferenceArrayParameter(java.lang.String pStrValue, ComponentResolver pResolver, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException
pRepRefString - the source stringpResolver - the component resolver to use to find the repository itemspRequest - the servlet requestpResponse - the servlet responseRestException - if the source string is not of the proper format