Package org.alfresco.rest.api.lookups
Class PropertyLookupRegistry
- java.lang.Object
-
- org.alfresco.rest.api.lookups.PropertyLookupRegistry
-
public class PropertyLookupRegistry extends java.lang.Object
Acts as a central point for property lookups- Author:
- Gethin James
-
-
Constructor Summary
Constructors Constructor Description PropertyLookupRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
lookup(java.lang.String propertyName, java.lang.String propertyValue)
Looks up the property value using a PropertyLookupvoid
setLookups(java.util.List<PropertyLookup> lookups)
Set the supported property lookup classes.java.util.Set<java.lang.String>
supports()
The list of property keys that are supported by this class
-
-
-
Method Detail
-
setLookups
public void setLookups(java.util.List<PropertyLookup> lookups)
Set the supported property lookup classes.- Parameters:
lookups
-
-
supports
public java.util.Set<java.lang.String> supports()
The list of property keys that are supported by this class- Returns:
- Set
property keys
-
lookup
public java.lang.Object lookup(java.lang.String propertyName, java.lang.String propertyValue)
Looks up the property value using a PropertyLookup- Parameters:
propertyName
- the property name/typepropertyValue
- the value to lookup- Returns:
- Object to be serialized as json
-
-