org.apache.chemistry.opencmis.jcr.query
Interface IdentifierMap


public interface IdentifierMap

The methods of this class map CMIS identifiers to JCR identifiers. Each implementation of this interface is bound to a specific CMIS object type. That is, it implements the identifier maps for that object type.


Method Summary
 String jcrPathFromCol(String name)
          Map a column name in the CMIS query to the corresponding relative JCR path.
 String jcrTypeCondition()
          Create and additional condition in order for the query to only return nodes of the right type.
 String jcrTypeName()
          JCR type name corresponding to the CMIS type bound to this instance.
 

Method Detail

jcrPathFromCol

String jcrPathFromCol(String name)
Map a column name in the CMIS query to the corresponding relative JCR path. The path must be relative to the context node.

Parameters:
name - column name
Returns:
relative JCR path

jcrTypeName

String jcrTypeName()
JCR type name corresponding to the CMIS type bound to this instance.

Returns:
name of the JCR type
See Also:
jcrTypeCondition()

jcrTypeCondition

String jcrTypeCondition()
Create and additional condition in order for the query to only return nodes of the right type. This condition and-ed to the condition determined by the CMIS query's where clause.

A CMIS query for non versionable documents should for example result in the following XPath query:

   element(*, nt:file)[not(@jcr:mixinTypes = 'mix:simpleVersionable')]
 
Here the element test is covered by jcrTypeName() while the predicate is covered by this method.

Returns:
Additional condition or null if none.
See Also:
jcrTypeName()


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.