|
SAP NetWeaver 7.30 Enterprise Portal (SP07) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.prt.component.AbstractPortalComponent
com.sapportals.admin.wizardframework.AbstractDynamicWizard
com.sapportals.admin.wizardframework.templates.AbstractWizard
com.sap.portal.admin.wizard.AbstractPCMWizard
public class AbstractPCMWizard
The class that represents a wizard for creating a PCD object.
The class provides methods for customizing the following:
| Nested Class Summary | |
|---|---|
static class |
AbstractPCMWizard.InfoPaneInputKeys
Deprecated. Use Admin Studio Wizard Framework, as described in Creating Administration Interfaces (Web Dynpro) on the Help Portal documentation (help.sap.com). |
| Field Summary | |
|---|---|
static String |
BUNDLE_CUSTOMIZED_KEYS
Deprecated. The session key for the strings that the wizard developer overrides. |
protected static String |
END_PANE
Deprecated. A constant that defines the alias that points to a summary pane. |
static String |
META_ATTRIBUTE_DELIMITER
Deprecated. A constant that defines the delimeter for meta attribute IDs. |
protected static String |
START_PANE
Deprecated. A constant that defines the alias that points to an info pane. |
| Fields inherited from class com.sapportals.admin.wizardframework.AbstractDynamicWizard |
|---|
BACK, CANCEL, FINISH, NEXT, PREV, STEP_NO_OFFSET, WIZARD_PARAMETERS |
| Constructor Summary | |
|---|---|
AbstractPCMWizard()
Deprecated. A blank constructor. |
|
| Method Summary | |
|---|---|
protected void |
addDependencies(IConfigurableWizard wizard)
Deprecated. Adds wizard dependencies. |
protected void |
addPanes(IConfigurableWizard wizard)
Deprecated. Adds common panes to the wizard. |
protected void |
addTransitions(IConfigurableWizard wizard)
Deprecated. Adds default transitions between common panes. |
protected void |
addUserPanes(IConfigurableWizard wizard)
Deprecated. Adds user panes. |
protected void |
addUserTransitions(IConfigurableWizard wizard)
Deprecated. Adds user transitions. |
void |
finalizeDescriptor(Map attributes,
Object descriptor,
IWizardContext context)
Deprecated. Finalizes the descriptor before saving. |
void |
finalizeObject(IWizardContext context)
Deprecated. Finalizes the new saved object. |
void |
finalizeObject(String newObjectId,
IWizardContext context)
Deprecated. Finalize the new saved object. |
void |
finalizeSummaries(Map summaries,
IWizardContext context)
Deprecated. Finalizes the summaries before they are displayed in the summary pane. |
static PPLogger |
getLogger()
Deprecated. |
void |
initWizardSession(IWizardContext context)
Deprecated. Initializes a wizard session. |
protected void |
setUIStrings(Map map)
Deprecated. Overrides the common strings that are provided by the toolkit. |
void |
setupWizard(IConfigurableWizard wizard,
IPortalComponentProfile profile,
Map params,
ResourceBundle languageResources)
Deprecated. Configures the wizard. |
| Methods inherited from class com.sapportals.admin.wizardframework.AbstractDynamicWizard |
|---|
doContent, processWizardParams |
| Methods inherited from class com.sapportals.portal.prt.component.AbstractPortalComponent |
|---|
destroy, doAbout, doAfterContent, doBeforeContent, doComponentEvent, doEdit, doHandleEditData, doHelp, doOnNodeReady, doOnNodeRemove, doOnPOMReady, doPreview, doRefresh, doRequestEvent, getCacheDiscriminant, getCachingLevel, handleEvent, hasExpired, init, init, init, service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BUNDLE_CUSTOMIZED_KEYS
public static final String META_ATTRIBUTE_DELIMITER
protected static final String START_PANE
protected static final String END_PANE
| Constructor Detail |
|---|
public AbstractPCMWizard()
| Method Detail |
|---|
public void initWizardSession(IWizardContext context)
setUIStrings(java.util.Map),
and puts them in the session.
initWizardSession in interface IWizardConfiguratorinitWizardSession in class AbstractDynamicWizardcontext - the current wizard contextIWizardConfigurator.initWizardSession(com.sapportals.admin.wizardframework.api.IWizardContext)
public void setupWizard(IConfigurableWizard wizard,
IPortalComponentProfile profile,
Map params,
ResourceBundle languageResources)
IDynamicWizardConfiguratorIConfigurableWizard object.
wizard - the IConfigurableWizard instance
used to set up the wizardprofile - the wizard profileparams - request parameters passed to the wizardlanguageResources - a resource bundle for the requested localeprotected void setUIStrings(Map map)
key = FINISH_QUESTION_STR, and the string. In the map
that is passed as a parameter to this method, add the entry:
key = FinishPane.UiStrings.POST_COMPLETION_CHOICE_CAPTION_BUNDLE_KEY
value = FINISH_QUESTION_STR.
map - a map with the customized keys and values
public void finalizeSummaries(Map summaries,
IWizardContext context)
Pair instance as a
value. The Pair instance holds the summary caption, and the
attribute value. The summaries that are registered by the
user are held as {String, Pair} entries. The summary pane
looks for the value's friendly name for those entries, using the
PropertyEditor API. The developer can modify the entries
and/or add entries:
{String, Pair}. The summary pane looks
for the value's friendly name.
{String, String}. The summary pane
puts the summary entry into the map as is (it assumes that
the final value is put in the map).
{String, List}. The summary pane puts in an
entry with one caption and multiple values (it assumes that the
final values are in the map).
//override the summary value, keeping the entry value as a pair.
if (summaries.containsKey("MyAttributeId")) {
Pair valPair = (Pair)summaries.get("MyAttributeId");
String caption = (String)valPair.getFirst();
summaries.put("MyAttributeId", new Pair(caption, "MySummaryValue");
}
IBasicObjectCreationService.setSummaryCaption(java.lang.String, java.lang.String, com.sapportals.admin.wizardframework.api.IWizardContext)
summaries - summaries mapcontext - the current wizard contextIBasicObjectCreationService.setComponentAsAttribute(com.sapportals.admin.wizardframework.components.AbstractInputComponent, java.lang.String, boolean, com.sapportals.admin.wizardframework.api.IWizardContext)
public void finalizeDescriptor(Map attributes,
Object descriptor,
IWizardContext context)
IBasicObjectCreationService.setComponentAsAttribute(com.sapportals.admin.wizardframework.components.AbstractInputComponent, java.lang.String, boolean, com.sapportals.admin.wizardframework.api.IWizardContext)
It can be overriden in order to add or modify attributes.
super implementation reads everything from the map.
The descriptor can be cast to the semantic descriptor to perform
additional actions.super
implementation.super.finalizeDescriptor to
automatically copy attributes from the map into the descriptor, and to
handle common attributes (for example, title, description, locale)
registered by the info pane.
INewObjectDescriptor, therefore it does not support other
types of descriptors.
INewObjectDescriptor
type, you need to handle this attribute.
descriptor.putAttribute(IAttrPcmGeneral.ATTRIBUTE_IS_TEMPLATE, "false");
descriptor - an object descriptorattributes - a map containing attributescontext - the current wizard context
DescriptorNotCreatedException - if the descriptor is not an
instance of
INewObjectDescriptorpublic void finalizeObject(IWizardContext context)
context - the current wizard context
public void finalizeObject(String newObjectId,
IWizardContext context)
newObjectId - the id of the new object that was created. It should be used for loading the object.context - wizard context.protected void addPanes(IConfigurableWizard wizard)
addUserPanes(com.sapportals.admin.wizardframework.api.IConfigurableWizard)
implementation in the wizard. Another option is to completely
override this method for all the panes.
addUserPanes(com.sapportals.admin.wizardframework.api.IConfigurableWizard) implementation,
overriding the previous instance of the pane.
wizard - the running wizardprotected void addUserPanes(IConfigurableWizard wizard)
wizard - the running wizardprotected void addTransitions(IConfigurableWizard wizard)
addUserTransitions(com.sapportals.admin.wizardframework.api.IConfigurableWizard) implementation, or by
overriding this method with a complete set of transitions.
wizard - the running wizardprotected void addUserTransitions(IConfigurableWizard wizard)
wizard - the running wizardprotected void addDependencies(IConfigurableWizard wizard)
wizard - the running wizardpublic static PPLogger getLogger()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/admin/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP07) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||