|
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(Connection conn,
Serializable id,
Set<String> principals,
Set<String> permissions)
Checks if access to a document is allowed. |
static boolean |
isAccessAllowed(Serializable id,
Set<String> principals,
Set<String> permissions)
Checks if access to a document is allowed. |
static boolean |
isInTree(Connection conn,
Serializable id,
Serializable baseId)
Checks if an id is a (strict) descendant of a given base id. |
static boolean |
isInTree(Serializable id,
Serializable baseId)
Checks if an id is a (strict) descendant of a given base id. |
static String |
parseFullText(String string1,
String string2)
Extracts the words from a string for simple fulltext indexing. |
static String |
parseWord(String string)
|
static Set<String> |
split(String string)
|
static Set<String> |
split(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(Serializable id, Serializable baseId) throws SQLException
id
- the id to check forbaseId
- the base id
SQLException
public static boolean isInTree(Connection conn, Serializable id, Serializable baseId) throws SQLException
conn
- the connection to the databaseid
- the id to check forbaseId
- the base id
SQLException
public static boolean isAccessAllowed(Serializable id, Set<String> principals, Set<String> permissions) throws SQLException
This implements in SQL the ACL-based security policy logic.
id
- the id of the documentprincipals
- the allowed identitiespermissions
- the allowed permissions
SQLException
public static boolean isAccessAllowed(Connection conn, Serializable id, Set<String> principals, Set<String> permissions) throws 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
SQLException
public static String parseFullText(String string1, String string2)
string1
- the first stringstring2
- the second string
public static final String parseWord(String string)
public static Set<String> split(String string)
public static Set<String> split(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 |