public abstract class WizardBusinessItem extends GeneratedWizardBusinessItem implements JaloOnlyItem
LocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
BACK_BUTTON |
static String |
BACK_BUTTON_NAME |
static String |
CANCEL_BUTTON |
static String |
CANCEL_BUTTON_NAME |
static String |
CLOSE_BUTTON_NAME |
static String |
DONE_BUTTON_NAME |
static String |
NEXT_BUTTON |
static String |
NEXT_BUTTON_NAME |
static String |
START_BUTTON |
static String |
START_BUTTON_NAME |
LANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
WizardBusinessItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortProcessing(WizardEditorContext ctx)
Called if the current wizard process should be aborted.
Note: The default implementation will always throw a VetoException to signal that an abortion of the wizard process is not possible. |
protected void |
appendLocalizedTemplateString(StringBuilder stringBuilder,
String key,
Map values)
Retrieves a localized string which may contain placeholders like
{key} which are replaced by the
values provided as map. |
void |
close(WizardEditorContext ctx)
Called if the wizard window is going to be closed.
|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Returns a new wizard instance.
|
Object |
doGetAttribute(SessionContext ctx,
String attrQualifier)
Implements in-memory attributes backed by a
Map. |
void |
doSetAttribute(SessionContext ctx,
String attrQualifier,
Object value)
Implements in-memory attributes backed by a
Map. |
protected void |
endProcessing(WizardEditorContext ctx)
Convenience method to end the wizard's processing mode.
|
protected String |
getLocalizedTemplateString(String key,
Map values)
Retrieves a localized string which may contain placeholders like
{key} which are replaced by the
values provided as map. |
void |
initialize(WizardEditorContext ctx)
Called to initialize the wizard immediately after the item editor creates the WizardEditorContext.
|
boolean |
isCloseAllowed()
This method returns the value if a wizard can be closed per X in the upper right of the wizardwindow.
|
void |
pollStatus(WizardEditorContext ctx)
Called during processing mode every time the wizards refreshes its status information.
|
ComposedType |
provideComposedType()
Should provide the composed type of this item.
|
Date |
provideCreationTime()
Should provide a fixed creation time for this item.
|
Date |
provideModificationTime()
Should provide a modification time for this item.
|
PK |
providePK()
Should provide a fixed PK for this item.
|
void |
removeJaloOnly()
Called when a jalo only item is removed.
|
void |
setClosedAllowed(boolean value)
This method changes the closing behavior of a wizard windows.
Set it to true if the wizardwindow can be closed by the upper right X.Set it to false if the wizardwindow can not be closed by the upper right X.As default the value is set to true. |
void |
start(WizardEditorContext ctx)
Called if the user requests the wizard to start its actions.
|
protected void |
startProcessing(WizardEditorContext ctx)
Convenience method to start the wizard's processing mode.
|
void |
tabChanges(WizardEditorContext ctx,
String fromTabName,
String toTabName)
Called before the current tab is changed.
|
void |
validate(WizardEditorContext ctx)
Deprecated.
override
validate(WizardEditorContext, String, String) instead |
void |
validate(WizardEditorContext ctx,
String fromTab,
String toTab)
Called before
tab is changed
start event delivered
or if validation was explicitely requested.
|
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getDefaultAttributeModes, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getNonInitialAttributes, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacegetImplementation, setTenantpublic static final String CANCEL_BUTTON
public static final String NEXT_BUTTON
public static final String BACK_BUTTON
public static final String START_BUTTON
public static final String CANCEL_BUTTON_NAME
public static final String NEXT_BUTTON_NAME
public static final String BACK_BUTTON_NAME
public static final String START_BUTTON_NAME
public static final String DONE_BUTTON_NAME
public static final String CLOSE_BUTTON_NAME
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
createItem in class Itemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic final ComposedType provideComposedType()
JaloOnlyItemprovideComposedType in interface JaloOnlyItempublic final Date provideCreationTime()
JaloOnlyItemprovideCreationTime in interface JaloOnlyItempublic final Date provideModificationTime()
JaloOnlyItemprovideModificationTime in interface JaloOnlyItempublic final PK providePK()
JaloOnlyItemprovidePK in interface JaloOnlyItempublic void removeJaloOnly()
throws ConsistencyCheckException
JaloOnlyItemremoveJaloOnly in interface JaloOnlyItemConsistencyCheckException - to signal that this item removal failedpublic Object doGetAttribute(SessionContext ctx, String attrQualifier) throws JaloInvalidParameterException, JaloSecurityException
Map.doGetAttribute in interface JaloOnlyItemctx - the session contextattrQualifier - the qualifier of the requested attributeJaloInvalidParameterException - in case no value could be read for this attributeJaloSecurityExceptionpublic void doSetAttribute(SessionContext ctx, String attrQualifier, Object value) throws JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
Map.doSetAttribute in interface JaloOnlyItemctx - the session contextattrQualifier - the qualifier of the requested attributevalue - the new attribute valueJaloInvalidParameterException - in case the value could not be written for this attributeJaloSecurityException - in case the session user is not allowed to write this attributeJaloBusinessException - in case any other error occuredpublic void initialize(WizardEditorContext ctx)
ctx - the wizard editor context@Deprecated public void validate(WizardEditorContext ctx) throws ValidationException
validate(WizardEditorContext, String, String) instead
To check current input values use ItemEditorContext.getCurrentValue(String).
To signal an error a ValidationException must be raised. The actual event (tab change or start of this
wizard) is not executed in this case but a error popup is shown.
Additionally erroneous fields may be marked via ItemEditorContext.showError(String, String).
ctx - the wizard editor contextValidationExceptionpublic void validate(WizardEditorContext ctx, String fromTab, String toTab) throws ValidationException
To check current input values use ItemEditorContext.getCurrentValue(String).
To signal an error a ValidationException must be raised. The actual event (tab change or start of this
wizard) is not executed in this case but a error popup is shown.
Additionally erroneous fields may be marked via ItemEditorContext.showError(String, String).
Make sure that always super.validate is called !
ctx - the wizard editor contextfromTab - the tab which is being lefttoTab - the new target tabValidationExceptionpublic void tabChanges(WizardEditorContext ctx, String fromTabName, String toTabName) throws VetoException
VetoException must be raised. In this case a error popup is shown.ctx - the wizard editor contextfromTabName - the current tab nametoTabName - the new tab nameVetoException - to signal the tab cannot be changed right nowpublic void start(WizardEditorContext ctx) throws VetoException
ctx - the wizard editor contextVetoException - to signal that the wizard cannot be started right nowpublic void close(WizardEditorContext ctx) throws VetoException
ctx - the wizard editor contextVetoException - to signal that the window cannot be closed right now.public void abortProcessing(WizardEditorContext ctx) throws VetoException
abortProcessing() method to deal with
the abortion. If your wizard process cannot or should not be aborted, just don't offer the 'cancel' option while
processing (this is the default behaviour when using startProcessing(WizardEditorContext) and
endProcessing(WizardEditorContext)).!ctx - the wizard editor contextVetoException - to signal that the process cannot be aborted right now.protected void startProcessing(WizardEditorContext ctx)
true and the wizard buttons will all be hidden. To reverse this,
call endProcessing(WizardEditorContext).ctx - the wizard editor contextprotected void endProcessing(WizardEditorContext ctx)
false and the wizard buttons will all be shown again.ctx - the wizard editor contextstartProcessing(WizardEditorContext)public void pollStatus(WizardEditorContext ctx)
WizardEditorContext.setStatus(String, int, boolean) to update the displayed status.
The method is called before the wizard is rendered. So changing the procesing mode here is allowed.
ctx - the wizard editor contextprotected String getLocalizedTemplateString(String key, Map values) throws JaloInvalidParameterException
{key} which are replaced by the
values provided as map.key - the key of the localized template stringvalues - the placeholder values to fill inJaloInvalidParameterException - if a placeholder value is missingprotected void appendLocalizedTemplateString(StringBuilder stringBuilder, String key, Map values) throws JaloInvalidParameterException
{key} which are replaced by the
values provided as map. The translated string is appended to the given string buffer.stringBuilder - the string buffer to append tokey - the key of the localized template stringvalues - the placeholder values to fill inJaloInvalidParameterException - if a placeholder value is missingpublic boolean isCloseAllowed()
true so the window can be closed with the upper right X.public void setClosedAllowed(boolean value)
true if the wizardwindow can be closed by the upper right X.false if the wizardwindow can not be closed by the upper right X.value - a boolean value which allows to close the wizzard window with the upper right X.Copyright © 2017 SAP SE. All Rights Reserved.