public class SolrIndexerHotUpdateWizard extends GeneratedSolrIndexerHotUpdateWizard
LocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionCOMPOSEDTYPEATTRIBUTE, INDEXTYPE, ITEMSTOINDEX, ITEMSTOINDEXDESCRIPTION, POSSIBLEINDEXTYPES, SOLRFACETSEARCHCONFIG, UPDATEOPERATIONBACK_BUTTON, BACK_BUTTON_NAME, CANCEL_BUTTON, CANCEL_BUTTON_NAME, CLOSE_BUTTON_NAME, DONE_BUTTON_NAME, NEXT_BUTTON, NEXT_BUTTON_NAME, START_BUTTON, START_BUTTON_NAMELANGUAGE_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 |
|---|
SolrIndexerHotUpdateWizard() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUpPossibleIndexValues() |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Returns a new wizard instance.
|
protected Collection<ComposedIndexedType> |
getComposedIndexTypes(Collection<IndexedType> indexedTypes) |
ComposedType |
getComposedTypeAttribute(SessionContext ctx)
Generated method - Getter of the
SolrIndexerHotUpdateWizard.composedTypeAttribute attribute. |
protected ComposedType |
getComposedTypeByCode(String code) |
protected FacetSearchConfigService |
getConfigService() |
ComposedIndexedType |
getIndexType(SessionContext ctx)
Generated method - Getter of the
SolrIndexerHotUpdateWizard.indexType attribute. |
Collection<Item> |
getItemsToIndex(SessionContext ctx)
Generated method - Getter of the
SolrIndexerHotUpdateWizard.itemsToIndex attribute. |
String |
getItemsToIndexDescription(SessionContext ctx)
Generated method - Getter of the
SolrIndexerHotUpdateWizard.itemsToIndexDescription attribute. |
protected SolrfacetsearchManager |
getManager() |
Collection<ComposedIndexedType> |
getPossibleIndexTypes(SessionContext ctx)
Generated method - Getter of the
SolrIndexerHotUpdateWizard.possibleIndexTypes attribute. |
SolrFacetSearchConfig |
getSolrFacetSearchConfig(SessionContext ctx)
Generated method - Getter of the
SolrIndexerHotUpdateWizard.solrFacetSearchConfig attribute. |
protected SolrIndexerHotUpdateCronJob |
getSolrIndexerHotUpdateJob() |
protected TypeManager |
getTypeManager() |
void |
initialize(WizardEditorContext ctx)
Called to initialize the wizard immediately after the item editor creates the WizardEditorContext.
|
protected void |
initializeConfigData(WizardEditorContext ctx) |
protected void |
initializeIndexTypeData(WizardEditorContext ctx) |
Boolean |
isUpdateOperation(SessionContext ctx)
Generated method - Getter of the
SolrIndexerHotUpdateWizard.updateOperation attribute. |
void |
pollStatus(WizardEditorContext ctx)
Called during processing mode every time the wizards refreshes its status information.
|
void |
setComposedTypeAttribute(SessionContext ctx,
ComposedType value)
Generated method - Setter of the
SolrIndexerHotUpdateWizard.composedTypeAttribute attribute. |
void |
setIndexType(SessionContext ctx,
ComposedIndexedType value)
Generated method - Setter of the
SolrIndexerHotUpdateWizard.indexType attribute. |
void |
setItemsToIndex(SessionContext ctx,
Collection<Item> items)
Generated method - Setter of the
SolrIndexerHotUpdateWizard.itemsToIndex attribute. |
void |
setItemsToIndexDescription(SessionContext ctx,
String value)
Generated method - Setter of the
SolrIndexerHotUpdateWizard.itemsToIndexDescription attribute. |
void |
setPossibleIndexTypes(SessionContext ctx,
Collection<ComposedIndexedType> value)
Generated method - Setter of the
SolrIndexerHotUpdateWizard.possibleIndexTypes attribute. |
void |
setSolrFacetSearchConfig(SessionContext ctx,
SolrFacetSearchConfig value)
Generated method - Setter of the
SolrIndexerHotUpdateWizard.solrFacetSearchConfig attribute. |
void |
setUpdateOperation(SessionContext ctx,
Boolean value)
Generated method - Setter of the
SolrIndexerHotUpdateWizard.updateOperation attribute. |
void |
start(WizardEditorContext ctx)
Called if the user requests the wizard to start its actions.
|
void |
tabChanges(WizardEditorContext ctx,
String fromTabName,
String toTabName)
Called before the current tab is changed.
|
void |
validate(WizardEditorContext ctx,
String fromTab,
String toTab)
Called before
tab is changed
start event delivered
or if validation was explicitely requested.
|
getComposedTypeAttribute, getIndexType, getItemsToIndex, getItemsToIndexDescription, getPossibleIndexTypes, getSolrFacetSearchConfig, isUpdateOperation, isUpdateOperationAsPrimitive, isUpdateOperationAsPrimitive, setComposedTypeAttribute, setIndexType, setItemsToIndex, setItemsToIndexDescription, setPossibleIndexTypes, setSolrFacetSearchConfig, setUpdateOperation, setUpdateOperation, setUpdateOperationabortProcessing, appendLocalizedTemplateString, close, doGetAttribute, doSetAttribute, endProcessing, getLocalizedTemplateString, isCloseAllowed, provideComposedType, provideCreationTime, provideModificationTime, providePK, removeJaloOnly, setClosedAllowed, startProcessing, validategetAllLocalizedProperties, 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, setTenantprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
WizardBusinessItemcreateItem in class WizardBusinessItemctx - 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 void initialize(WizardEditorContext ctx)
WizardBusinessIteminitialize in class WizardBusinessItemctx - the wizard editor contextpublic void start(WizardEditorContext ctx) throws VetoException
WizardBusinessItemstart in class WizardBusinessItemctx - the wizard editor contextVetoException - to signal that the wizard cannot be started right nowpublic void pollStatus(WizardEditorContext ctx)
WizardBusinessItemWizardEditorContext.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.
pollStatus in class WizardBusinessItemctx - the wizard editor contextpublic void tabChanges(WizardEditorContext ctx, String fromTabName, String toTabName) throws VetoException
WizardBusinessItemVetoException must be raised. In this case a error popup is shown.tabChanges in class WizardBusinessItemctx - the wizard editor contextfromTabName - the current tab nametoTabName - the new tab nameVetoException - to signal the tab cannot be changed right nowpublic void validate(WizardEditorContext ctx, String fromTab, String toTab) throws ValidationException
WizardBusinessItem
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 !
validate in class WizardBusinessItemctx - the wizard editor contextfromTab - the tab which is being lefttoTab - the new target tabValidationExceptionpublic Collection<Item> getItemsToIndex(SessionContext ctx)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.itemsToIndex attribute.getItemsToIndex in class GeneratedSolrIndexerHotUpdateWizardpublic void setItemsToIndex(SessionContext ctx, Collection<Item> items)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.itemsToIndex attribute.setItemsToIndex in class GeneratedSolrIndexerHotUpdateWizarditems - the itemsToIndexpublic Collection<ComposedIndexedType> getPossibleIndexTypes(SessionContext ctx)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.possibleIndexTypes attribute.getPossibleIndexTypes in class GeneratedSolrIndexerHotUpdateWizardpublic void setPossibleIndexTypes(SessionContext ctx, Collection<ComposedIndexedType> value)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.possibleIndexTypes attribute.setPossibleIndexTypes in class GeneratedSolrIndexerHotUpdateWizardvalue - the possibleIndexTypespublic SolrFacetSearchConfig getSolrFacetSearchConfig(SessionContext ctx)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.solrFacetSearchConfig attribute.getSolrFacetSearchConfig in class GeneratedSolrIndexerHotUpdateWizardpublic ComposedIndexedType getIndexType(SessionContext ctx)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.indexType attribute.getIndexType in class GeneratedSolrIndexerHotUpdateWizardpublic void setSolrFacetSearchConfig(SessionContext ctx, SolrFacetSearchConfig value)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.solrFacetSearchConfig attribute.setSolrFacetSearchConfig in class GeneratedSolrIndexerHotUpdateWizardvalue - the solrFacetSearchConfigpublic void setIndexType(SessionContext ctx, ComposedIndexedType value)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.indexType attribute.setIndexType in class GeneratedSolrIndexerHotUpdateWizardvalue - the indexTypepublic ComposedType getComposedTypeAttribute(SessionContext ctx)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.composedTypeAttribute attribute.getComposedTypeAttribute in class GeneratedSolrIndexerHotUpdateWizardpublic String getItemsToIndexDescription(SessionContext ctx)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.itemsToIndexDescription attribute.getItemsToIndexDescription in class GeneratedSolrIndexerHotUpdateWizardpublic void setComposedTypeAttribute(SessionContext ctx, ComposedType value)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.composedTypeAttribute attribute.setComposedTypeAttribute in class GeneratedSolrIndexerHotUpdateWizardvalue - the composedTypeAttributepublic void setItemsToIndexDescription(SessionContext ctx, String value)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.itemsToIndexDescription attribute.setItemsToIndexDescription in class GeneratedSolrIndexerHotUpdateWizardvalue - the itemsToIndexDescriptionprotected void initializeConfigData(WizardEditorContext ctx) throws ValidationException
ValidationExceptionprotected void initializeIndexTypeData(WizardEditorContext ctx) throws ValidationException
ValidationExceptionprotected void cleanUpPossibleIndexValues()
throws VetoException
VetoExceptionprotected Collection<ComposedIndexedType> getComposedIndexTypes(Collection<IndexedType> indexedTypes)
protected SolrfacetsearchManager getManager()
protected FacetSearchConfigService getConfigService()
protected TypeManager getTypeManager()
protected ComposedType getComposedTypeByCode(String code)
protected SolrIndexerHotUpdateCronJob getSolrIndexerHotUpdateJob()
public Boolean isUpdateOperation(SessionContext ctx)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.updateOperation attribute.isUpdateOperation in class GeneratedSolrIndexerHotUpdateWizardpublic void setUpdateOperation(SessionContext ctx, Boolean value)
GeneratedSolrIndexerHotUpdateWizardSolrIndexerHotUpdateWizard.updateOperation attribute.setUpdateOperation in class GeneratedSolrIndexerHotUpdateWizardvalue - the updateOperationCopyright © 2017 SAP SE. All Rights Reserved.