Class SaveAsTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AbstractEditorTransform
-
- com.microstrategy.web.app.transforms.AbstractObjectExplorerTransform
-
- com.microstrategy.web.app.transforms.AbstractObjectExplorerTreeTransform
-
- com.microstrategy.web.app.transforms.FolderObjectExplorerTransform
-
- com.microstrategy.web.app.transforms.SaveAsTransform
-
- All Implemented Interfaces:
AppTransform
,LayoutTransform
,Transform
- Direct Known Subclasses:
SaveAsReportTransform
public abstract class SaveAsTransform extends FolderObjectExplorerTransform
This transform renders the save as dialog to the user.- Since:
- MicroStrategy Web 8.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description FormalParameter
confirmOWHelpTopic
Indicates the help topic for inner confirm overwrite dialog.FormalParameter
createFolderJS
Formal parameter: The JavaScript code to execute when clicking on the create Folder ButtonFormalParameter
folderBrowserStyle
Indicates the style to use when rendering the contents of the folder to save the object to.static java.lang.String
FP_CREATE_FOLDER_JS
Name for the formal parameter:createFolderJS
static java.lang.String
FP_FOLDER_BROWSER_STYLE
Constant for the name of thefolderBrowserStyle
Formal Parameter.static java.lang.String
FP_SAVE_BUTTON_LABEL_ID
Constant for the name of thesaveButtonLabelID
Formal Parameter.static java.lang.String
FP_SAVE_LABEL_ID
Constant for the name of thesaveLabelID
Formal Parameter.static java.lang.String
FP_SHOW_CREATE_FOLDER_BUTTON
Constant for the name of theshowCreateFolderButton
Formal Parameter.static java.lang.String
FP_SHOW_CREATE_FOLDER_DIAOLOG
Constant for the name of theshowCreateFolderDialog
Formal Parameter.FormalParameter
newFloderHelpTopic
Indicates the help topic for inner new folder dialog.FormalParameter
saveButtonLabelID
Indicates the descriptor Id for the save button.FormalParameter
saveLabelID
Indicates the descriptor Id for the save as label.FormalParameter
showCreateFolderButton
Indicates if the create folder toggle button is to be shown or not.FormalParameter
showCreateFolderDialog
Indicates if the create new folder dialog is to be shown or not.-
Fields inherited from class com.microstrategy.web.app.transforms.FolderObjectExplorerTransform
promptString, promptStringID
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractObjectExplorerTreeTransform
INCREMENTAL_FETCH_NEXT, INCREMENTAL_FETCH_PREVIOUS, populateChildren, tree
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractObjectExplorerTransform
_imgCheck, _oeBean, checkImage, displayFormatPickerName, FP_CHECK_IMAGE, FP_DISPLAY_FORMAT_PICKER_NAME, FP_INCREMENTAL_FETCH_NAV_TYPE, FP_INCREMENTAL_FETCH_PAGE_BLOCK, FP_SHOW_CURRENT_IN_ANCESTORS_LIST, ID_POSTFIX, incrementalFetchNavigationType, incrementalFetchPageBlock, showCurrentInAncestorsList
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractEditorTransform
_helpTopic, _helpType, applyJS, applyLabel, applyLabelID, canAutoSize, cancelJS, cancelLabel, cancelLabelID, closeEvent, closeImage, closeJS, closeLabel, closeLabelID, dhtmlClose, disableOKButton, editorContentsStyle, editorElements, editorLayoutFile, editorSubType, FP_APPLY_JS, FP_APPLY_LABEL, FP_APPLY_LABEL_ID, FP_CAN_AUTO_SIZE, FP_CANCEL_JS, FP_CANCEL_LABEL, FP_CANCEL_LABEL_ID, FP_CLOSE_EVENT, FP_CLOSE_IMAGE, FP_CLOSE_JS, FP_CLOSE_LABEL, FP_CLOSE_LABEL_ID, FP_DHTML_CLOSE, FP_DISABLE_OK_BUTTON, FP_EDITOR_CONTENTS_STYLE, FP_EDITOR_ELEMENTS, FP_EDITOR_LAYOUT_FILE, FP_EDITOR_SUBTYPE, FP_HELP_PAGE, FP_HELP_TOPIC, FP_HELP_TYPE, FP_INCLUDE_DYNAMIC_SCRIPT, FP_NAVIGATE_ON_SUBMIT, FP_OK_JS, FP_OK_LABEL, FP_OK_LABEL_ID, FP_RENDER_FORM, FP_TITLE_LABEL, FP_TITLE_LABEL_ID, FP_USE_JS_IN_BONE, helpPage, helpTopic, helpType, includeDynamicScript, navigateOnSubmit, okJS, okLabel, okLabelID, renderForm, titleLabel, titleLabelID
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
_bean, _componentBlock, _cssPrefix, _imgBlank, _imgWait, _selfOutput, _subOutput, appliesTo, CLASS_INPUT, CLASS_MESSAGE, contextMenus, cssFile, cssPrefix, debugErrorFlags, debugFlags, dragMode, extraInput, extraUrl, FP_APPLIES_TO, FP_CONTEXT_MENUS, FP_CSS_ERROR_MESSAGE, FP_CSS_ERROR_TITLE, FP_CSS_FILE, FP_CSS_PREFIX, FP_DEBUG_ERROR_FLAGS, FP_DEBUG_FLAGS, FP_DRAG_MODE, FP_EXTRA_INPUT, FP_EXTRA_URL, FP_HEIGHT, FP_IFRAME_ENABLED, FP_IMG_WAIT, FP_INITIAL_INDENT, FP_ORIENTATION, FP_ORIENTATIONS_ALLOWED, FP_PARTIAL_IFRAME_UPDATE, FP_PROCESSING_BUTTONS_FLAGS, FP_PROCESSING_INFO_FLAGS, FP_RESIZE_LEVEL, FP_SCRIPT_CLASS, FP_TYPE, FP_USE_DHTML, FP_WIDTH, globalCssErrorMessage, globalCssErrorTitle, height, iframeEnabled, imgWait, indent, initialIndent, isDHTML, orientation, orientationsAllowed, partialIframeUpdate, PROCESSING_BUTTONS_ALL, PROCESSING_BUTTONS_CANCEL, PROCESSING_BUTTONS_HISTORY_LIST, PROCESSING_BUTTONS_REFRESH, PROCESSING_BUTTONS_VIEW_DETAILS, PROCESSING_INFO_ALL, PROCESSING_INFO_DESCRIPTION, PROCESSING_INFO_LAST_UPDATE, PROCESSING_INFO_NAME, PROCESSING_INFO_NONE, PROCESSING_INFO_STATUS, processingButtonsFlags, processingInfoFlags, RESIZE_ALL, RESIZE_HORIZONTAL, RESIZE_NONE, RESIZE_VERTICAL, resizeLevel, scriptClass, scriptEndTagEncoder, type, useDHTML, width
-
-
Constructor Summary
Constructors Constructor Description SaveAsTransform()
Default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.util.ArrayList
generateAncestorsOptionTags()
Generates the series of option tags to add to the combo box for showing the user the possible places where the new object can be saved, based on privileges, access rights and current location of the object.protected AnchorTag
generateAnchor(WebEvent event)
Overwrites the parent method by setting default attribute informationprotected Editor
generateSimpleEditor()
Generic method that creates an Editor instance and initializes it with basic settings.protected SelectTag
getAncestorsSelectTag()
Returns a >select<Tag
instance object containing the list\ of the object's ancestorsprotected WebEvent
getBrowseParentEvent()
Obtain an instance of theWebEvent
to use for browsing to the folder where the object has just been saved.protected WebEvent
getCancelEvent()
Obtain an instance of theWebEvent
to use for cancelling the Save As requestprotected WebEvent
getCancelOverwriteEvent()
Obtain an instance of theWebEvent
to use for cancelling the overwritting of the new objectprotected WebEvent
getComboBrowseEvent()
WebEvent
to associate to the folder browse navigation available with the combo box provided with ancestor and fixed folder information.abstract java.lang.String
getConfirmationTitle()
Returns the title for the save as confirmation dialogprotected WebEvent
getCreateFolderEvent()
Obtain an instance of theWebEvent
to use for creating a new folderjava.lang.String
getDescription()
Returns the textual description of the transformprotected WebEvent
getHelpEvent()
Deprecated.protected java.lang.String
getObjectDescription()
Obtain the object description to use for the new object to createprotected java.lang.String
getObjectName()
Obtain the object name to use for the new object to createjava.lang.String
getOverwriteTitle()
Return the title for the Overwrite dialogprotected WebEvent
getRepromptEvent()
protected WebEvent
getReturnToEvent()
Obtain an instance of theWebEvent
to use for returning to the original object that was savedSaveAsBean
getSaveAsBean()
Get theSaveAsBean
instance being transformedprotected abstract WebEvent
getSaveEvent()
Obtain an instance of theWebEvent
to use for saving the new objectjava.lang.Class
getSupportedBeanType()
Returns the supported bean type.protected boolean
hasReadBrowseAccess(FolderBean fb, int sysFolder)
Checks to see if the given sysFolder has browse and read access.protected void
initEditor(Editor editor)
Initializes the editor with the global settings.void
initializeTransform(Transformable data)
Initializes properties of this transform required for the proper generation of the HTML to present to the user.boolean
isEmptyList()
Returnstrue
if the list of elements from this folder available for display (ObjectExplorerBean.getContents()
) is empty or not.void
renderAdvancedOptionsDialog(MarkupOutput out)
Generates the Advanced Options dialog in the Save As pageabstract void
renderConfirmationButtonBar(MarkupOutput out)
Renders the confirmation buttons to the MarkupOutput instancevoid
renderConfirmationContents(MarkupOutput out)
This method renders the confimation page after the save as action.void
renderConfirmationSuccessfulMessage(MarkupOutput out)
Renders the confirmation title to the MarkupOutput instancevoid
renderConfirmationTitle(MarkupOutput out)
Renders the confirmation title to the MarkupOutput instancevoid
renderCreateFolderButton(MarkupOutput out)
Renders the button that opens the create folder dialogvoid
renderEditorContents(MarkupOutput out)
Renders the contents of the current tab displayed on the Save As dialog.void
renderFolderBrowsingOptions(MarkupOutput out)
Generates the HTML for showing the user the possible options for navigating the hierarchy of folder ancestors of the current folder being viewed, or a set of fixed folders where the new object can be saved.void
renderFolderCreateButtonBar(MarkupOutput out)
Renders the HTML for displaying the button bar contents for the Folder Create dialog.void
renderFolderCreateDescription(MarkupOutput out)
Renders the HTML for displaying a text field where the user can type in the description of the new folder to create.void
renderFolderCreateName(MarkupOutput out)
Renders the HTML for displaying a text field where the user can type in the name of the new folder to create.void
renderFolderCreateOptionsDialog(MarkupOutput out)
Generates the dialog for allowing the user to create a new folder with its description.protected void
renderJavascript(MarkupOutput out)
This method should be used by the Editor transforms to generate any javascript necessary.abstract void
renderOptions(MarkupOutput out)
Renders the prompt and/or linked filter template options as the case may be.abstract void
renderOverwriteButtonBar(MarkupOutput out)
Renders the button bar for the overwrite dialog when the object that the user is trying to save already exists.void
renderOverwriteContents(MarkupOutput out)
Render the content to facilitate overwriting of a report/filter/template.abstract void
renderOverwriteMessage(MarkupOutput out)
The message to render on the overwrite dialog when the object that the user is trying to save already exists.void
renderOverwriteTitle(MarkupOutput out)
Renders the title for the Overwrite dialog to the MarkupOutput instancevoid
renderSaveAsContents(MarkupOutput out)
Generates the Save As dialog contents, including the HTML information for presenting the user the Save As options for the object and the dialog for creating new folders if required.void
renderSaveAsDescription(MarkupOutput out)
Renders the HTML for displaying a text field where the user can type in the description of the new object to create.void
renderSaveAsFolderContents(MarkupOutput out)
This method renders the contents of the current folder for the Save As dialog.void
renderSaveAsJavaScript(MarkupOutput out)
Renders any JavaScript content required at the end of the Save As dialog.void
renderSaveAsName(MarkupOutput out)
Renders the HTML for displaying a text field where the user can type in the name of the new object to create.void
transformForRequestSuccessful(MarkupOutput out)
Transform when the status is "Successful".void
transformForRequestWaitingForUserInput(MarkupOutput out)
Generates the graphical output for theSaveAsBean
instance being transformed.protected void
updateAncestorFolderArray(java.util.ArrayList tags, java.lang.String sysFolderName, int sysFolder)
Create an option tag entry on the ancestor folder array for the given system folder.-
Methods inherited from class com.microstrategy.web.app.transforms.FolderObjectExplorerTransform
addLinksAsOption, constructEntireTree, generateIncrementalFetchNode, generateIncrementalFetchNode, generateSearchNode, getCssName, getFolderRoot, getLinkAttributes, getLinkCssName, getList, getReportViewMode, getTooltipInfo, getTooltipTitle, getUnitAttributes, getUnitName, getVisualizationMode, getVisualizationMode, isFolder, isTreeRoot, isVisualizationObject, isVisualizationObject, renderLayeredIconInfo, renderOpenParent, renderPromptString, renderUnit, shouldAddLinks, shouldRenderFolderLinks, shouldRenderLinks
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractObjectExplorerTreeTransform
addLinks, createNewNode, isRenderAsTree, isRenderEntireTree, newTreeNode, newTreeNodeLink, populateTreeNodes, populateWithChildren, renderTree
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractObjectExplorerTransform
addAncestorsOptionsToSelectTag, addCurrentFolderToAncestorList, addOpenParentImg, addOpenParentImg, getAncestorsOptionTags, getBlockPosition, getBlockSize, getBrowseEvent, getChangeDisplayFormatEvent, getChildCount, getExplorerClientSideHelper, getExplorerScriptClass, getForm, getGoToArgument, getHiddenInputsEventList, getID, getIncrementalFetchComponent, getOKEvent, getOpenParentEvent, getOption, getSearchBox, getSearchButton, getSearchEvent, getUnitAnchor, getUnitDesc, initializeImages, isUseOptionTitle, renderAncestors, renderChangeFormatDropDown, renderDisplayFormatPickers, renderErrorMessage, renderHiddenInputs, renderIncrementalFetch, renderLayeredIconInfo, renderObjectCount, renderSearch, renderSearchBox, renderSearchButton, renderSearchEventArgs, setUseOptionTitle, shouldDisplayErrorMessage, shouldGenerateNewForm, shouldShowDummyFolderOption
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractEditorTransform
generateForm, getDivTagAroundContents, getEditorTitle, getOnSubmitJS, getWebBeanErrorInfo, initHelp, renderEditor, renderEditorElement, setFocusFieldId, transformForRequestInError
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, getArgumentName, getAttributesShellDiv, getBeanPath, getBoneId, getClientSideHelper, getContainerServices, getContext, getContextMenu, getContextMenuManager, getContextMenuManagerName, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorMessage, getErrorTitle, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, hasSubBlock, initHeightAndWidthFromPreferences, initializeCss, initializeWebComponent, is508, isBlockMode, isContextMenusEnabled, isDhtml, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameEnabled, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newContext, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderImage, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderRegisterBone, renderSelf, renderShell, renderSubBlock, renderUserHelpAnchor, setBoneProperties, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, transformForRequestNotInited, transformForRequestProcessing
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getFormalParams, getPreview, isPreviewAvailable, isResolved, supports, supports, transform
-
-
-
-
Field Detail
-
folderBrowserStyle
public FormalParameter folderBrowserStyle
Indicates the style to use when rendering the contents of the folder to save the object to.
-
showCreateFolderButton
public FormalParameter showCreateFolderButton
Indicates if the create folder toggle button is to be shown or not. The value can true or false. If the value is false, the button to open the create folder dialog will not be shown. If the value is set to false and the value of the showCreateFolderDialog formal parameter is set to true, the create folder dialog will always be shown open on the save page. This formal parameter is applicaable only in DHTML mode as in HTML mode the create fodler dialog is always open.
-
showCreateFolderDialog
public FormalParameter showCreateFolderDialog
Indicates if the create new folder dialog is to be shown or not. The value can true or false. If the value is false, then the user will never be able to see the create new folder dialog and he will never see the toggle button used to open the create folder dialog either. Please note the the toggle button is available only in the DHTML mode.
-
createFolderJS
public FormalParameter createFolderJS
Formal parameter: The JavaScript code to execute when clicking on the create Folder Button- Since:
- MicroStrategy Web 9.0.0
-
saveButtonLabelID
public FormalParameter saveButtonLabelID
Indicates the descriptor Id for the save button.
-
saveLabelID
public FormalParameter saveLabelID
Indicates the descriptor Id for the save as label.
-
newFloderHelpTopic
public FormalParameter newFloderHelpTopic
Indicates the help topic for inner new folder dialog.- Since:
- MicroStrategy Web 9.0.0
-
confirmOWHelpTopic
public FormalParameter confirmOWHelpTopic
Indicates the help topic for inner confirm overwrite dialog.- Since:
- MicroStrategy Web 9.0.0
-
FP_CREATE_FOLDER_JS
public static final java.lang.String FP_CREATE_FOLDER_JS
Name for the formal parameter:createFolderJS
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
FP_FOLDER_BROWSER_STYLE
public static final java.lang.String FP_FOLDER_BROWSER_STYLE
Constant for the name of thefolderBrowserStyle
Formal Parameter.- See Also:
folderBrowserStyle
, Constant Field Values
-
FP_SHOW_CREATE_FOLDER_BUTTON
public static final java.lang.String FP_SHOW_CREATE_FOLDER_BUTTON
Constant for the name of theshowCreateFolderButton
Formal Parameter.- See Also:
showCreateFolderButton
, Constant Field Values
-
FP_SHOW_CREATE_FOLDER_DIAOLOG
public static final java.lang.String FP_SHOW_CREATE_FOLDER_DIAOLOG
Constant for the name of theshowCreateFolderDialog
Formal Parameter.- See Also:
showCreateFolderDialog
, Constant Field Values
-
FP_SAVE_BUTTON_LABEL_ID
public static final java.lang.String FP_SAVE_BUTTON_LABEL_ID
Constant for the name of thesaveButtonLabelID
Formal Parameter.- See Also:
saveButtonLabelID
, Constant Field Values
-
FP_SAVE_LABEL_ID
public static final java.lang.String FP_SAVE_LABEL_ID
Constant for the name of thesaveLabelID
Formal Parameter.- See Also:
saveLabelID
, Constant Field Values
-
-
Method Detail
-
getSaveAsBean
public SaveAsBean getSaveAsBean()
Get theSaveAsBean
instance being transformed- Returns:
- the current
SaveAsBean
instance being transformed
-
getSupportedBeanType
public java.lang.Class getSupportedBeanType()
Returns the supported bean type. This transform supportsSaveAsBean
instances- Specified by:
getSupportedBeanType
in interfaceTransform
- Overrides:
getSupportedBeanType
in classFolderObjectExplorerTransform
- Returns:
- the class of the bean supported by this transform.
-
getDescription
public java.lang.String getDescription()
Returns the textual description of the transform- Specified by:
getDescription
in interfaceTransform
- Overrides:
getDescription
in classAbstractObjectExplorerTreeTransform
- Returns:
- the description of the transform
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Transform when the status is "Successful". Just calls transformForRequestWaitingForUserInput, which is the correct status. This transform, after collecting and saving the information, expects to go back to its previous page.- Overrides:
transformForRequestSuccessful
in classAbstractEditorTransform
- Parameters:
out
- output by this transform- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
transformForRequestWaitingForUserInput
public void transformForRequestWaitingForUserInput(MarkupOutput out)
Generates the graphical output for theSaveAsBean
instance being transformed. Calls therenderOverwriteContents
method if the name given to the new object is the same as another object already existing on the folder;renderConfirmationContents
if the save method went successful; orrenderSaveAsContents
if the save options should be presented to the user.- Overrides:
transformForRequestWaitingForUserInput
in classAbstractAppTransform
- Parameters:
out
-MarkupOutput
instance with the output by this transoform- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
initializeTransform
public void initializeTransform(Transformable data)
Initializes properties of this transform required for the proper generation of the HTML to present to the user.- Specified by:
initializeTransform
in interfaceAppTransform
- Overrides:
initializeTransform
in classFolderObjectExplorerTransform
- Parameters:
data
-Transformable
instance to transform with this class.
-
renderSaveAsContents
public void renderSaveAsContents(MarkupOutput out)
Generates the Save As dialog contents, including the HTML information for presenting the user the Save As options for the object and the dialog for creating new folders if required. Calls therenderEditor
andrenderFolderCreateOptionsDialog
methods.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderAdvancedOptionsDialog
public void renderAdvancedOptionsDialog(MarkupOutput out)
Generates the Advanced Options dialog in the Save As page- Parameters:
out
-MarkupOutput
instance with the output
-
renderConfirmationTitle
public void renderConfirmationTitle(MarkupOutput out)
Renders the confirmation title to the MarkupOutput instance- Parameters:
out
-MarkupOutput
instance with the output
-
getConfirmationTitle
public abstract java.lang.String getConfirmationTitle()
Returns the title for the save as confirmation dialog- Returns:
- The title for the save as confirmation dialog
-
renderConfirmationSuccessfulMessage
public void renderConfirmationSuccessfulMessage(MarkupOutput out)
Renders the confirmation title to the MarkupOutput instance- Parameters:
out
-MarkupOutput
instance with the output
-
renderConfirmationButtonBar
public abstract void renderConfirmationButtonBar(MarkupOutput out)
Renders the confirmation buttons to the MarkupOutput instance- Parameters:
out
-MarkupOutput
instance with the output
-
renderConfirmationContents
public void renderConfirmationContents(MarkupOutput out)
This method renders the confimation page after the save as action. If the object saved is a report the user will have the option to either run the new report or go back to the old report or browse other reports from the parent folder of the old report.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderSaveAsFolderContents
public void renderSaveAsFolderContents(MarkupOutput out)
This method renders the contents of the current folder for the Save As dialog. It shows the contents of the current folder the user is in by rendering theFolderBean
instance of theSaveAsBean
bean with the style specified on itsfolderContentStyle
property.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderFolderCreateOptionsDialog
public void renderFolderCreateOptionsDialog(MarkupOutput out)
Generates the dialog for allowing the user to create a new folder with its description. Internally callsrenderFolderCreateName
andrenderFolderCreateDescription
for displaying the fields available to the user.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderFolderCreateButtonBar
public void renderFolderCreateButtonBar(MarkupOutput out)
Renders the HTML for displaying the button bar contents for the Folder Create dialog.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderFolderCreateName
public void renderFolderCreateName(MarkupOutput out)
Renders the HTML for displaying a text field where the user can type in the name of the new folder to create. The event argument related with the identifier of this field comes from thegetCreateFolderEvent
WebEvent
, namedEnumFolderBeanEvents.FOLDER_EVENT_ARGUMENT_FOLDER_NAME
- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderFolderCreateDescription
public void renderFolderCreateDescription(MarkupOutput out)
Renders the HTML for displaying a text field where the user can type in the description of the new folder to create. The event argument related with the identifier of this field comes from thegetCreateFolderEvent
WebEvent
, namedEnumFolderBeanEvents.FOLDER_EVENT_ARGUMENT_FOLDER_DESCRIPTION
- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderSaveAsJavaScript
public void renderSaveAsJavaScript(MarkupOutput out)
Renders any JavaScript content required at the end of the Save As dialog.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderEditorContents
public void renderEditorContents(MarkupOutput out)
Renders the contents of the current tab displayed on the Save As dialog. Internally calls the following methods:renderFolderBrowsingOptions
,renderSaveAsFolderContents
,renderSaveAsName
,renderSaveAsDescription
andrenderSaveAsAdvancedOptions
. Except for the advanced options, currently there's no major difference between the contents generated for the dialog if a Report, Template or Filter are selected, since they are mainly inner fields sent for identifying the type of object to save.- Overrides:
renderEditorContents
in classAbstractObjectExplorerTreeTransform
- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
updateAncestorFolderArray
protected void updateAncestorFolderArray(java.util.ArrayList tags, java.lang.String sysFolderName, int sysFolder)
Create an option tag entry on the ancestor folder array for the given system folder. Also, it checks if this ends up being a parent of the current folder viewed. If so, then finds out all the ancestor hierarchy for displaying it also to the user. Marks the current folder viewed as selected.- Parameters:
tags
- The list of ancestor folder optionssysFolderName
- The name of the system fodler which we want to render in the list of ancestor optionssysFolder
- The system folder for which we want to obtain ancestor information for
-
generateAncestorsOptionTags
protected java.util.ArrayList generateAncestorsOptionTags()
Generates the series of option tags to add to the combo box for showing the user the possible places where the new object can be saved, based on privileges, access rights and current location of the object.- Returns:
- an array of
Tag
instances corresponding to the differentOPTION
that will be provided to the user.
-
hasReadBrowseAccess
protected boolean hasReadBrowseAccess(FolderBean fb, int sysFolder)
Checks to see if the given sysFolder has browse and read access.- Parameters:
fb
- The folder bean which uses the given sysFolder to determine the access rights.sysFolder
- The value of the named folderEnumDSSXMLFolderNames
for which we want to check for read and browse access.- Returns:
- true if the given sysFolder has browse and read access.
-
getComboBrowseEvent
protected WebEvent getComboBrowseEvent()
WebEvent
to associate to the folder browse navigation available with the combo box provided with ancestor and fixed folder information.- Returns:
WebEvent
instance initialized if available,null
if event could not be found.
-
generateAnchor
protected AnchorTag generateAnchor(WebEvent event)
Overwrites the parent method by setting default attribute information- Overrides:
generateAnchor
in classAbstractAppTransform
- Parameters:
event
-WebEvent
instance to use as base for the link- Returns:
AnchorTag
instance initialized with the event information
-
renderFolderBrowsingOptions
public void renderFolderBrowsingOptions(MarkupOutput out)
Generates the HTML for showing the user the possible options for navigating the hierarchy of folder ancestors of the current folder being viewed, or a set of fixed folders where the new object can be saved.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderSaveAsDescription
public void renderSaveAsDescription(MarkupOutput out)
Renders the HTML for displaying a text field where the user can type in the description of the new object to create. The event argument related with the identifier of this field comes from thegetSaveEvent
WebEvent
, namedEnumSaveAsEvents.WebEventArgumentSaveAsReportDescription
- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderSaveAsName
public void renderSaveAsName(MarkupOutput out)
Renders the HTML for displaying a text field where the user can type in the name of the new object to create. The event argument related with the identifier of this field comes from thegetSaveEvent
WebEvent
, namedEnumSaveAsEvents.WebEventArgumentSaveAsReportName
- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
generateSimpleEditor
protected Editor generateSimpleEditor()
Generic method that creates an Editor instance and initializes it with basic settings. The dialog to use it should customize it as required for the final desired output to be achieved.- Returns:
- An instance of the editor with some basic properties like webcomponent and CSS styles already set on it.
-
renderOverwriteTitle
public void renderOverwriteTitle(MarkupOutput out)
Renders the title for the Overwrite dialog to the MarkupOutput instance- Parameters:
out
-MarkupOutput
instance with the output
-
getOverwriteTitle
public java.lang.String getOverwriteTitle()
Return the title for the Overwrite dialog- Returns:
- the title for the Overwrite dialog
-
renderOverwriteMessage
public abstract void renderOverwriteMessage(MarkupOutput out)
The message to render on the overwrite dialog when the object that the user is trying to save already exists.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderOptions
public abstract void renderOptions(MarkupOutput out)
Renders the prompt and/or linked filter template options as the case may be.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderOverwriteButtonBar
public abstract void renderOverwriteButtonBar(MarkupOutput out)
Renders the button bar for the overwrite dialog when the object that the user is trying to save already exists.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderOverwriteContents
public void renderOverwriteContents(MarkupOutput out)
Render the content to facilitate overwriting of a report/filter/template.- Parameters:
out
-MarkupOutput
instance with the output by this transoform
-
renderCreateFolderButton
public void renderCreateFolderButton(MarkupOutput out)
Renders the button that opens the create folder dialog- Parameters:
out
- MarkupOutput- Since:
- MicroStrategy Web 9.0.0
-
isEmptyList
public boolean isEmptyList()
Returnstrue
if the list of elements from this folder available for display (ObjectExplorerBean.getContents()
) is empty or not.- Since:
- MicroStrategy Web 9.0.0
-
getObjectName
protected java.lang.String getObjectName()
Obtain the object name to use for the new object to create- Returns:
String
value with the name of the new object to be created. It can come from the original object name or whatever the user might had previously specified for it.
-
getObjectDescription
protected java.lang.String getObjectDescription()
Obtain the object description to use for the new object to create- Returns:
String
value with the description of the new object to be created. It can come from the original object or whatever the user might had previously specified for it.
-
getSaveEvent
protected abstract WebEvent getSaveEvent()
Obtain an instance of theWebEvent
to use for saving the new object- Returns:
WebEvent
instance initialized,null
if it could not be created.
-
getCancelOverwriteEvent
protected WebEvent getCancelOverwriteEvent()
Obtain an instance of theWebEvent
to use for cancelling the overwritting of the new object- Returns:
WebEvent
instance initialized,null
if it could not be created.
-
getBrowseParentEvent
protected WebEvent getBrowseParentEvent()
Obtain an instance of theWebEvent
to use for browsing to the folder where the object has just been saved.- Returns:
WebEvent
instance initialized,null
if it could not be created.
-
getReturnToEvent
protected WebEvent getReturnToEvent()
Obtain an instance of theWebEvent
to use for returning to the original object that was saved- Returns:
WebEvent
instance initialized,null
if it could not be created.
-
getCancelEvent
protected WebEvent getCancelEvent()
Obtain an instance of theWebEvent
to use for cancelling the Save As request- Overrides:
getCancelEvent
in classAbstractAppTransform
- Returns:
WebEvent
instance initialized,null
if it could not be created.
-
getRepromptEvent
protected WebEvent getRepromptEvent()
- Since:
- MicroStrategy Web 9.0.0
-
getHelpEvent
@Deprecated protected WebEvent getHelpEvent()
Deprecated.Obtain an instance of theWebEvent
to use for getting help on the the Save As action- Returns:
WebEvent
instance initialized,null
if it could not be created.
-
getCreateFolderEvent
protected WebEvent getCreateFolderEvent()
Obtain an instance of theWebEvent
to use for creating a new folder- Returns:
WebEvent
instance initialized,null
if it could not be created.
-
initEditor
protected void initEditor(Editor editor)
Initializes the editor with the global settings.- Overrides:
initEditor
in classAbstractEditorTransform
- Parameters:
editor
- theEditor
to modify.
-
renderJavascript
protected void renderJavascript(MarkupOutput out)
Description copied from class:AbstractEditorTransform
This method should be used by the Editor transforms to generate any javascript necessary.
The default implementation includes a call to theClientSideHelper
to render the dynamic scrips and the registerBone call.- Overrides:
renderJavascript
in classAbstractEditorTransform
- Parameters:
out
-MarkupOutput
where the output should be rendered.
-
getAncestorsSelectTag
protected SelectTag getAncestorsSelectTag()
Description copied from class:AbstractObjectExplorerTransform
Returns a >select<Tag
instance object containing the list\ of the object's ancestors- Overrides:
getAncestorsSelectTag
in classFolderObjectExplorerTransform
- Returns:
- SelectTag
- See Also:
AbstractObjectExplorerTransform.getAncestorsSelectTag()
-
-