com.ibm.portal.sitemanagement.command
Enum PromoteCommand.Method

java.lang.Object
  extended by java.lang.Enum<PromoteCommand.Method>
      extended by com.ibm.portal.sitemanagement.command.PromoteCommand.Method
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PromoteCommand.Method>
Enclosing interface:
PromoteCommand

public static enum PromoteCommand.Method
extends java.lang.Enum<PromoteCommand.Method>

Method interface which describes promote method to use. All accepted methods are provided as constants by the PromoteCommand. The behavior of the promote command varies based on the selected preference as shown by these tables:

Promote of existing pages without hierarchy (single page)
resource handling target page handling for option
resource DUPLICATE_PRESERVING_PREFERENCES DUPLICATE_DELETING_PREFERENCES
content node order reorder reorder
page single properties (title, friendly name, pzn rule, theme, theme style, locks) replace replace
page multiple properties (meta data, locales, wires, ... ) append replace
page layout (deleting, creation) move, but keep deleted replace
layout nodes order move, append new reorder
implicit derivation (customization) keep keep
explicit derivation <not supported>

All aspects of the table above will apply to this table as well:

Promote of pages with hierarchy
resource handling target page handling for option
resource DUPLICATE_PRESERVING_PREFERENCES COPY_PRESERVING_PREFERENCES DUPLICATE_DELETING_PREFERENCES COPY_DELETING_PREFERENCES
content sub nodes keep only pages that exists in the hierarchy of the node to be promoted. For each node the attributes for a node are described in the table above in option DUPLICATE_PRESERVING_PREFERENCES. appending all node to the existing hierarchy. For each node the attributes for a node are described in the table above in option DUPLICATE_PRESERVING_PREFERENCES. Pages with the same objectid will be moved. keep only pages that exists in the hierarchy of the node to be promoted. For each node the attributes for a node are described in the table above in option DUPLICATE_DELETING_PREFERENCES. appending all node to the existing hierarchy. For each node the attributes for a node are described in the table above in option DUPLICATE_DELETING_PREFERENCES. Pages with the same objectid will be moved.
content node order reorder reorder and add new nodes reorder reorder and add new nodes


Enum Constant Summary
COPY_DELETING_PREFERENCES
          Method of promoting pages that compares page hierarchy and add and replaces nodes on the target that are specified on the source.
COPY_PRESERVING_PREFERENCES
          Method of promoting pages that compares page hierarchy and add and replaces nodes on the target from that of the source, but leaves any existing nodes on target
DUPLICATE_DELETING_PREFERENCES
          Method of promoting pages that completely wipes out existing page hierarchy and creates new nodes to match that of the source.
DUPLICATE_PRESERVING_PREFERENCES
          Method of promoting pages that compares page hierarchy and removes nodes on the target to match that of the source
 
Method Summary
static PromoteCommand.Method valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PromoteCommand.Method[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DUPLICATE_PRESERVING_PREFERENCES

public static final PromoteCommand.Method DUPLICATE_PRESERVING_PREFERENCES
Method of promoting pages that compares page hierarchy and removes nodes on the target to match that of the source


COPY_PRESERVING_PREFERENCES

public static final PromoteCommand.Method COPY_PRESERVING_PREFERENCES
Method of promoting pages that compares page hierarchy and add and replaces nodes on the target from that of the source, but leaves any existing nodes on target


DUPLICATE_DELETING_PREFERENCES

public static final PromoteCommand.Method DUPLICATE_DELETING_PREFERENCES
Method of promoting pages that completely wipes out existing page hierarchy and creates new nodes to match that of the source.


COPY_DELETING_PREFERENCES

public static final PromoteCommand.Method COPY_DELETING_PREFERENCES
Method of promoting pages that compares page hierarchy and add and replaces nodes on the target that are specified on the source. Preferences are not not preserved

Method Detail

values

public static PromoteCommand.Method[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PromoteCommand.Method c : PromoteCommand.Method.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PromoteCommand.Method valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null