Package com.aoindustries.aoserv.master
Class TableHandler.GetTableHandlerPermission
java.lang.Object
com.aoindustries.aoserv.master.TableHandler.GetTableHandlerPermission
- All Implemented Interfaces:
TableHandler.GetTableHandler
- Direct Known Subclasses:
TableHandler.GetTableHandlerPermissionByRole
- Enclosing class:
TableHandler
public abstract static class TableHandler.GetTableHandlerPermission
extends Object
implements TableHandler.GetTableHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Permission.Name
Gets the permission that is required to query this table.final void
getTable
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) Checks if has permission, writing an empty table when does not have the permission.protected abstract void
getTableHasPermission
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) Handles a request for the given table, once permission has been verified.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoindustries.aoserv.master.TableHandler.GetTableHandler
getTableIds
-
Constructor Details
-
GetTableHandlerPermission
public GetTableHandlerPermission()
-
-
Method Details
-
getPermissionName
Gets the permission that is required to query this table. -
getTable
public final void getTable(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) throws IOException, SQLException Checks if has permission, writing an empty table when does not have the permission.- Specified by:
getTable
in interfaceTableHandler.GetTableHandler
- Throws:
IOException
SQLException
- See Also:
-
getTableHasPermission
protected abstract void getTableHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) throws IOException, SQLException Handles a request for the given table, once permission has been verified.- Throws:
IOException
SQLException
- See Also:
-