com.liferay.portal.security.pacl.checker
Class SQLChecker
java.lang.Object
com.liferay.portal.security.pacl.checker.BaseChecker
com.liferay.portal.security.pacl.checker.SQLChecker
- All Implemented Interfaces:
- PACLConstants, Checker
public class SQLChecker
- extends BaseChecker
| Fields inherited from interface com.liferay.portal.kernel.security.pacl.PACLConstants |
FILE_PERMISSION_ACTION_DELETE, FILE_PERMISSION_ACTION_EXECUTE, FILE_PERMISSION_ACTION_READ, FILE_PERMISSION_ACTION_WRITE, MBEAN_PERMISSION_IS_INSTANCE_OF, MBEAN_PERMISSION_REGISTER_MBEAN, MBEAN_TRUST_PERMISSION_REGISTER, NET_PERMISSION_GET_PROXY_SELECTOR, NET_PERMISSION_SPECIFY_STREAM_HANDLER, PORTAL_HOOK_PERMISSION_CUSTOM_JSP_DIR, PORTAL_HOOK_PERMISSION_INDEXER, PORTAL_HOOK_PERMISSION_LANGUAGE_PROPERTIES_LOCALE, PORTAL_HOOK_PERMISSION_PORTAL_PROPERTIES_KEY, PORTAL_HOOK_PERMISSION_SERVICE, PORTAL_HOOK_PERMISSION_SERVLET_FILTERS, PORTAL_HOOK_PERMISSION_STRUTS_ACTION_PATH, PORTAL_MESSAGE_BUS_PERMISSION_LISTEN, PORTAL_MESSAGE_BUS_PERMISSION_SEND, PORTAL_RUNTIME_PERMISSION_EXPANDO_BRIDGE, PORTAL_RUNTIME_PERMISSION_GET_BEAN_PROPERTY, PORTAL_RUNTIME_PERMISSION_SEARCH_ENGINE, PORTAL_RUNTIME_PERMISSION_SET_BEAN_PROPERTY, PORTAL_RUNTIME_PERMISSION_THREAD_POOL_EXECUTOR, PORTAL_SERVICE_PERMISSION_DYNAMIC_QUERY, PORTAL_SERVICE_PERMISSION_SERVICE, RUNTIME_PERMISSION_ACCESS_CLASS_IN_PACKAGE, RUNTIME_PERMISSION_ACCESS_DECLARED_MEMBERS, RUNTIME_PERMISSION_CREATE_CLASS_LOADER, RUNTIME_PERMISSION_GET_CLASSLOADER, RUNTIME_PERMISSION_GET_ENV, RUNTIME_PERMISSION_GET_PROTECTION_DOMAIN, RUNTIME_PERMISSION_READ_FILE_DESCRIPTOR, RUNTIME_PERMISSION_SET_CONTEXT_CLASS_LOADER, RUNTIME_PERMISSION_SET_SECURITY_MANAGER, RUNTIME_PERMISSION_WRITE_FILE_DESCRIPTOR, SECURITY_PERMISSION_GET_POLICY, SECURITY_PERMISSION_SET_POLICY, SOCKET_PERMISSION_ACCEPT, SOCKET_PERMISSION_CONNECT, SOCKET_PERMISSION_LISTEN |
|
Method Summary |
void |
afterPropertiesSet()
|
void |
checkPermission(Permission permission)
|
protected boolean |
hasSQL(net.sf.jsqlparser.statement.create.table.CreateTable createTable)
|
protected boolean |
hasSQL(net.sf.jsqlparser.statement.delete.Delete delete)
|
protected boolean |
hasSQL(net.sf.jsqlparser.statement.drop.Drop drop)
|
protected boolean |
hasSQL(net.sf.jsqlparser.statement.insert.Insert insert)
|
protected boolean |
hasSQL(net.sf.jsqlparser.statement.replace.Replace replace)
|
protected boolean |
hasSQL(net.sf.jsqlparser.statement.select.Select select)
|
boolean |
hasSQL(String sql)
|
protected boolean |
hasSQL(net.sf.jsqlparser.statement.truncate.Truncate truncate)
|
protected boolean |
hasSQL(net.sf.jsqlparser.statement.update.Update update)
|
protected void |
initTableNames()
|
protected boolean |
isAllowedTable(String tableName,
Set<String> allowedTableNames)
|
protected boolean |
isAllowedTable(net.sf.jsqlparser.schema.Table table,
Set<String> allowedTableNames)
|
protected boolean |
isAllowedTables(List<String> tableNames,
Set<String> allowedTableNames)
|
| Methods inherited from class com.liferay.portal.security.pacl.checker.BaseChecker |
getClassLoader, getCommonClassLoader, getPACLPolicy, getPortalClassLoader, getProperties, getProperty, getPropertyArray, getPropertyBoolean, getPropertySet, getServletContextName, getSystemClassLoader, isJSPCompiler, isTrustedCallerClass, setPACLPolicy, throwSecurityException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLChecker
public SQLChecker()
afterPropertiesSet
public void afterPropertiesSet()
checkPermission
public void checkPermission(Permission permission)
hasSQL
public boolean hasSQL(String sql)
hasSQL
protected boolean hasSQL(net.sf.jsqlparser.statement.create.table.CreateTable createTable)
hasSQL
protected boolean hasSQL(net.sf.jsqlparser.statement.delete.Delete delete)
hasSQL
protected boolean hasSQL(net.sf.jsqlparser.statement.drop.Drop drop)
hasSQL
protected boolean hasSQL(net.sf.jsqlparser.statement.insert.Insert insert)
hasSQL
protected boolean hasSQL(net.sf.jsqlparser.statement.replace.Replace replace)
hasSQL
protected boolean hasSQL(net.sf.jsqlparser.statement.select.Select select)
hasSQL
protected boolean hasSQL(net.sf.jsqlparser.statement.truncate.Truncate truncate)
hasSQL
protected boolean hasSQL(net.sf.jsqlparser.statement.update.Update update)
initTableNames
protected void initTableNames()
isAllowedTable
protected boolean isAllowedTable(String tableName,
Set<String> allowedTableNames)
isAllowedTable
protected boolean isAllowedTable(net.sf.jsqlparser.schema.Table table,
Set<String> allowedTableNames)
isAllowedTables
protected boolean isAllowedTables(List<String> tableNames,
Set<String> allowedTableNames)