Class PropertyLookupRegistry

java.lang.Object
org.alfresco.rest.api.lookups.PropertyLookupRegistry

public class PropertyLookupRegistry extends Object
Acts as a central point for property lookups
Author:
Gethin James
  • Constructor Details

    • PropertyLookupRegistry

      public PropertyLookupRegistry()
  • Method Details

    • setLookups

      public void setLookups(List<PropertyLookup> lookups)
      Set the supported property lookup classes.
      Parameters:
      lookups -
    • supports

      public Set<String> supports()
      The list of property keys that are supported by this class
      Returns:
      Set property keys
    • lookup

      public Object lookup(String propertyName, String propertyValue)
      Looks up the property value using a PropertyLookup
      Parameters:
      propertyName - the property name/type
      propertyValue - the value to lookup
      Returns:
      Object to be serialized as json