Package com.aoindustries.aoserv.master
Class TableHandler.GetTableHandlerPermissionByRole
java.lang.Object
com.aoindustries.aoserv.master.TableHandler.GetTableHandlerPermission
com.aoindustries.aoserv.master.TableHandler.GetTableHandlerPermissionByRole
- All Implemented Interfaces:
TableHandler.GetTableHandler
- Direct Known Subclasses:
CreditCard_GetTableHandler
,Payment_GetTableHandler
,Processor_GetTableHandler
- Enclosing class:
TableHandler
public abstract static class TableHandler.GetTableHandlerPermissionByRole
extends TableHandler.GetTableHandlerPermission
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
getTableAdministratorHasPermission
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId) Handles anAdministrator
request for the given table, once permission has been verified, with access limited by their set ofaccounts
and thehosts
those accounts can access (seeAccountHost
.protected abstract void
getTableDaemonHasPermission
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) Handles amaster user
request for the given table, once permission has been verified, with access limited to a set ofhosts
.protected void
getTableHasPermission
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) Calls role-specific implementations.protected abstract void
getTableMasterHasPermission
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser) Handles amaster user
request for the given table, once permission has been verified, with access to allaccounts
andhosts
.Methods inherited from class com.aoindustries.aoserv.master.TableHandler.GetTableHandlerPermission
getPermissionName, getTable
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
-
GetTableHandlerPermissionByRole
public GetTableHandlerPermissionByRole()
-
-
Method Details
-
getTableHasPermission
protected void getTableHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) throws IOException, SQLException Calls role-specific implementations.- Specified by:
getTableHasPermission
in classTableHandler.GetTableHandlerPermission
- Throws:
IOException
SQLException
- See Also:
-
getTableMasterHasPermission
protected abstract void getTableMasterHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser) throws IOException, SQLException Handles amaster user
request for the given table, once permission has been verified, with access to allaccounts
andhosts
.- Throws:
IOException
SQLException
- See Also:
-
getTableDaemonHasPermission
protected abstract void getTableDaemonHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) throws IOException, SQLException Handles amaster user
request for the given table, once permission has been verified, with access limited to a set ofhosts
. This is the filtering generally used by AOServ Daemon.- Throws:
IOException
SQLException
- See Also:
-
getTableAdministratorHasPermission
protected abstract void getTableAdministratorHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId) throws IOException, SQLException Handles anAdministrator
request for the given table, once permission has been verified, with access limited by their set ofaccounts
and thehosts
those accounts can access (seeAccountHost
.- Throws:
IOException
SQLException
- See Also:
-