Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
218 lines (168 sloc) 12.3 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Index</title>
</head>
<body>
<div id="result">RESULT[${result}]</div>
<div id="status">STATUS[${status}]</div>
<div><t:security.loginlink /></div>
<h3>Testing interceptors work</h3>
<div><t:actionlink t:id="componentMethodInterceptor" id="componentMethodInterceptor">action componentMethodInterceptor (Restricted by annotation on page method)</t:actionlink> </div>
<div><t:eventlink event="componentMethodInterceptorRequiresPermissionsILAC" context="literal:allow" id="componentMethodInterceptorRequiresPermissionsILACSuccess">action componentMethodInterceptorRequiresPermissionsILACSuccess (Restricted by annotation on page method)</t:eventlink></div>
<div><t:eventlink event="componentMethodInterceptorRequiresPermissionsILAC" context="literal:deny" id="componentMethodInterceptorRequiresPermissionsILACUnauthorized">action componentMethodInterceptorRequiresPermissionsILACUnauthorized (Restricted by annotation on page method)</t:eventlink></div>
<div><t:pagelink id="about" page="about">link to page about (Restricted by @RequiresAuthentication annotation on page class)</t:pagelink></div>
<div><t:pagelink id="annotated" page="annotated/index">link to page annotated/index (Restricted by @RequiresRoles("user") annotation on an index page class)</t:pagelink></div>
<p />
<div><t:actionlink t:id="alphaServiceInvoke" id="alphaServiceInvoke">action alphaServiceInvoke (Restricted by annotation on service method)</t:actionlink></div>
<div><t:actionlink t:id="betaServiceInvoke" id="betaServiceInvoke">action betaServiceInvoke (Restricted by annotation on service class)</t:actionlink></div>
<div><t:actionlink t:id="alphaServiceInvokeWithSecurityDisabled" id="alphaServiceInvokeWithSecurityDisabled">action alphaServiceInvoke (but disable security using SecurityService.invokeWithSecurityDisabled())</t:actionlink></div>
<h3>Testing all annotation types</h3>
<div><t:actionlink t:id="alphaServiceRequiresAuthentication" id="alphaServiceRequiresAuthentication">action alphaServiceRequiresAuthentication</t:actionlink></div>
<div><t:actionlink t:id="alphaServiceRequiresUser" id="alphaServiceRequiresUser">action alphaServiceRequiresUser</t:actionlink></div>
<div><t:actionlink t:id="alphaServiceRequiresGuest" id="alphaServiceRequiresGuest">action alphaServiceRequiresGuest</t:actionlink></div>
<div><t:actionlink t:id="alphaServiceRequiresRolesUser" id="alphaServiceRequiresRolesUser">action alphaServiceRequiresRolesUser</t:actionlink></div>
<div><t:actionlink t:id="alphaServiceRequiresRolesManager" id="alphaServiceRequiresRolesManager">action alphaServiceRequiresRolesManager</t:actionlink></div>
<div><t:actionlink t:id="alphaServiceRequiresPermissionsNewsView" id="alphaServiceRequiresPermissionsNewsView">action alphaServiceRequiresPermissionsNewsView</t:actionlink></div>
<div><t:actionlink t:id="alphaServiceRequiresPermissionsNewsEdit" id="alphaServiceRequiresPermissionsNewsEdit">action alphaServiceRequiresPermissionsNewsEdit</t:actionlink></div>
<div><t:actionlink t:id="gammaServiceRequiresPermissionsILACSuccessWithoutArguments" id="gammaServiceRequiresPermissionsILACSuccessWithoutArguments">action gammaServiceRequiresPermissionsILACSuccessWithoutArguments</t:actionlink></div>
<div><t:actionlink t:id="gammaServiceRequiresPermissionsILACSuccessWithArgument" id="gammaServiceRequiresPermissionsILACSuccessWithArgument">action gammaServiceRequiresPermissionsILACSuccessWithArgument</t:actionlink></div>
<div><t:actionlink t:id="gammaServiceRequiresPermissionsILACUnauthorizedWithArgument" id="gammaServiceRequiresPermissionsILACUnauthorizedWithArgument">action gammaServiceRequiresPermissionsILACUnauthorizedWithArgument</t:actionlink></div>
<h3>Testing filter works</h3>
<div><t:pagelink id="authcCabinet" page="authc/cabinet">authc/cabinet (authc filter)</t:pagelink></div>
<div><t:pagelink id="partlyAuthcCabinet" page="partlyauthc/cabinet">authc/cabinet (authc filter)</t:pagelink></div>
<div><t:pagelink id="authcSignup" page="authc/signup">authc/signup (anon filter)</t:pagelink></div>
<p />
<div><t:pagelink id="userCabinet" page="user/cabinet">user/cabinet (user filter)</t:pagelink></div>
<div><t:pagelink id="userSignup" page="user/signup">user/signup (anon filter)</t:pagelink></div>
<p />
<div><t:pagelink id="rolesUser" page="roles/user">roles/user (roles filter, role exists)</t:pagelink></div>
<div><t:pagelink id="rolesManager" page="roles/manager">roles/manager (roles filter, role does not exists)</t:pagelink></div>
<p />
<div><t:pagelink id="permView" page="perms/view">perms/view (perms filter, permission exists)</t:pagelink></div>
<div><t:pagelink id="permEdit" page="perms/edit">perms/edit (perms filter, permission does not exists)</t:pagelink></div>
<div><t:pagelink id="permILACView" page="perms/ilacView">perms/ilacView (perms filter, permission exists)</t:pagelink></div>
<div><t:pagelink id="permILACEdit" page="perms/ilacEdit">perms/ilacEdit (perms filter, permission does not exists)</t:pagelink></div>
<div><t:pagelink id="contributed" page="contributed/index">contributed filterChainDefinition</t:pagelink></div>
<h4> ports filters </h4>
<ul>
<li><t:pagelink id="ssl" page="ports/ssl">ports/ssl (ssl filter, no SSL support)</t:pagelink></li>
<li><t:pagelink id="port8180" page="ports/port8180">ports/port8180 (port filter, default test port 8180 works!)</t:pagelink></li>
<li><t:pagelink id="port9090" page="ports/port9090">ports/port9090 (port filter, arbitrary port 9090 it's blocked)</t:pagelink></li>
</ul>
<h3>Testing ajax response</h3>
<div>
<t:zone t:id="targetZone">
<div>RESULT[${result}]</div>
</t:zone>
<div><t:actionlink zone="targetZone" t:id="componentMethodInterceptorWithAjax" id="componentMethodInterceptorWithAjax">action componentMethodInterceptor (Restricted by annotation on page method), targeting targetZone</t:actionlink> </div>
</div>
<h3>Testing components work</h3>
<t:security.authenticated>
<div id="AuthenticatedComponent">AuthenticatedComponent - RENDERED</div>
</t:security.authenticated>
<t:security.notAuthenticated>
<div id="NotAuthenticatedComponent">NotAuthenticatedComponent - RENDERED</div>
<p:else>
<div id="NotAuthenticatedComponentElse">NotAuthenticatedComponentElse - RENDERED</div>
</p:else>
</t:security.notAuthenticated>
<t:security.user>
<div id="UserComponent">UserComponent - RENDERED</div>
</t:security.user>
<t:security.guest>
<div id="GuestComponent">GuestComponent - RENDERED</div>
</t:security.guest>
<t:security.hasAnyRoles t:roles="user, driver">
<div id="HasAnyRolesComponentSuccess">HasAnyRolesComponentSuccess - RENDERED</div>
</t:security.hasAnyRoles>
<t:security.hasAnyRoles t:roles="user|driver">
<div id="HasAnyRolesComponentSuccessAlternateDivisor">HasAnyRolesComponentSuccessAlternateDivisor - RENDERED</div>
</t:security.hasAnyRoles>
<t:security.hasAnyRoles t:roles="teacher, manager">
<div id="HasAnyRolesComponentFailed">HasAnyRolesComponentFailed - RENDERED</div>
</t:security.hasAnyRoles>
<t:security.hasAnyRoles t:roles="teacher|manager">
<div id="HasAnyRolesComponentFailedAlternateDivisor">HasAnyRolesComponentFailedAlternateDivisor - RENDERED</div>
</t:security.hasAnyRoles>
<t:security.hasAllRoles t:roles="user, student">
<div id="HasAllRolesComponentSuccess">HasAllRolesComponentSuccess - RENDERED</div>
</t:security.hasAllRoles>
<t:security.hasAllRoles t:roles="user|student">
<div id="HasAllRolesComponentSuccessAlternateDivisor">HasAllRolesComponentSuccessAlternateDivisor - RENDERED</div>
</t:security.hasAllRoles>
<t:security.hasAllRoles t:roles="user, manager">
<div id="HasAllRolesComponentFailed">HasAllRolesComponentFailed - RENDERED</div>
</t:security.hasAllRoles>
<t:security.hasAllRoles t:roles="user|manager">
<div id="HasAllRolesComponentFailed">HasAllRolesComponentFailedAlternateDivisor - RENDERED</div>
</t:security.hasAllRoles>
<t:security.hasPermission t:permission="book:read">
<div id="HasPermissionComponentSuccess">HasPermissionComponentSuccess - RENDERED</div>
</t:security.hasPermission>
<t:security.hasAnyPermissions t:permissions="book:read|book:write">
<div id="HasAnyPermissionsComponentSuccess">HasAnyPermissionsComponentSuccess - RENDERED</div>
</t:security.hasAnyPermissions>
<t:security.hasAnyPermissions t:permissions="pen:read|book:write">
<div id="HasAnyPermissionsComponentFailed">HasAnyPermissionsComponentFailed - RENDERED</div>
</t:security.hasAnyPermissions>
<t:security.hasAllPermissions t:permissions="book:read|pen:write">
<div id="HasAllPermissionsComponentSuccess">HasAllPermissionsComponentSuccess - RENDERED</div>
</t:security.hasAllPermissions>
<t:security.hasAllPermissions t:permissions="book:read|book:write">
<div id="HasAllPermissionsComponentFailed">HasAllPermissionsComponentFailed - RENDERED</div>
</t:security.hasAllPermissions>
<t:security.hasPermission t:permission="book:write">
<div id="HasPermissionComponentFailed">HasPermissionComponentFailed - RENDERED</div>
</t:security.hasPermission>
<t:security.hasRole t:role="user">
<div id="HasRoleComponentSuccess">HasRoleComponentSuccess - RENDERED</div>
</t:security.hasRole>
<t:security.hasRole t:role="manager">
<div id="HasRoleComponentFailed">HasRoleComponentFailed - RENDERED</div>
</t:security.hasRole>
<t:security.ifGranted t:anyRoles="user, driver">
<div id="IfGrantedAnyRolesComponentSuccess">IfGrantedAnyRolesComponentSuccess - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:anyRoles="user|driver">
<div id="IfGrantedAnyRolesComponentSuccessAlternateDivisor">IfGrantedAnyRolesComponentSuccessAlternateDivisor - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:anyRoles="teacher, manager">
<div id="IfGrantedAnyRolesComponentFailed">IfGrantedAnyRolesComponentFailed - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:anyRoles="teacher|manager">
<div id="IfGrantedAnyRolesComponentFailedAlternateDivisor">IfGrantedAnyRolesComponentFailedAlternateDivisor - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:allRoles="user, student">
<div id="IfGrantedAllRolesComponentSuccess">IfGrantedAllRolesComponentSuccess - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:allRoles="user|student">
<div id="IfGrantedAllRolesComponentSuccessAlternateDivisor">IfGrantedAllRolesComponentSuccessAlternateDivisor - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:allRoles="user, manager">
<div id="IfGrantedAllRolesComponentFailed">IfGrantedAllRolesComponentFailed - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:allRoles="user|manager">
<div id="IfGrantedAllRolesComponentFailedAlternateDivisor">IfGrantedAllRolesComponentFailedAlternateDivisor - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:anyPermissions="book:read|book:write">
<div id="IfGrantedAnyPermissionsComponentSuccess">IfGrantedAnyPermissionsComponentSuccess - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:anyPermissions="pen:read|book:write">
<div id="IfGrantedAnyPermissionsComponentFailed">IfGrantedAnyPermissionsComponentFailed - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:allPermissions="book:read|pen:write">
<div id="IfGrantedAllPermissionsComponentSuccess">IfGrantedAllPermissionsComponentSuccess - RENDERED</div>
</t:security.ifGranted>
<t:security.ifGranted t:allPermissions="book:read|book:write">
<div id="IfGrantedAllPermissionsComponentFailed">IfGrantedAllPermissionsComponentFailed - RENDERED</div>
</t:security.ifGranted>
<t:if test="permission:book:read">
<div id="PermissionBindingSuccess">PermissionBindingSuccess - RENDERED</div>
</t:if>
<t:if test="permission:book:write">
<div id="PermissionBindingFailed">PermissionBindingFailed - RENDERED</div>
</t:if>
</body>
</html>
You can’t perform that action at this time.