Generated by
JDiff

Interface org.apache.sling.hapi.HApiUtil

Added Methods
HApiTypesCollection collectionFromPath(ResourceResolver, String)

Get a HApiTypesCollection object from a path String.

HApiTypesCollection collectionFromResource(ResourceResolver, Resource)

Get a HApiTypesCollection object from a org.apache.sling.api.resource.Resource.

The Resource has the following properties:
  • name: A 'Name' of the type collection (mandatory)
  • description: A 'String' with the description text for this type collection (mandatory)
  • fqdn: A 'String' with the fully qualified domain name; A namespace like a java package (mandatory)
HApiType fromResource(ResourceResolver, Resource)

Get a HApi type object from the org.apache.sling.api.resource.Resource.

The Resource has the following properties:
  • name: A 'Name' of the type (mandatory)
  • description: A 'String' with the description text for this type (mandatory)
  • fqdn: A 'String' with the fully qualified domain name; A namespace like a java package (mandatory)
  • extends: A type identifier (either a path or a fqdn); (optional).
Resource getTypeCollectionResource(ResourceResolver, String)

Get a HApi type collection Resource from a collection identifier.

Resource getTypeResource(ResourceResolver, String)

Get a HApi type Resource from a type identifier.

 

Added Fields
String COLLECTION_RESOURCE_TYPE  
String COLLECTION_RESOURCE_TYPE_DESC  
String DEFAULT_COLLECTION_RESOURCE_TYPE  
boolean DEFAULT_ENABLED  
String DEFAULT_SEARCH_PATH  
String DEFAULT_SERVER_URL  
String ENABLED  
String ENABLED_DESC  
String EXTERNAL_URL  
String EXTERNAL_URL_DESC  
String RESOURCE_TYPE  
String RESOURCE_TYPE_DESC  
String SEARCH_PATHS  
String SEARCH_PATHS_DESC