Package com.documentum.fc.client.search
Interface IDfSmartListDefinition
public interface IDfSmartListDefinition
Defines a smart list. A smart list groups a query definition, the attributes to display for this query, and custom
 properties. 
The display attributes generally should match the result attributes specified in the query. Some of the query result attributes may not be displayable (for example, ID). In this case, they should be omitted from the display list.
Use either
The display attributes generally should match the result attributes specified in the query. Some of the query result attributes may not be displayable (for example, ID). In this case, they should be omitted from the display list.
Use either
IDfSmartList (TBO), or IDfQueryMgr to create, load, save an
 IDfSmartListDefinition.- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intVersion of the XML generated to store a search.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDisplayAttribute(String attributeName) Adds an attribute to the display attribute list.voidaddProperty(String key, String value) Adds a new custom property.voidClears the display attribute list.copy()Performs a deep copy of this instance.intGets the number of attributes that can be displayed.Gets the display attribute list.Gets the custom properties.Gets the query definition.booleanisDisplayAttribute(String attributeName) Indicates whether the attribute can be displayed.voidsetQueryDefinition(IDfQueryDefinition queryDefinition) Sets the query definition.
- 
Field Details- 
VERSIONstatic final int VERSIONVersion of the XML generated to store a search.- See Also:
 
 
- 
- 
Method Details- 
getQueryDefinitionIDfQueryDefinition getQueryDefinition()Gets the query definition.- Returns:
- The query definition.
 
- 
setQueryDefinitionSets the query definition.- Parameters:
- queryDefinition- The query definition.
 
- 
addDisplayAttributeAdds an attribute to the display attribute list. The display attribute list contains no duplicates: if the attribute is already contained in the list, then this call has no effect.
 The display attribute list contains the attributes that can be displayed. The display attributes generally should match the result attributes specified in the query. Some of the query result attributes may not be displayable (for example, ID). In this case, they should be omitted from the display list.- Parameters:
- attributeName- The name of the attribute.
 
- 
isDisplayAttributeIndicates whether the attribute can be displayed.- Parameters:
- attributeName- The name of the attribute.
- Returns:
- true, if the attribute can be displayed;- false, otherwise.
- See Also:
 
- 
getDisplayAttributeCountint getDisplayAttributeCount()Gets the number of attributes that can be displayed.- Returns:
- The display attribute list size.
 
- 
getDisplayAttributesIDfEnumeration getDisplayAttributes()Gets the display attribute list.
 The display list contains the attributes that can be displayed. The display attributes generally should match the result attributes specified in the query. Some of the query result attributes may not be displayable (for example, ID). In this case, they should be omitted from the display list.- Returns:
- The display attribute list (IDfEnumeration of String).
 
- 
clearDisplayAttributesvoid clearDisplayAttributes()Clears the display attribute list. A subsequent call togetDisplayAttributeCount()will return 0.
- 
getPropertiesIDfProperties getProperties()Gets the custom properties.
 Note: these methods should be used as a last resort. Avoid storing UI specific information here, if possible.- Returns:
- The custom properties.
 
- 
addPropertyAdds a new custom property. If the property key already exists, then its value is replaced.
 Note: these methods should be used as a last resort. Avoid storing UI specific information here, if possible.- Parameters:
- key- The property key.
- value- The property value.
 
- 
copyPerforms a deep copy of this instance.- Returns:
- An IDfSmartListDefinition instance.
- Throws:
- DfException
 
 
-