|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IBasicObjectCreationService provides utilities methods, and handles the creation of the new
object on top of the new PCM layer.
| Field Summary | |
static java.lang.String |
KEY
Service key |
| Method Summary | |
java.util.Map |
getAttributes2SummariesMap(IWizardContext context)
Returns a map that holds the following entries: Key = attribute id (String), value = Pair{summary caption, value}. |
java.lang.String |
getAttributeValueFromTarget(java.lang.String attrId,
IWizardContext context)
Gets an attribute value from the target object (template or portal component), in order to retain the concept of inheritance (e.g description, locale, etc). |
java.lang.String |
getBundleString(java.lang.String key,
IWizardContext context)
Gets a string from the resource bundle. |
java.lang.String |
getCreateModeParam(IWizardContext context)
Gets the object's OCLASS (oClass parameter from Portal Content Catalog), implying whether it is based on a template or a par. |
java.lang.String |
getDefaultHandlerKey(IWizardContext context)
|
java.lang.String |
getEditorIdParam(IWizardContext context)
Gets the editor id param(editorID parameter from Portal Content Catalog). |
java.lang.String |
getMetaAttributeValueFromTarget(java.lang.String attrId,
java.lang.String metaAttrId,
IWizardContext context)
Gets a meta-attribute value from the target object (template or portal component), in order to retain the concept of inheritance. |
java.lang.String |
getObjectTypeParam(IWizardContext context)
Gets the new object's type (ComponentType or com.sap.portal.ComponentType parameter from Portal Content Catalog). |
com.sapportals.common.PPLogger |
getPPLogger(IWizardContext context)
Deprecated. |
java.lang.String |
getSaveLocationParam(IWizardContext context)
Gets the object's save location (where parameter from Portal Content Catalog). |
java.lang.String |
getTargetIdParam(IWizardContext context)
Gets the target object id (what parameter from Portal Content Catalog), implying the template/par id. |
boolean |
isInHouseMode()
|
void |
setComponentAsAttribute(AbstractInputComponent component,
java.lang.String attrId,
boolean addAsSummary,
IWizardContext context)
Set the specified component's value to be an attribute for the object. |
void |
setPPLogger(java.lang.String subCategoryName,
java.lang.String locationName,
IWizardContext context)
Deprecated. |
void |
setSummaryCaption(java.lang.String attrId,
java.lang.String caption,
IWizardContext context)
Sets the summary caption resource bundle key. |
| Field Detail |
public static final java.lang.String KEY
| Method Detail |
public java.lang.String getBundleString(java.lang.String key,
IWizardContext context)
Example:
Suppose the implemented wizard is designed to create an iview.It defines its own resource
bundle with various strings specific to the wizard implementation. In addition, it
uses the toolkit's common panes.
There are 3 scenarios when asking for strings:
key - the requested key.context - wizard context.
public java.lang.String getAttributeValueFromTarget(java.lang.String attrId,
IWizardContext context)
attrId - the requested attribute id.context - wizard context.IAttributeSet.getAttribute(String)
public java.lang.String getMetaAttributeValueFromTarget(java.lang.String attrId,
java.lang.String metaAttrId,
IWizardContext context)
attrId - the requested attribute id.metaAttrId - the requested meta-attribute id.context - wizard contextIAttributeSet.getMetaAttribute(String, String)
public void setComponentAsAttribute(AbstractInputComponent component,
java.lang.String attrId,
boolean addAsSummary,
IWizardContext context)
component - the UI component that the attribute value is taken from.attrId - the attribute id. If it's a meta-attribute, like the PCM, the attribute id
and the meta-attribute id should be separated by a '-' character. For cases of text attributes,
the toolkit would identify it by asking the attribute type from the PCM.addAsSummary - if true, a summary item is added as follows: the summary name would be the caption
of the component, and the value would be the component's value. It can be modified by using
setSummaryCaption(String, String, IWizardContext).context - wizard context.
public void setSummaryCaption(java.lang.String attrId,
java.lang.String caption,
IWizardContext context)
attrId - the attribute id that was set along with the component.caption - the caption to be displayed as summary name.context - wizard context.setComponentAsAttribute(com.sapportals.admin.wizardframework.components.AbstractInputComponent, java.lang.String, boolean, com.sapportals.admin.wizardframework.api.IWizardContext)public java.util.Map getAttributes2SummariesMap(IWizardContext context)
setComponentAsAttribute(com.sapportals.admin.wizardframework.components.AbstractInputComponent, java.lang.String, boolean, com.sapportals.admin.wizardframework.api.IWizardContext)context - wizard context.public java.lang.String getDefaultHandlerKey(IWizardContext context)
public java.lang.String getSaveLocationParam(IWizardContext context)
context - wizard context.public java.lang.String getTargetIdParam(IWizardContext context)
context - wizard context.public java.lang.String getObjectTypeParam(IWizardContext context)
context - wizard context.public java.lang.String getCreateModeParam(IWizardContext context)
context - wizard context.public java.lang.String getEditorIdParam(IWizardContext context)
context - wizard context.public boolean isInHouseMode()
public void setPPLogger(java.lang.String subCategoryName,
java.lang.String locationName,
IWizardContext context)
subCategoryName - locationName - context - public com.sapportals.common.PPLogger getPPLogger(IWizardContext context)
context - wizard context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||