com.ibm.portal.sitemanagement.command
Interface PublishCommand

All Superinterfaces:
Disposable, SitemanagementCommand

public interface PublishCommand
extends SitemanagementCommand

The PublishCommand transfers the specified resource between two servers. Once the resource is moved it is only visible for a certain set of users. The resource will be hidden by a visibiliry rule

Note: This command can only be executed once.

Since:
6.1

Method Summary
 void execute()
          Executes the Publish command
 void setNextResource(Identifiable sibling)
          Sets the reference to the next resource
 void setNextResource(java.lang.String siblingUniqueName)
          Sets the reference to the next resource
 void setParentResource(Identifiable parent)
          Sets the reference to the parent
 void setParentResource(java.lang.String parentUniqueName)
          Sets the reference to the parent
 
Methods inherited from interface com.ibm.portal.sitemanagement.command.SitemanagementCommand
setHierarchy, setResource, setResource
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Method Detail

execute

void execute()
             throws SiblingNotFoundException,
                    ParentNotFoundException,
                    NodeNotFoundException,
                    CannotPublishPageException
Executes the Publish command

Specified by:
execute in interface SitemanagementCommand
Throws:
SiblingNotFoundException - is thrown if the referenced sibling couldn't be found
ParentNotFoundException - is thrown if the referenced parent couldn't be found
NodeNotFoundException - is thrown if the given resource couldn't be found
CannotPublishPageException - is thrown if an error during the publish proccessing occurs

setParentResource

void setParentResource(Identifiable parent)
Sets the reference to the parent

Parameters:
parent - Identifiable reference

setParentResource

void setParentResource(java.lang.String parentUniqueName)
Sets the reference to the parent

Parameters:
parentUniqueName - reference

setNextResource

void setNextResource(Identifiable sibling)
Sets the reference to the next resource

Parameters:
sibling - Identifiable reference

setNextResource

void setNextResource(java.lang.String siblingUniqueName)
Sets the reference to the next resource

Parameters:
siblingUniqueName - reference