Package DE_EPAGES::Presentation::Servlet::JSON
Extends the permission servlet with processing json request of an object
Base |
DE_EPAGES::Presentation::Servlet::Permission |
Functions
- errorFiles
- errorText
- handleInvalidForm
- handlePermissionDenied
- processMonitorContent
- viewError
- writeContentOutput
errorFiles
Returns a list of error files for a language-neutral template file.
Syntax |
$aFiles = $Servlet->errorFiles( $Package, $LanguageCode ); |
Example |
$aFiles = $Servlet->errorFiles( 'DE_EPAGES::Presentation::UI::Object', 'de' ); |
Input |
|
Return |
|
errorText
Returns a localized error message.
Syntax |
$Message = $Servlet->errorText($Reason, $Package, $hVars); |
Input |
|
Return |
|
handleInvalidForm
calls viewError direct, no ErrorAction possible at json.
Syntax |
$self->handleInvalidForm( $Error ); |
Input |
|
handlePermissionDenied
Dispays the login form as a result of an unauthorized view action. Triggers the action ViewLoginForm and sets the followg TLE variables:
- PermissionDenied = 1
- PermissionDeniedText = $Error->shortMessage
Syntax |
$self->handlePermissionDenied( $Error ); |
Input |
|
processMonitorContent
process content for monitor.
Syntax |
$self->processMonitorContent($FileName, $Vars); |
viewError
Displays an error page by processing the page type Error with the System object. Information about the error is added as TLE variables
- Error.Code - error code
- Error.ShortMessage - error message
- Error.LongMessage - error message with stack trace
- Error.Vars - additional information about the error
Syntax |
$self->viewError( $Error ); |
Input |
|
writeContentOutput
Writes the json content direct to the servlet output.
Syntax |
$Servlet->writeContentOutput( $rContent ); |
Example |
$Servlet->writeContentOutput($Object->get([qw (Alias NameOrAlias ObjectID Position)])); |
Input |
|