org.apache.sling.jcr.resource
Interface JcrResourceTypeProvider


public interface JcrResourceTypeProvider

Provide a resource type for repository nodes which do not have a sling:resourceType property.


Method Summary
 java.lang.String getResourceTypeForNode(javax.jcr.Node n)
          Return the resource type to use for the node.
 

Method Detail

getResourceTypeForNode

java.lang.String getResourceTypeForNode(javax.jcr.Node n)
                                        throws javax.jcr.RepositoryException
Return the resource type to use for the node.

Parameters:
n - The node.
Returns:
The resource type to use or null.
Throws:
javax.jcr.RepositoryException


Copyright © 2007-2009. All Rights Reserved.