com.ibm.portal.sitemanagement.command
Interface SitemanagementCommandContextFactory


public interface SitemanagementCommandContextFactory

Factory interface for providing SitemanagementCommandContext objects. This factory can accept an existing ContentModelController obtained through local means. Alternatively, the factory can take a ServerInfo parameter to establish a completely remote version of a CommandContext.

Since:
6.1

Method Summary
 SitemanagementCommandContext<DemoteCommand> createDemoteCommandContext(ContentModelController<ContentNode,ModifiableContentNode> controller)
          Creates a SitemanagementCommandContext object
 SitemanagementCommandContext<PromoteCommand> createPromoteCommandContext(ContentModelController<ContentNode,ModifiableContentNode> controller)
          Creates a SitemanagementCommandContext object
 SitemanagementCommandContext<PublishCommand> createPublishCommandContext(ContentModelController<ContentNode,ModifiableContentNode> source, ContentModelController<ContentNode,ModifiableContentNode> target)
          Creates a SitemanagementCommandContext object
 

Method Detail

createPromoteCommandContext

SitemanagementCommandContext<PromoteCommand> createPromoteCommandContext(ContentModelController<ContentNode,ModifiableContentNode> controller)
                                                                         throws java.lang.IllegalAccessException,
                                                                                java.lang.InstantiationException
Creates a SitemanagementCommandContext object

Returns:
command context for the PromoteCommand
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException

createDemoteCommandContext

SitemanagementCommandContext<DemoteCommand> createDemoteCommandContext(ContentModelController<ContentNode,ModifiableContentNode> controller)
                                                                       throws java.lang.IllegalAccessException,
                                                                              java.lang.InstantiationException
Creates a SitemanagementCommandContext object

Returns:
command context for the DemoteCommand
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException

createPublishCommandContext

SitemanagementCommandContext<PublishCommand> createPublishCommandContext(ContentModelController<ContentNode,ModifiableContentNode> source,
                                                                         ContentModelController<ContentNode,ModifiableContentNode> target)
                                                                         throws java.lang.IllegalAccessException,
                                                                                java.lang.InstantiationException
Creates a SitemanagementCommandContext object

Returns:
command context for the PublishCommand
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException