com.ibm.mashups.enabler.model
Interface TemplateModel

All Superinterfaces:
Invalidatable, ListModel, ListModelController, Locator, Model, SubmittableFormProvider

public TemplateModel
extends ListModelController, Invalidatable, SubmittableFormProvider

Interface for a template model.


Method Summary
 DeferredOperation commit()
           Commits the modifications applied to this model and all dependent models.
 Boolean confirmExport(TemplateNode template)
           Confirms whether exporting the template is possible.
 SubmittableForm getSubmittableImportForm(String id)
           Returns a SubmittableForm object associated with the given id to import a template.
 
Methods inherited from interface com.ibm.mashups.enabler.ListModelController
create, confirmCreate, insert, confirmInsert, remove, confirmRemove
 
Methods inherited from interface com.ibm.mashups.enabler.ListModel
iterator
 
Methods inherited from interface com.ibm.mashups.enabler.model.Model
setStrategy, getStrategies, getStrategy, addStrategy, removeStrategy
 
Methods inherited from interface com.ibm.mashups.enabler.Locator
find
 
Methods inherited from interface com.ibm.mashups.enabler.Invalidatable
invalidate
 
Methods inherited from interface com.ibm.mashups.enabler.SubmittableFormProvider
getSubmittableForm
 

Method Detail

commit

DeferredOperation commit()
Commits the modifications applied to this model and all dependent models.

Returns:
a deferred object used to start this operation. The return value when executed through the deferred object is null

confirmExport

Boolean confirmExport(TemplateNode template)
Confirms whether exporting the template is possible.

Parameters:
template - template object or template uri (without any scope). Must not be null
Returns:
true if the node can be exported, false otherwise.

getSubmittableImportForm

SubmittableForm getSubmittableImportForm(String id)
Returns a SubmittableForm object associated with the given id to import a template. Same as getSubmittableForm

Parameters:
id - the id of the html form this object is associated with
Returns:
SubmittableForm object, maybe null


Copyright IBM Corp. 2010 All Rights Reserved.