|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctions
public class EmbeddedFunctions
Functions used as stored procedures for Derby and H2.
Constructor Summary | |
---|---|
EmbeddedFunctions()
|
Method Summary | |
---|---|
static boolean |
isAccessAllowed(java.sql.Connection conn,
java.io.Serializable id,
java.util.Set<java.lang.String> principals,
java.util.Set<java.lang.String> permissions)
Checks if access to a document is allowed. |
static boolean |
isAccessAllowed(java.io.Serializable id,
java.util.Set<java.lang.String> principals,
java.util.Set<java.lang.String> permissions)
Checks if access to a document is allowed. |
static boolean |
isInTree(java.sql.Connection conn,
java.io.Serializable id,
java.io.Serializable baseId)
Checks if an id is a (strict) descendant of a given base id. |
static boolean |
isInTree(java.io.Serializable id,
java.io.Serializable baseId)
Checks if an id is a (strict) descendant of a given base id. |
static java.lang.String |
parseFullText(java.lang.String string1,
java.lang.String string2)
Extracts the words from a string for simple fulltext indexing. |
static java.lang.String |
parseWord(java.lang.String string)
|
static java.util.Set<java.lang.String> |
split(java.lang.String string)
|
static java.util.Set<java.lang.String> |
split(java.lang.String string,
char sep)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedFunctions()
Method Detail |
---|
public static boolean isInTree(java.io.Serializable id, java.io.Serializable baseId) throws java.sql.SQLException
id
- the id to check forbaseId
- the base id
java.sql.SQLException
public static boolean isInTree(java.sql.Connection conn, java.io.Serializable id, java.io.Serializable baseId) throws java.sql.SQLException
conn
- the connection to the databaseid
- the id to check forbaseId
- the base id
java.sql.SQLException
public static boolean isAccessAllowed(java.io.Serializable id, java.util.Set<java.lang.String> principals, java.util.Set<java.lang.String> permissions) throws java.sql.SQLException
This implements in SQL the ACL-based security policy logic.
id
- the id of the documentprincipals
- the allowed identitiespermissions
- the allowed permissions
java.sql.SQLException
public static boolean isAccessAllowed(java.sql.Connection conn, java.io.Serializable id, java.util.Set<java.lang.String> principals, java.util.Set<java.lang.String> permissions) throws java.sql.SQLException
This implements in SQL the ACL-based security policy logic.
conn
- the database connectionid
- the id of the documentprincipals
- the allowed identitiespermissions
- the allowed permissions
java.sql.SQLException
public static java.lang.String parseFullText(java.lang.String string1, java.lang.String string2)
string1
- the first stringstring2
- the second string
public static final java.lang.String parseWord(java.lang.String string)
public static java.util.Set<java.lang.String> split(java.lang.String string)
public static java.util.Set<java.lang.String> split(java.lang.String string, char sep)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |