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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Permission.NameGets the permission that is required to query this table.final voidgetTable(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 voidgetTableHasPermission(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, waitMethods 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:
getTablein interfaceTableHandler.GetTableHandler- Throws:
IOExceptionSQLException- 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:
IOExceptionSQLException- See Also:
-
