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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidgetTableAdministratorHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId) Handles anAdministratorrequest for the given table, once permission has been verified, with access limited by their set ofaccountsand thehoststhose accounts can access (seeAccountHost.protected abstract voidgetTableDaemonHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) Handles amaster userrequest for the given table, once permission has been verified, with access limited to a set ofhosts.protected voidgetTableHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser, UserHost[] masterServers) Calls role-specific implementations.protected abstract voidgetTableMasterHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId, User masterUser) Handles amaster userrequest for the given table, once permission has been verified, with access to allaccountsandhosts.Methods inherited from class com.aoindustries.aoserv.master.TableHandler.GetTableHandlerPermission
getPermissionName, getTableMethods 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
-
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:
getTableHasPermissionin classTableHandler.GetTableHandlerPermission- Throws:
IOExceptionSQLException- 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 userrequest for the given table, once permission has been verified, with access to allaccountsandhosts.- Throws:
IOExceptionSQLException- 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 userrequest 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:
IOExceptionSQLException- See Also:
-
getTableAdministratorHasPermission
protected abstract void getTableAdministratorHasPermission(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Table.TableId tableId) throws IOException, SQLException Handles anAdministratorrequest for the given table, once permission has been verified, with access limited by their set ofaccountsand thehoststhose accounts can access (seeAccountHost.- Throws:
IOExceptionSQLException- See Also:
-
