ePages 6.10 - DE_EPAGES/Presentation/Servlet/JSON.pm

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
$Package (string)
package name of error
$LanguageCode (string)
language code
Return
$aFiles (array ref)
list of error file names

errorText

Returns a list of error files for a language-neutral template file.

Syntax
$Message = $Servlet->errorText($Reason, $Package, $Vars);
Input
$Package (string)
package of error
Return
$Message (string)
error message

handleInvalidForm

calls viewError direct, no ErrorAction possible at json.

Syntax
$self->handleInvalidForm( $Error );
Input
$Error (object)
error object

handlePermissionDenied

Dispays the login form as a result of an unauthorized view action. Triggers the action ViewLoginForm and sets the followg TLE variables:

Syntax
$self->handlePermissionDenied( $Error );
Input
$Error (object)
error object

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

Syntax
$self->viewError( $Error );
Input
$Error (object)
error object

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
$rContent (ref)
data