com.togethersoft.openapi.baseexpert
Interface ExpertFactory


public interface ExpertFactory

Experts factory.
Responsible for "smart" (f.e. from config) expert creation

Author:
TogetherSoft
Version: 1.0

Method Summary
 booleancanCreateExpert(String uin)
          Returns true if this factory can create expert with given unique ID
 ExpertcreateExpert(String uin, ExpertModel model, ExpertController delegate)
          Creates expert with given uin
 ExpertcreateExpert(String parentExpertUin, Expert addinExpert)
          Creates expert constructed from parent Expert given in parentExpertUin,
and "child" Expert given in addinExpert.

Method Detail

canCreateExpert

public boolean canCreateExpert(String uin)
Returns true if this factory can create expert with given unique ID

createExpert

public Expert createExpert(String uin, ExpertModel model, ExpertController delegate)
Creates expert with given uin
Parameters:
uin - unique ID of the expert
model - the ExpertModel used
delegate - the ExpertController instance

createExpert

public Expert createExpert(String parentExpertUin, Expert addinExpert)
Creates expert 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