com.sas.services.information.metadata
Class IdFilter

com.sas.services.information.metadata.IdFilter
All Implemented Interfaces:
FilterInterface, java.io.Serializable

public class IdFilter
implements FilterInterface

This is a very specific class used to retrieve an object which the repository identifier is already known. Usually, a fetch would be done as this is a more efficient operation, but there are some instances where a search is deisrable. Also, this mechanism is used for the count operation which counts associated objects. In order to correctly use this class, use the constructor that sets the id string, or set it explicitly, and set the type, then perform the search normally.

See Also:
Serialized Form

Field Summary
 
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
IdFilter()
           
IdFilter(java.lang.String identifier)
           
 
Method Summary
 java.lang.String getDavBasicSearchString()
           
 java.lang.String getDAVSQLString()
          Get the filter in the form of a DAV SQL request.
 java.lang.String getIdString()
           
 java.lang.String getLdapString()
           
 int getOMRFlags()
          Get the flags to add to the OMI request.
 java.lang.String getXMLSelectString()
          Get the filter in the form of an XMLSelect statement.
 void setIdString(java.lang.String string)
           
 
Methods inherited from class com.sas.services.information.Filter
addProtocol, addSearchOption, component2JCRXPath, component2Select, getDAVBase, getDAVBasicSearchString, getDAVScope, getDAVType, getExplicitSearchString, getFilterComponent, getFilterString, getJCRType, getJCRXPathString, getName, getOMROption, getOMRRepository, getOMRSearchString, getOMRTemplate, getOMRType, getProtocols, getRdbmsTable, getSearchOptions, getType, getXPathString, removeProtocol, removeSearchOption, setDAVBase, setDAVScope, setExplicitSearchString, setFilterComponent, setName, setOMRFlags, setOMROption, setOMRRepository, setOMRTemplate, setProtocols, setRdbmsTable, setType, toString
 
Methods inherited from interface com.sas.services.information.FilterInterface
addProtocol, addSearchOption, getDAVBase, getDAVBasicSearchString, getDAVScope, getDAVType, getExplicitSearchString, getFilterComponent, getFilterString, getJCRXPathString, getName, getOMROption, getOMRRepository, getOMRSearchString, getOMRTemplate, getOMRType, getProtocols, getRdbmsTable, getSearchOptions, getType, getXPathString, removeProtocol, removeSearchOption, setDAVBase, setDAVScope, setExplicitSearchString, setFilterComponent, setName, setOMRFlags, setOMROption, setOMRRepository, setOMRTemplate, setProtocols, setRdbmsTable, setType
 

Constructor Detail

IdFilter

public IdFilter()

IdFilter

public IdFilter(java.lang.String identifier)
Method Detail

getIdString

public final java.lang.String getIdString()
Returns:
Returns the _idString.

setIdString

public final void setIdString(java.lang.String string)
Parameters:
string - The _idString to set.

getXMLSelectString

public java.lang.String getXMLSelectString()
Get the filter in the form of an XMLSelect statement.

Specified by:
getXMLSelectString in interface FilterInterface
Overrides:
getXMLSelectString in class Filter
Returns:
An XMLSelect string to pass to OMR.

getOMRFlags

public int getOMRFlags()
Description copied from class: Filter
Get the flags to add to the OMI request.

Specified by:
getOMRFlags in interface FilterInterface
Overrides:
getOMRFlags in class Filter
Returns:
The OMI flags.

getDavBasicSearchString

public java.lang.String getDavBasicSearchString()

getDAVSQLString

public java.lang.String getDAVSQLString()
Description copied from class: Filter
Get the filter in the form of a DAV SQL request. This is aimed at the Microsoft servers - Internet Information Server, SharePoint Portal Server and Exchange server.

Specified by:
getDAVSQLString in interface FilterInterface
Overrides:
getDAVSQLString in class Filter
Returns:
An XML DAV SQL request to pass to a DAV server.

getLdapString

public java.lang.String getLdapString()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.