com.ibm.portal.model.command
Interface RefreshPageLayoutCommand

All Superinterfaces:
Command, Disposable

public interface RefreshPageLayoutCommand
extends Command

This command re-loads the page layout template information and updates the static page content accordingly.

The command can be used as follows:

        RefreshPageLayoutCommand.ExecutionContext ctx = DefaultRefreshPageLayoutCommandContext.getContext(yourContentModelController, yourCorContext);
        RefreshPageLayoutCommand cmd = yourCommandFactory.createCommand(ctx);
        cmd.refresh(yourStaticContentPage);

        // you may now call the refresh() for other static pages using the same controller ...

        ctrl.commit();
        ctrl.dispose();
        cmd.dispose();

 

Since:
7.0
See Also:
ContentModelController, CommandFactory, com.ibm.portal.model.command.helper.DefaultRefreshPageLayoutCommandContext

Nested Class Summary
static interface RefreshPageLayoutCommand.ExecutionContext
          The command context.
 
Method Summary
 void fullRefresh(StaticContentPage page)
          Re-loads the page layout template information and updates the static page content accordingly.
 void refresh(StaticContentPage page)
          Re-loads the page layout template information and updates the static page content accordingly.
 
Methods inherited from interface com.ibm.portal.model.command.Command
getCommandClass
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Method Detail

refresh

void refresh(StaticContentPage page)
             throws ModelException,
                    java.net.URISyntaxException,
                    java.io.IOException
Re-loads the page layout template information and updates the static page content accordingly.

Parameters:
controller - The controller object responsible for comitting this operation. The page won't be acutally refreshed until the controller's commit() method is invoked.
page - The page to be refreshed.
Throws:
ModelException
java.net.URISyntaxException
java.io.IOException

fullRefresh

void fullRefresh(StaticContentPage page)
                 throws ModelException,
                        java.net.URISyntaxException,
                        java.io.IOException
Re-loads the page layout template information and updates the static page content accordingly. The old layout would be deleted.

Parameters:
controller - The controller object responsible for comitting this operation. The page won't be acutally refreshed until the controller's commit() method is invoked.
page - The page to be refreshed.
Throws:
ModelException
java.net.URISyntaxException
java.io.IOException