-
Notifications
You must be signed in to change notification settings - Fork 1
Calls
Calls contain methods with the same signature
public Object <methodName>(final EO eo, final Map attributes) {
...
}
Example: FileCall.read
The constructor of a call consists always from the EOConfigsCache and a key.
public <Type>Call (final EOConfigCache eoCache, final <TypeKey> key) {
super(eoCache, key);
}
Example: FileCall
This class initialize a configuration used as base for the call via EOConfigsCache and the key.
Some magic is here within since it looks in the configuration for the specific Call and try to get the configuration setting. Without this configuration the initialize would stop and throw an error. Same if a configuration with the key is not found.
Reason for this is that a external client, when creating a call, knows which configuration is used from this type of call. This is especially useful, when several similar call types e.g. for databases could be used.
A direct use of the Call class makes only sense, if no internal assets are used, eg for
This class is the base foreach call offering access to some server assets like files or databases. It just initialize the permission object by the values in the configuration.
This is the basic call for list type requests.