Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.storage.sql.db
Class H2Functions

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctions
      extended by org.nuxeo.ecm.core.storage.sql.db.H2Functions

public class H2Functions
extends EmbeddedFunctions

Functions used as stored procedures for H2.

Author:
Florent Guillaume

Nested Class Summary
static class H2Functions.LogAclsModified
           
static class H2Functions.LogHierarchyModified
           
 
Constructor Summary
H2Functions()
           
 
Method Summary
static void clusterInvalidateString(java.sql.Connection conn, java.lang.String id, java.lang.String fragments, int kind)
          Adds an invalidation from this cluster node to the invalidations list.
static java.sql.ResultSet getClusterInvalidationsString(java.sql.Connection conn)
          Gets the invalidations for this cluster node.
static java.lang.String getReadAcl(java.sql.Connection conn, java.lang.String id, java.lang.String userSeparator)
           
static java.sql.ResultSet getReadAclsFor(java.sql.Connection conn, java.lang.String principals, java.lang.String userSeparator)
           
static boolean isAccessAllowedLong(java.sql.Connection conn, java.lang.Long id, java.lang.String principals, java.lang.String permissions)
           
static boolean isAccessAllowedString(java.sql.Connection conn, java.lang.String id, java.lang.String principals, java.lang.String permissions)
           
static boolean isInTreeLong(java.sql.Connection conn, java.lang.Long id, java.lang.Long baseId)
           
static boolean isInTreeString(java.sql.Connection conn, java.lang.String id, java.lang.String baseId)
           
static java.sql.ResultSet rebuildReadAcls(java.sql.Connection conn, java.lang.String userSeparator)
           
static java.sql.ResultSet updateReadAcls(java.sql.Connection conn, java.lang.String usersSeparator)
           
static java.sql.ResultSet upgradeVersions(java.sql.Connection conn)
           
 
Methods inherited from class org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctions
isAccessAllowed, isAccessAllowed, isInTree, isInTree, parseFullText, parseWord, split, split
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2Functions

public H2Functions()
Method Detail

isInTreeString

public static boolean isInTreeString(java.sql.Connection conn,
                                     java.lang.String id,
                                     java.lang.String baseId)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

isInTreeLong

public static boolean isInTreeLong(java.sql.Connection conn,
                                   java.lang.Long id,
                                   java.lang.Long baseId)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

isAccessAllowedString

public static boolean isAccessAllowedString(java.sql.Connection conn,
                                            java.lang.String id,
                                            java.lang.String principals,
                                            java.lang.String permissions)
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

isAccessAllowedLong

public static boolean isAccessAllowedLong(java.sql.Connection conn,
                                          java.lang.Long id,
                                          java.lang.String principals,
                                          java.lang.String permissions)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

clusterInvalidateString

public static void clusterInvalidateString(java.sql.Connection conn,
                                           java.lang.String id,
                                           java.lang.String fragments,
                                           int kind)
                                    throws java.sql.SQLException
Adds an invalidation from this cluster node to the invalidations list.

Throws:
java.sql.SQLException

getClusterInvalidationsString

public static java.sql.ResultSet getClusterInvalidationsString(java.sql.Connection conn)
                                                        throws java.sql.SQLException
Gets the invalidations for this cluster node.

Returns:
a result set with columns id, fragments, kind
Throws:
java.sql.SQLException

getReadAcl

public static java.lang.String getReadAcl(java.sql.Connection conn,
                                          java.lang.String id,
                                          java.lang.String userSeparator)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getReadAclsFor

public static java.sql.ResultSet getReadAclsFor(java.sql.Connection conn,
                                                java.lang.String principals,
                                                java.lang.String userSeparator)
                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

rebuildReadAcls

public static java.sql.ResultSet rebuildReadAcls(java.sql.Connection conn,
                                                 java.lang.String userSeparator)
                                          throws java.sql.SQLException
Throws:
java.sql.SQLException

updateReadAcls

public static java.sql.ResultSet updateReadAcls(java.sql.Connection conn,
                                                java.lang.String usersSeparator)
                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

upgradeVersions

public static java.sql.ResultSet upgradeVersions(java.sql.Connection conn)
                                          throws java.sql.SQLException
Throws:
java.sql.SQLException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.