Static ReadonlyAuthorizesTrue when the action authorizes its caller itself, so a public entry point such as the
RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller
must hold, or reads and writes only with the caller's own permissions. Leave it false for an
action that acts with more authority than its caller, or that reaches data or sends messages
the caller chooses but could not otherwise reach.
The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.
ProtectedaddHelper to add output parameter
ProtectedcreateProtectedcreateHelper to create success result
Optionalparams: RunActionParamsProtectedgetGet boolean parameter value with default
ProtectedgetGet storage account and initialize driver in one step using enterprise model
Action parameters containing StorageAccount
Initialized driver and result if error occurred
ProtectedgetGet numeric parameter value with default
ProtectedgetExtract parameter value by name (case-insensitive)
ProtectedgetGet storage account entity by name using cached metadata.
Name of the storage account
MJFileStorageAccountEntity or null if not found
ProtectedgetGet storage provider entity by ID using cached metadata.
ID of the storage provider
MJFileStorageProviderEntity or null if not found
ProtectedgetGet string parameter value (guaranteed to be string or undefined)
ProtectedgetGet string parameter value with default
ProtectedinitializeInitialize storage driver using the enterprise credential model via FileStorageEngine.
MJFileStorageAccountEntity to initialize
User context for credential access
Initialized FileStorageBase driver
ProtectedInternalGenerate a pre-authenticated download URL
The action parameters:
Operation result with:
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Action for generating a pre-authenticated download URL for a file.
Example