org.pentaho.platform.repository2.unified.jcr
Class DefaultOwnerLookupHelper
java.lang.Object
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
DefaultOwnerLookupHelper
public DefaultOwnerLookupHelper()
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