Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.model
Interface DataBinder

All Known Implementing Classes:
DataBinderImpl

public interface DataBinder

A DataBinder is the Data Model Object used for Content Server communication. It encapsulates a set of local properties, a collection of result sets and option list values.


Method Summary
 void addFile(java.lang.String name, java.io.File file)
          Add a file for a given file name.
 void addFile(java.lang.String name, TransferFile file)
          Add a file for a given file name
 void addOptionList(java.lang.String name, java.util.List<java.lang.String> values)
          Add an option list with a given name
 void addResultSet(java.lang.String name, DataResultSet resultSet)
          Add a result set with a given name
 boolean containsFiles()
          Check if there are files
 java.lang.String getFieldType(java.lang.String name)
          Retrieve the field type for a given field name.
 java.util.Collection<java.lang.String> getFieldTypeNames()
          Retrieve all field names
 TransferFile getFile(java.lang.String name)
          Retrieve a file for a given file name
 java.util.Collection<java.lang.String> getFileNames()
          Retrieve all file names
 java.lang.String getLocal(java.lang.String name)
          Shortcut for getLocalData().get(name)
 DataObject getLocalData()
          Retrieve the local data
 java.util.List<java.lang.String> getOptionList(java.lang.String name)
          Retrieve a specific option list by name
 java.util.Collection<java.lang.String> getOptionListNames()
          Retrieve all option list names
 DataResultSet getResultSet(java.lang.String name)
          Retrieve the result set by name
 java.util.Collection<java.lang.String> getResultSetNames()
          Retrieve all result set names
 java.util.Map<java.lang.String,DataResultSet> getResultSets()
          Retrieve a map representation of the result sets, indexed by result set name.
 void merge(DataBinder source)
          This will merge copies of all the data from the source binder into this binder, overwriting existing values and result sets, if they exist.
 void putLocal(java.lang.String name, java.lang.String value)
          Shortcut for getLocalData().put(name,value)
 void removeFieldType(java.lang.String name)
          Remove the field type mapping for a given field name
 void removeFile(java.lang.String name)
          Remove a file for a given file name
 void removeOptionList(java.lang.String name)
          Remove an option list for a given name
 void removeResultSet(java.lang.String name)
          Remove the result set for a given name
 void setFieldType(java.lang.String name, java.lang.String type)
          Set a field type for a given field name

 

Method Detail

getLocalData

DataObject getLocalData()
Retrieve the local data
Returns:
the binder local data

getFieldType

java.lang.String getFieldType(java.lang.String name)
Retrieve the field type for a given field name.
Parameters:
name - the field name
Returns:
the field type or null if no type is mapped to this property

setFieldType

void setFieldType(java.lang.String name,
                  java.lang.String type)
Set a field type for a given field name
Parameters:
name - the field name
type - the new type

getFieldTypeNames

java.util.Collection<java.lang.String> getFieldTypeNames()
Retrieve all field names
Returns:
a collection of the field names that have field type mappings

removeFieldType

void removeFieldType(java.lang.String name)
Remove the field type mapping for a given field name
Parameters:
name - the field name to remove from the mappings table

getFileNames

java.util.Collection<java.lang.String> getFileNames()
Retrieve all file names
Returns:
a list of file names

getFile

TransferFile getFile(java.lang.String name)
Retrieve a file for a given file name
Parameters:
name - the file name
Returns:
the file stream or null if not found

addFile

void addFile(java.lang.String name,
             java.io.File file)
             throws java.io.IOException
Add a file for a given file name. Shortcut for calling:
     addFile (name, new TransferStream (file));
 
Parameters:
name - the file name
file - the file object
Throws:
java.io.IOException - if the file cannot be read
See Also:
addFile(String, TransferFile)

addFile

void addFile(java.lang.String name,
             TransferFile file)
Add a file for a given file name
Parameters:
name - the file name
file - the file stream

removeFile

void removeFile(java.lang.String name)
Remove a file for a given file name
Parameters:
name - the file name

containsFiles

boolean containsFiles()
Check if there are files
Returns:
true if their are any files attached to this data binder

getLocal

java.lang.String getLocal(java.lang.String name)
Shortcut for getLocalData().get(name)
Parameters:
name - the local property name
Returns:
the value or null if not found

putLocal

void putLocal(java.lang.String name,
              java.lang.String value)
Shortcut for getLocalData().put(name,value)
Parameters:
name - the local property name
value - the local property value

getResultSet

DataResultSet getResultSet(java.lang.String name)
Retrieve the result set by name
Parameters:
name - the result set name
Returns:
the result set or null if not found

getResultSets

java.util.Map<java.lang.String,DataResultSet> getResultSets()
Retrieve a map representation of the result sets, indexed by result set name. Note: this is an unmodifiable map; add or removing of result sets is done through the addResultSet(String, DataResultSet) and removeResultSet(String) methods.
Returns:
a non-null map of the available result sets, indexed by result set name
See Also:
addResultSet(String, DataResultSet), removeResultSet(String), getResultSetNames()

getResultSetNames

java.util.Collection<java.lang.String> getResultSetNames()
Retrieve all result set names
Returns:
a collection of the available result set names

addResultSet

void addResultSet(java.lang.String name,
                  DataResultSet resultSet)
Add a result set with a given name
Parameters:
name - the result set name
resultSet - the result set

removeResultSet

void removeResultSet(java.lang.String name)
Remove the result set for a given name
Parameters:
name - the result set name to remove

getOptionList

java.util.List<java.lang.String> getOptionList(java.lang.String name)
Retrieve a specific option list by name
Parameters:
name - the list name
Returns:
the list values

getOptionListNames

java.util.Collection<java.lang.String> getOptionListNames()
Retrieve all option list names
Returns:
the names of the available option lists

addOptionList

void addOptionList(java.lang.String name,
                   java.util.List<java.lang.String> values)
Add an option list with a given name
Parameters:
name - the option list name
values - the values

removeOptionList

void removeOptionList(java.lang.String name)
Remove an option list for a given name
Parameters:
name - the option list name

merge

void merge(DataBinder source)
This will merge copies of all the data from the source binder into this binder, overwriting existing values and result sets, if they exist.
Parameters:
source - the source databinder

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.