org.pentaho.platform.repository2.unified.jcr
Class DefaultOwnerLookupHelper

java.lang.Object
  extended by org.pentaho.platform.repository2.unified.jcr.DefaultOwnerLookupHelper
All Implemented Interfaces:
IOwnerLookupHelper

public class DefaultOwnerLookupHelper
extends Object
implements IOwnerLookupHelper

Default IOwnerLookupHelper implementation. Uses Jackrabbit-specific node types. Uses low-level node operations to keep the fetching of the owner fast. (Otherwise, we could have used the AccessControlManager API but that would entail fetching the entire ACL along with its ACEs.)

This implementation fails silently (but returns null) when there is no ACL yet applied to the node.

Author:
mlowery

Constructor Summary
DefaultOwnerLookupHelper()
           
 
Method Summary
 RepositoryFileSid getOwner(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, javax.jcr.Node node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOwnerLookupHelper

public DefaultOwnerLookupHelper()
Method Detail

getOwner

public RepositoryFileSid getOwner(javax.jcr.Session session,
                                  PentahoJcrConstants pentahoJcrConstants,
                                  javax.jcr.Node node)
                           throws javax.jcr.RepositoryException
Specified by:
getOwner in interface IOwnerLookupHelper
Throws:
javax.jcr.RepositoryException