%access-control() Function

Top  Previous  Next

%access-control() function forms an accessControl configuration element and returns it.

Syntax:

%access-control(access-control-definition)

access-control-definition

Access Control Definition Syntax:

[security-domain-name:]check-point[,login-page[,error-page]]

security-domain-name

The name of the security domain.

check-point

The name of the check-point to check. If the specified check-point is not defined in the security domain yet, the MoreMotion AF will assume that the user is authorized.

login-page

The name of the page to redirect in the user in not yet logged in. The default is "index".

error-page

If the user is logged in but has no authority on the specified check-point then he is redirected to this page. If this parameter is omitted, the standard error page of MoreMotion AF is the default.

MoreMotion AF "accessControl" configuration Element

The accessControl configuration element that is formed and returned by the %access-control() function is as follows.

 
<accessControl checkPoint="" loginPage="" failurePage="" securityDomain="" />