HP Integrity NonStop J-Series User Manual

Page 118

Advertising
background image

NOTE:

You can also define an exclude list by defining Regex Patterns under

doNotApplyBrowseAccessTo

list.

The include exclude list for BrowseAccssIncludeExcludeList.xml is interpreted as follows:

1.

First, entries under doNotApplyBrowseAccessTo list are checked. If a match is found, no
further checks are made, and Browse Access is not applied for the query.

2.

If there are no Regex Pattern matches in doNotApplyBrowseAccessTo list, entries in
applyBrowseAccessTo

list are then checked for a match. If a match is found, Browse

Access is enabled.

To define the doNotApplyBrowseAccess list:

For Hibernate applications, include the following changes in your
BrowseAccessIncludeExcludeList.xml

file and modify as required.

<?xml version="1.0" encoding="UTF-8"?>

<java version="1.6.0_22" class="java.beans.XMLDecoder">

<object class="org.hibernate.dialect.SqlmxInterceptor">

<void property="applyBrowseAccessTo">

......

......

</void>

<void property="doNotApplyBrowseAccessTo"-->

<!--EXCLUDE LIST-Please Specify a regular expression

(regex pattern) here.You can specify more than one regex

by adding any number of method tags, for ex: <void

method="add"> <string>regex</string> </void>.

If any of these regex matches with the query

browse access will not be enabled -->

<object class="java.util.ArrayList">

<void method="add">

<string></string>

</void>

</object>

</void>

</object>

</java>

For Spring and Hibernate applications, include the following changes in your bean
definition file and modify the values as required.

<bean id="Interceptor"

class="org.hibernate.dialect.SqlmxInterceptor">

<property name="applyBrowseAccessTo">

<value> ... </value>

<value> ... </value>

</property>

<property name="doNotApplyBrowseAccessTo">

<list>

<!-- EXCLUDE LIST-Please Specify a regular expression

(regex pattern) here.You can specify more than one regex by

adding any number of value tags, for ex:

<value>regex</value>. If any of these regex matches with

the query browse access will not be enabled -->

<!-- The following regex pattern ignores the EMP tables for browse access -->

118

Hibernate Framework

Advertising
This manual is related to the following products: