HP Integrity NonStop J-Series User Manual

Page 194

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 any match is found,
then no further checks will be made, and Browse Access is not applied for the query.

2.

Entries in applyBrowseAccessTo list are then considered for a match, when there are no
Regex Pattern

matches in doNotApplyBrowseAccessTo list. Browse Access is enabled

when a match is found in applyBrowseAccessTo list.

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 -->

194

Configuring Hibernate Applications on NonStop Systems

Advertising
This manual is related to the following products: