com.togethersoft.openapi.baseexpert
Interface ExpertManager


public interface ExpertManager

Expert Manager is the singleton providing the methods
to run Expert implementation
or ExpertRunner implementation.

Author:
TogetherSoft
Version: 1.0

Method Summary
 ExpertcreateExpert(String uin, ExpertController controller)
          Used to get Expert created by one of the ExpertFactory instances.
 ExpertcreateExpert(String parentExpertUin, Expert addinExpert)
          Used to get Expert created by one of the ExpertFactory instances.
 ExpertRunnergetExpertRunner(String uin)
          Returns ExpertRunner instance.
 voidregisterFactory(ExpertFactory factory)
           
 voidshowExpert(Expert expert)
          Shows Together-consistent dialog which
runs given expert
 voidunregisterFactory(ExpertFactory factory)
           

Method Detail

createExpert

public Expert createExpert(String uin, ExpertController controller)
Used to get Expert created by one of the ExpertFactory instances.
ExpertFactory is responsible for "smart" creation (f.e., config-based creation) of expert instances
Parameters:
uin - the unique ID of the Expert to create
controller - the ExpertController instance

createExpert

public Expert createExpert(String parentExpertUin, Expert addinExpert)
Used to get Expert created by one of the ExpertFactory instances.
The Expert is constructed from parent Expert given in parentExpertUin,
and "child" Expert given in addinExpert.
This Expert will show all the pages of parent expert first, then
it shows the pages of child expert. The example of such expert is
"New RealTime Project" in "New..." dialog. The parent expert is "New Project".
Parameters:
parentExpertUin - the uin of the parent expert
addinExpert - the "child" expert

getExpertRunner

public ExpertRunner getExpertRunner(String uin)
Returns ExpertRunner instance.
params uin - the unigue ID of the ExpertRunner implementation.

registerFactory

public void registerFactory(ExpertFactory factory)

showExpert

public void showExpert(Expert expert)
Shows Together-consistent dialog which
runs given expert
See Also:
Expert

unregisterFactory

public void unregisterFactory(ExpertFactory factory)