|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.publish.metadata.PackageFilter
@SASScope(value="ALL") @BinaryCompatibilityOnly public class PackageFilter
This class extends KeywordFilter to provide a convenient mechanism to search for package objects in multiple repository types. It allows searching on name, description, name/value pairs, the abstract, and the owning channel. Due to restrictions in the searching capabilities of the Metadata Server, only one of the abstract, channel, and name/value pairs can be searched on at once. If more than one is set, the order of preference is channel, name/value pairs and abstract. Also, exclusion on the basis of name value pairs doesn't work with the Metadata Server or a WebDAV server.
| Field Summary |
|---|
| Fields inherited from class com.sas.services.information.metadata.KeywordFilter |
|---|
_keywords |
| Fields inherited from class com.sas.services.information.Filter |
|---|
_component |
| Fields inherited from interface com.sas.services.information.FilterInterface |
|---|
BASE_SCOPE, FILTERCOMPONENT_UNSUPPORTED, FLAG_OVERRIDE, ONELEVEL_SCOPE, PROTOCOL_DAV, PROTOCOL_HIBERNATE, PROTOCOL_IPOD, PROTOCOL_LDAP, PROTOCOL_OMI, SUBTREE_SCOPE |
| Constructor Summary | |
|---|---|
PackageFilter()
|
|
PackageFilter(java.lang.String key,
int relation,
java.lang.String value)
|
|
| Method Summary | |
|---|---|
void |
clearNameValuePairs()
|
void |
excludeNameValuePair(java.lang.String name,
java.lang.String value)
|
ChannelInterface |
getChannel()
|
java.lang.String |
getDAVBasicSearchString()
Get the filter in the form of a DAV basicsearch XML request. |
java.lang.String |
getDAVSQLString()
Get the filter in the form of a DAV SQL request. |
java.lang.String |
getDAVType()
Get the DAV type string. |
java.lang.String |
getLDAPType()
|
java.lang.String |
getOMRType()
Get the OMR type. |
java.lang.String |
getXMLSelectString()
Get the filter in the form of an XMLSelect statement. |
void |
includeNameValuePair(java.lang.String name,
java.lang.String value)
|
void |
setAbstract(java.util.List abstracts)
Add search by abstract. |
void |
setAbstract(java.lang.String abstractString,
int operation)
Add search by abstract. |
void |
setChannel(ChannelInterface channel)
|
void |
setDescription(java.lang.String description,
int operation)
Add search by description. |
| Methods inherited from class com.sas.services.information.metadata.KeywordFilter |
|---|
addKeyword, getKeywordSelectString, removeKeyword |
| Methods inherited from class com.sas.services.information.Filter |
|---|
addProtocol, addSearchOption, component2JCRXPath, component2Select, getDAVBase, getDAVScope, getExplicitSearchString, getFilterComponent, getFilterString, getJCRType, getJCRXPathString, getName, getOMRFlags, getOMROption, getOMRRepository, getOMRSearchString, getOMRTemplate, getProtocols, getRdbmsTable, getSearchOptions, getType, getXPathString, removeProtocol, removeSearchOption, setDAVBase, setDAVScope, setExplicitSearchString, setFilterComponent, setName, setOMRFlags, setOMROption, setOMRRepository, setOMRTemplate, setProtocols, setRdbmsTable, setType, toString |
| Constructor Detail |
|---|
public PackageFilter()
public PackageFilter(java.lang.String key,
int relation,
java.lang.String value)
| Method Detail |
|---|
public void includeNameValuePair(java.lang.String name,
java.lang.String value)
public void excludeNameValuePair(java.lang.String name,
java.lang.String value)
public void clearNameValuePairs()
public java.lang.String getOMRType()
Filter
getOMRType in interface FilterInterfacegetOMRType in class Filterpublic java.lang.String getLDAPType()
public java.lang.String getDAVType()
Filter
getDAVType in interface FilterInterfacegetDAVType in class Filterpublic ChannelInterface getChannel()
public void setChannel(ChannelInterface channel)
public void setDescription(java.lang.String description,
int operation)
description - The text to search for in the description.operation - Either FilterComponent.EQUALS or FilterComponent.CONTAINS
public void setAbstract(java.lang.String abstractString,
int operation)
abstractString - The text to search for in the abstract.operation - Either FilterComponent.EQUALS or FilterComponent.CONTAINSpublic void setAbstract(java.util.List abstracts)
abstracts - The list of abstract strings. Each item is
text to search for in the abstract. This uses the
FilterComponent.CONTAINS operator since a list of Strings is used.public java.lang.String getXMLSelectString()
getXMLSelectString in interface FilterInterfacegetXMLSelectString in class KeywordFilterpublic java.lang.String getDAVBasicSearchString()
Filter
getDAVBasicSearchString in interface FilterInterfacegetDAVBasicSearchString in class Filterpublic java.lang.String getDAVSQLString()
Filter
getDAVSQLString in interface FilterInterfacegetDAVSQLString in class Filter
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||