public static class IPcdAttribute.SEARCH extends Object
With the introduction of the constants
COMPARE_STRENGTH_PRIMARY,
COMPARE_STRENGTH_SECONDARY and
COMPARE_STRENGTH_TERTIARY the Pcd GL is able to perform
language-sensitive String searching and String comparison that is used in
the various expressions offered during search. Often the 'normal'
equals,compare or indexOf
methods available for Strings are not sufficient when there are
requirements for a language-sensitive search. The following lists those
issues which are applicable to text searching:
The search functionality uses the compare methods of
Collatorand the
CollationElementIteratorwhenever it comes to a search
in String- or Text-valued attributes.
Example for a use in filterExpressions:
(&(com.sap.portal.pcd.gl.ObjectClass=myObjectClass)(title:com.sap.portal.pcd.gl.compareStrengthSecondary:=*my*title*))
This filter string searches for all objects of the specified objectclass
containing the patterns my and title in the title
attribute ignoring case differences. Thus also returning objects with
title e.g. mySpecialTitle .
Please keep in mind that when using COMPARE_STRENGTH_PRIMARY
and COMPARE_STRENGTH_SECONDARY constants in addition with
attributes IPcdAttribute.ATOMIC_NAMEand IPcdAttribute.OBJECT_CLASSthe Pcd GL is
unable to perform a fast database search.
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPARE_STRENGTH_PRIMARY
A CompareStrength value indicates the level at which two collation
elements should be considered equal.
|
static String |
COMPARE_STRENGTH_SECONDARY
A CompareStrength value indicates the level at which two collation
elements should be considered equal.
|
static String |
COMPARE_STRENGTH_TERTIARY
A CompareStrength value indicates the level at which two collation
elements should be considered equal.
|
| Constructor and Description |
|---|
SEARCH() |
public static final String COMPARE_STRENGTH_PRIMARY
COMPARE_STRENGTH_PRIMARY ignores case and accents.
public static final String COMPARE_STRENGTH_SECONDARY
COMPARE_STRENGTH_SECONDARY ignores case but considers
accents. public static final String COMPARE_STRENGTH_TERTIARY
COMPARE_STRENGTH_TERTIARY considers case, accents and
other differences. It's the highest level of equality and the default
if no level is specified. | Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS
|
[sap.com]
|
api
|
BC-PIN-PCD
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
-
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice