com.ibm.mashups.enabler.strategy
Interface NavigationDeletionStrategy
- All Superinterfaces:
- com.ibm.mashups.enabler.strategy.Strategy
public NavigationDeletionStrategy
- extends com.ibm.mashups.enabler.strategy.Strategy
Interface that defines the behavior used for page deletion.
- Since:
-
3.0.0.2
Method Summary |
Boolean |
isDeleteContentByID(NavigationNode node,
String contentID)
Returns true if the contents associated with the navigation node is to be deleted, false otherwise. |
isDeleteContentByID
Boolean isDeleteContentByID(NavigationNode node,
String contentID)
-
Returns
true
if the contents associated with the navigation node is to be deleted, false
otherwise.
Notes: - you must not invoke functions which in turn trigger HTTP GET requests, because this strategy is resolved within the commit function of the navigation model, where only modifying requests are allowed
- the input navigation node is deleted from the navigation models context, thus it will not be resolved with calling the find function; however, you may invoke getXML on the navigation node to work on its XML representation
- you may use the default implementation, which will not delete the contents, i.e. not send the HTTP DELETE request to the contents, if the IDs of the navigation node and the contents are identical
- Parameters:
node
-
navigation node to deletecontentID
-
id of the contents referenced by the navigation node
- Returns:
-
true
or false
Copyright IBM Corp. 2010 All Rights Reserved.