ARoad0.AcsAddon.Accbee.MySQL.gBaseInterface
Interface VirtualFolderMySQL
- All Superinterfaces:
- ACSObject, ACSObjectAddon, BaseBeanManager, BaseObject, BoundBean, java.lang.Comparable, java.util.EventListener, FinalizedObject, FinalizedObjectForUser, Folder, ImmutableFolder, ImmutableLeaf, ImmutableNode, ImmutablePrivilegeTarget, ImmutableSource, ImmutableTarget, ImmutableVirtualFolder, Leaf, Node, PrivilegeTarget, PrivilegeUser, java.beans.PropertyChangeListener, VirtualFolder
- All Known Implementing Classes:
- VirtualFolderMySQLImpl
public interface VirtualFolderMySQL
- extends VirtualFolder, ACSObjectAddon
This interface is a VirtualFolder for simulating a MySQL view.
The DEFINER mode is the default one for the MySQL views. It is needed
for having a view, to create a VirtualFolder with an UserID as parameter of the constructor.
This UserID becomes the Account of the AG context of the view delegate.
There is also a GroupID as host of the account.
This feature implies the creation of a VirtualFolderMySQLImpl class in the AcsAddon
gBase package, as subclass of VirtualFolderImpl in the generic gBase package.
The view definition is “frozen” at creation time in MySQL, but it is not useful
to extend this constraint to the view simulation in Access Road.
As actor, the view delegate in the resources tree runs under the UserID/GroupID
passed on to the VirtualFolder constructor of the view. This is also the responsibility
of the VirtualFolderMySQLImpl constructor.
See the Copyright.
getEorDefinerForDelegate
ImmutableUserID getEorDefinerForDelegate()
- In the MySQL DEFINER mode, the view delegate runs under an account.
- Returns:
- the account under which the view delegate runs. Null when there is no delegate.
getEorDefinerHostForDelegate
GroupIDMySQL getEorDefinerHostForDelegate()
- In the MySQL DEFINER mode, the view delegate runs under an account and a current host.
- Returns:
- the host under which the view delegate runs. Null when there is no delegate.