com.ibm.mashups.enabler.model
Interface SpaceModel

All Superinterfaces:
com.ibm.mashups.enabler.DirtyFlagProvider, Invalidatable, ListModel, ListModelController, Locator, Model, SpaceLocator, SubmittableFormProvider

public SpaceModel
extends ListModelController, Invalidatable, SubmittableFormProvider, SpaceLocator, com.ibm.mashups.enabler.DirtyFlagProvider

Interface for a space model.

The space model supports the following strategies:


Method Summary
 SpaceNode create(JSON context)
           creates a new Space node.
 DeferredOperation commit()
           Commits the modifications applied to this model and all dependant models
 Boolean confirmExport(SpaceNode space)
           Confirms whether exporting the node is possible.
 Boolean confirmCopy(SpaceNode space)
           Confirms whether copying the node is possible.
 SubmittableForm getSubmittableImportForm(String id)
           Returns a SubmittableForm object associated with the given id to import a space.
 
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
 
Methods inherited from interface com.ibm.mashups.enabler.space.SpaceLocator
findSpaceByNavigation, findFavorites
 
Methods inherited from interface com.ibm.mashups.enabler.Locator
find
 

Method Detail

create

SpaceNode create(JSON context)
creates a new Space node. The created node can be inserted into the model using an appropriate insert method. The node will not appear in the model unless it is inserted.

Parameters:
context - array of predefined information used for the creation of the node. Should be null.
Returns:
created space node

commit

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

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

confirmExport

Boolean confirmExport(SpaceNode space)
Confirms whether exporting the node is possible.

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

confirmCopy

Boolean confirmCopy(SpaceNode space)
Confirms whether copying the node is possible.

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

getSubmittableImportForm

SubmittableForm getSubmittableImportForm(String id)
Returns a SubmittableForm object associated with the given id to import a space. 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.