public class ShorthandKeyFinder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
ShorthandKeyFinder.SingleEntityPF |
| Constructor and Description |
|---|
ShorthandKeyFinder(EntityStore es) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkForAbsolutePath(java.lang.String shorthandKey) |
static java.lang.String |
escape(java.lang.String shk)
Escape a string to be used as a shorthand key
|
static java.lang.String |
escapeFieldValue(java.lang.String val)
Escape a field for use when assembling a shorthand query string.
|
java.util.List<Entity> |
getEntities(ESPK currPK,
java.lang.String shorthandKey) |
java.util.List<Entity> |
getEntities(java.lang.String shorthandKey) |
Entity |
getEntity(ESPK currPK,
java.lang.String shorthandKey) |
Entity |
getEntity(java.lang.String shorthandKey)
Getting an Entity using a 'shorthand' key.
|
EntityStore |
getEntityStore() |
java.util.List<Field> |
getFieldData(EntityType type,
java.lang.String shk) |
java.util.Collection<ESPK> |
getPKs(java.lang.String shorthandKey) |
EntityType |
getType(java.lang.String shk) |
static void |
main(java.lang.String[] args) |
void |
setEntityStore(EntityStore es) |
public ShorthandKeyFinder(EntityStore es)
public void setEntityStore(EntityStore es)
public EntityStore getEntityStore()
public Entity getEntity(java.lang.String shorthandKey) throws EntityStoreException
shorthandKey - A path referencing an Entity in the specified store.EntityStoreExceptionprotected void checkForAbsolutePath(java.lang.String shorthandKey)
public Entity getEntity(ESPK currPK, java.lang.String shorthandKey) throws EntityStoreException
EntityStoreExceptionpublic java.util.List<Entity> getEntities(ESPK currPK, java.lang.String shorthandKey) throws EntityStoreException
EntityStoreExceptionpublic java.util.List<Entity> getEntities(java.lang.String shorthandKey) throws EntityStoreException
EntityStoreExceptionpublic java.util.Collection<ESPK> getPKs(java.lang.String shorthandKey) throws EntityStoreException
EntityStoreExceptionpublic EntityType getType(java.lang.String shk) throws EntityStoreException
EntityStoreExceptionpublic java.util.List<Field> getFieldData(EntityType type, java.lang.String shk) throws EntityStoreException
EntityStoreExceptionpublic static java.lang.String escape(java.lang.String shk)
shk - public static java.lang.String escapeFieldValue(java.lang.String val)
yields the escaped string:String alias = "CN=www.amazon.com, O=Amazon.com Inc., L=Seattle, ST=Washington, C=US"; String shk = "[Certificate]dname=" + Util.escapeFieldValue(alias); System.out.println(shk);
[Certificate]dname=CN=www.amazon.com\, O=Amazon.com Inc.\, L=Seattle\, ST=Washington\, C=US
val - The field value to escape.public static final void main(java.lang.String[] args)
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel