ePages 6.15.1 - DE_EPAGES/Presentation/Servlet/PageType.pm

Package DE_EPAGES::Presentation::Servlet::PageType

Extends the permission servlet with processing a page of an object

Base
DE_EPAGES::Presentation::Servlet::Permission

Functions

doViewAction
handlePermissionDenied
historyUri
processContent
processErrorContent
processErrorOnSpecialPage
processMonitorContent

doViewAction

Executes a ViewAction and fills the HTTP response using the template and TLE variables provided by the event handler function. Access permissions are checked before running the event handler.

Syntax
$Servlet->doViewAction;

handlePermissionDenied

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

Syntax
$Servlet->handlePermissionDenied( $Error );
Input
$Error (object)
error object
Return
(handleObjectNotFound if pagetype not defined)
$Error

historyUri

returns uri for history.

Syntax
$Servlet->historyUri;
Return
uri (string)
uri for history

processContent

process a page with the given tle variables. if the no object is given the processContent of the permission servlet will be executed.

Syntax
$Servlet->processContent($ViewAction);
Input
$ViewAction (object)
view action (optional)
Return
$Content (string)
processed template

processErrorContent

Generates an error page by processing the page type Error with the System object. Information about the error is added as TLE variables

Syntax
$Servlet->processErrorContent( $Error );
Input
$Error (object)
error object
Return
ProcessPage() (string)
replaced content

processErrorOnSpecialPage

process an error on a special page (e.g. show all errors on startpage) with the given tle variables.

Syntax
$Servlet->processErrorOnSpecialPage($ViewActionName, $ObjectID);
Input
$ViewActionName (string)
view action name
$ObjectID (int)
object id
$hError (hash.ref)
error data
Return
$Content (string)
processed template

processMonitorContent

process content for monitor.

Syntax
$Servlet->processMonitorContent($FileName, $Vars);
Input
$FileName (string)
file name
$AddVars (ref.hash)
vars to add to the servlet