|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PromoteCommand.Method> com.ibm.portal.sitemanagement.command.PromoteCommand.Method
public static 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:
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:
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 |
---|
public static final PromoteCommand.Method DUPLICATE_PRESERVING_PREFERENCES
public static final PromoteCommand.Method COPY_PRESERVING_PREFERENCES
public static final PromoteCommand.Method DUPLICATE_DELETING_PREFERENCES
public static final PromoteCommand.Method COPY_DELETING_PREFERENCES
Method Detail |
---|
public static PromoteCommand.Method[] values()
for (PromoteCommand.Method c : PromoteCommand.Method.values()) System.out.println(c);
public static PromoteCommand.Method valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |