Package com.microstrategy.web.app.beans
Class FolderObjectExplorerBeanImpl
- java.lang.Object
-
- com.microstrategy.utils.serialization.AbstractPersistable
-
- com.microstrategy.web.beans.AbstractTransformable
-
- com.microstrategy.web.beans.AbstractWebComponent
-
- com.microstrategy.web.app.beans.AbstractAppComponent
-
- com.microstrategy.web.app.beans.AbstractPersistableAppComponent
-
- com.microstrategy.web.app.beans.AbstractPersistableFrameElement
-
- com.microstrategy.web.app.beans.AbstractObjectExplorerBean
-
- com.microstrategy.web.app.beans.FolderObjectExplorerBeanImpl
-
- All Implemented Interfaces:
EnumWebPersistableState,Persistable,AppComponent,FolderObjectExplorerBean,ObjectExplorerBean,RequestPersistable,Transformable,WebComponent
- Direct Known Subclasses:
AllObjectBrowserBeanImpl,DatasetObjectExplorerBeanImpl
public class FolderObjectExplorerBeanImpl extends AbstractObjectExplorerBean implements FolderObjectExplorerBean
Implementation of theFolderObjectExplorerBeanthat represents an editor used to browse the contents of aFolderBean- Since:
- MicroStrategy Web 8.0.2
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList_ancestorsprotected int_rootSysFolderprotected java.util.ArrayList_trimedAncestors-
Fields inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
STATE_DELIMITOR, STATE_ITEM_SEPARATOR
-
Fields inherited from class com.microstrategy.web.beans.AbstractWebComponent
_features, _hasJustOpened
-
Fields inherited from class com.microstrategy.web.beans.AbstractTransformable
_beanContext
-
Fields inherited from class com.microstrategy.utils.serialization.AbstractPersistable
scriptEndTagEncoder
-
Fields inherited from interface com.microstrategy.web.app.beans.AppComponent
COMPONENT_POSITION_NOT_INITIALIZED
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Constructor Summary
Constructors Constructor Description FolderObjectExplorerBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoCollectData()Extends collectData by initializing the folder beanprotected voiddoFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)Proceses the save/restore state opperation of the AppComponentjava.util.ArrayListgetAncestors()java.lang.StringgetConfiguredRootFolderID()Gets the root folder specified in the contextjava.util.ArrayListgetContents()java.util.ArrayListgetContents(boolean sortAscending)intgetContextID()WebDisplayUnitgetCurrentUnit()FolderBeangetFolderBean()protected java.lang.StringgetFolderBeanName()protected WebFoldergetFolderFromFolderLink(FolderLink fl)java.util.ArrayListgetLinks()intgetLinksContextID()get the contextID used by linksintgetObjectCount()protected java.lang.StringgetProjectID()Get the Project ID from the session managerbooleangetRenderRoot()java.lang.StringgetRootFolderID()This method returns the ID of the root folder of the editor it can be read either from the list of configured links or a pluginjava.lang.StringgetSearchName()intgetTotalObjectCount()java.util.ArrayList<WebDisplayUnit>getTrimedAncestors()Get anListofWebDisplayUnitobjects containing the list of of the current object's ancestors (parent folders), it will trim the user profile folder if it is in the ancestor listbooleanhandleRequest(RequestKeys keys)Handles the request specified by theRequestKeysinstance.booleanisExcludeShortcut()Set flag to exclude Shortcut objects from search resultsbooleanisQuickSearch()protected WebEventHandlernewDefaultEventHandler()voidresetFolderBean()protected voidrestoreTypeRestrictions(boolean restoring, FlatStateSerializer serializer, FlatStateTokenizer tokenizer)voidsetContextID(int contextID)Sets the context id.voidsetExcludeShortcut(boolean excludeShortcut)Set flag to exclude Shortcut objects from search resultsvoidsetIgnoreAccessDenialError(boolean ignoreAccessDenialError)voidsetQuickSearch(boolean quickSearch)set flag whether to use Quick Search enginevoidsetRenderRoot(boolean renderRoot)protected voidsetupFolderBean()Initialize aFolderBeaninstance in order to process the folder information to be displayed as part of the explorer bean's interface-
Methods inherited from class com.microstrategy.web.app.beans.AbstractObjectExplorerBean
getBlockBegin, getBlockCount, getErrorMessage, getTypeRestriction, setBlockBegin, setBlockCount, setErrorMessage, setTypeRestriction
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableFrameElement
getDocumentFrameBean, getFeaturesManager, getFrameBean, getReportFrameBean, getRWFrameBean, getUseIFrame, isEditor, isGridDataNecessary, isIFrameEnabled, isOpen, setIsOpen, setUseIFrame
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
addChildStateInfo, isCookieOpen, isSaveStateEnabled, saveState, saveState, saveState, saveState
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractAppComponent
addChildStateInfo, collectData, collectMinimalData, compareChildsTargetWithCurrent, createTransformInstance, doCollectMinimalData, generateOutput, getAppContext, getContactInfo, getContainerServices, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getObjectSource, getResultFilterMode, getSession, getTargetBean, getTop, getType, getWebObjectsFactory, getWebObjectsFactory, getXMLStatus, hasChanged, hasTargetBeanChanged, haveChildrenChanged, initComponent, internalCollectData, isDialog, isForcedChildrenStateSaving, isIFrameRequest, isModal, isModalOpen, newDefaultBeanContext, newHiddenInputBuilder, newNamespaceEncoder, newStyleRequestContext, newURIBuilder, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setLeft, setOutputFormat, setTop
-
Methods inherited from class com.microstrategy.web.beans.AbstractWebComponent
addChild, addChildStateInfo, addChildStateInfo, addChildStateInfo, addStateInfo, childValues, clearChildren, clearStateCache, getCachedState, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isChangeComparisonFlagSet, isFeatureAvailable, prepareForReuse, removeChild, removeChild, restoreState, restoreStateFromRequest, restoreStateFromRequest, saveXMLState, saveXMLState, saveXMLState, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setParent, setPersistMode, setRenderingFilter, setStateCache, setTargetBean, setTargetBeanPath, setWebEventHandler
-
Methods inherited from class com.microstrategy.web.beans.AbstractTransformable
addTransform, addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, createTransformInstance, getBeanContext, getDefaultTransform, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, internalCollectData, internalCollectData, invalidateTransformCache, isTransformSuitable, transform, transform, transform, transform
-
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, getStateHandler, isXMLStateZipped, restoreState, restoreXMLState, saveXMLState
-
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.app.beans.AppComponent
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getResultFilterMode, getTop, isDialog, isForcedChildrenStateSaving, isModal, isModalOpen, isOpen, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setTop
-
Methods inherited from interface com.microstrategy.web.app.beans.ObjectExplorerBean
getBlockBegin, getBlockCount, getErrorMessage, getTypeRestriction, setBlockBegin, setBlockCount, setErrorMessage, setTypeRestriction
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState
-
Methods inherited from interface com.microstrategy.web.beans.RequestPersistable
restoreStateFromRequest, restoreStateFromRequest
-
Methods inherited from interface com.microstrategy.web.beans.Transformable
addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, getBeanContext, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, getType, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform
-
Methods inherited from interface com.microstrategy.web.beans.WebComponent
addChild, addChildStateInfo, addChildStateInfo, collectData, collectMinimalData, generateOutput, getBeanContext, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getFeaturesManager, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBean, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, getXMLStatus, hasChanged, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setTargetBean, setTargetBeanPath, setWebEventHandler
-
-
-
-
Method Detail
-
handleRequest
public boolean handleRequest(RequestKeys keys) throws WebException
Description copied from class:AbstractWebComponentHandles the request specified by theRequestKeysinstance. The RequestKeys object might contain all information sent from the Web browser along with any cookies, session variables, etc. Most importantly, it containsWebEventrelated information. If this instance in the namespace of the src request key attribute, it will forward the request to its associated event handler.- Specified by:
handleRequestin interfaceWebComponent- Overrides:
handleRequestin classAbstractWebComponent- Parameters:
keys- theRequestKeysobject.- Returns:
- true if the request is successfully handled; false if the request or event is not supported.
- Throws:
WebException- thrown if there is any error occurred when handling the request.
-
doCollectData
public void doCollectData()
Extends collectData by initializing the folder bean- Overrides:
doCollectDatain classAbstractPersistableFrameElement
-
getAncestors
public java.util.ArrayList getAncestors()
- Specified by:
getAncestorsin interfaceObjectExplorerBean- Returns:
- an
ListofWebDisplayUnitobjects containing the list of of the current object's ancestors (parent folders) - See Also:
ObjectExplorerBean.getAncestors()
-
getTrimedAncestors
public java.util.ArrayList<WebDisplayUnit> getTrimedAncestors()
Description copied from interface:FolderObjectExplorerBeanGet anListofWebDisplayUnitobjects containing the list of of the current object's ancestors (parent folders), it will trim the user profile folder if it is in the ancestor list- Specified by:
getTrimedAncestorsin interfaceFolderObjectExplorerBean- Returns:
-
getContents
public java.util.ArrayList getContents()
- Specified by:
getContentsin interfaceObjectExplorerBean- Returns:
- an
ListofWebDisplayUnitobjects that represent the objects contained inside the current object (folder). The type of objects can be specified using thetypeRestrictionproperty - See Also:
ObjectExplorerBean.getContents()
-
getContents
public java.util.ArrayList getContents(boolean sortAscending)
- Specified by:
getContentsin interfaceObjectExplorerBean- Parameters:
sortAscending- specifies if the results should be sorted ascending or descending.- Returns:
- an
ListofWebDisplayUnitobjects that represent the objects contained inside the current object (folder). The type of objects can be specified using thetypeRestrictionproperty - See Also:
ObjectExplorerBean.getContents(boolean)
-
isExcludeShortcut
public boolean isExcludeShortcut()
Description copied from interface:FolderObjectExplorerBeanSet flag to exclude Shortcut objects from search results- Specified by:
isExcludeShortcutin interfaceFolderObjectExplorerBean
-
setExcludeShortcut
public void setExcludeShortcut(boolean excludeShortcut)
Description copied from interface:FolderObjectExplorerBeanSet flag to exclude Shortcut objects from search results- Specified by:
setExcludeShortcutin interfaceFolderObjectExplorerBean
-
isQuickSearch
public boolean isQuickSearch()
- Specified by:
isQuickSearchin interfaceFolderObjectExplorerBean
-
setQuickSearch
public void setQuickSearch(boolean quickSearch)
Description copied from interface:FolderObjectExplorerBeanset flag whether to use Quick Search engine- Specified by:
setQuickSearchin interfaceFolderObjectExplorerBean
-
getFolderBean
public FolderBean getFolderBean()
- Specified by:
getFolderBeanin interfaceFolderObjectExplorerBean- Returns:
- the
FolderBeanthat represents the objects contained by the editor - See Also:
FolderObjectExplorerBean.getFolderBean()
-
getFolderBeanName
protected java.lang.String getFolderBeanName()
- Returns:
- The name of the
FolderBeancreated bygetFolderBean() - Since:
- MicroStrategy Web 9.0.1
-
setupFolderBean
protected void setupFolderBean()
Initialize aFolderBeaninstance in order to process the folder information to be displayed as part of the explorer bean's interface
-
getLinks
public java.util.ArrayList getLinks()
- Specified by:
getLinksin interfaceObjectExplorerBean- Returns:
- an
ListofWebDisplayUnitobjects that represent the project links. - See Also:
ObjectExplorerBean.getLinks()
-
getFolderFromFolderLink
protected WebFolder getFolderFromFolderLink(FolderLink fl)
-
getCurrentUnit
public WebDisplayUnit getCurrentUnit()
- Specified by:
getCurrentUnitin interfaceObjectExplorerBean- Returns:
- a
WebDisplayUnitthat represents the current object - See Also:
ObjectExplorerBean.getCurrentUnit()
-
getTotalObjectCount
public int getTotalObjectCount()
- Specified by:
getTotalObjectCountin interfaceObjectExplorerBean- Returns:
- the total number of objects contained in the current object
- See Also:
ObjectExplorerBean.getTotalObjectCount()
-
getContextID
public int getContextID()
- Specified by:
getContextIDin interfaceFolderObjectExplorerBean- Returns:
- the context id. A value from
EnumObjectBrowserContextsused to obtain the links - See Also:
ObjectExplorerBean.getSearchName()
-
getLinksContextID
public int getLinksContextID()
get the contextID used by links- Specified by:
getLinksContextIDin interfaceFolderObjectExplorerBean- Returns:
- the context id used to retrieve links
- Since:
- MicroStrategy Web 9.0.0
-
setContextID
public void setContextID(int contextID)
Description copied from interface:FolderObjectExplorerBeanSets the context id. A value fromEnumObjectBrowserContextsused to obtain the links- Specified by:
setContextIDin interfaceFolderObjectExplorerBean- Parameters:
contextID- the context id. A value fromEnumObjectBrowserContextsused to obtain the links- See Also:
FolderObjectExplorerBean.setContextID(int)
-
doFlatState
protected void doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Description copied from class:AbstractPersistableAppComponentProceses the save/restore state opperation of the AppComponent- Overrides:
doFlatStatein classAbstractPersistableAppComponent- Parameters:
serializer- an instance of theFlatStateSerializerobject to usehowMuchState- defines how much information needs to be savedtokenizer- an instance of theFlatStateTokenizerobject to use
-
restoreTypeRestrictions
protected void restoreTypeRestrictions(boolean restoring, FlatStateSerializer serializer, FlatStateTokenizer tokenizer)- Since:
- MicroStrategy Web 9.0.0
-
getSearchName
public java.lang.String getSearchName()
- Specified by:
getSearchNamein interfaceObjectExplorerBean- Returns:
- The current search name if any.
- See Also:
ObjectExplorerBean.getSearchName()
-
getObjectCount
public int getObjectCount()
- Specified by:
getObjectCountin interfaceObjectExplorerBean- Returns:
- the number of objects contained in the object's current block.
- See Also:
ObjectExplorerBean.getObjectCount()
-
resetFolderBean
public void resetFolderBean()
- Specified by:
resetFolderBeanin interfaceFolderObjectExplorerBean- Since:
- MicroStrategy Web 9.0.0
-
getConfiguredRootFolderID
public java.lang.String getConfiguredRootFolderID() throws WebObjectsExceptionDescription copied from interface:FolderObjectExplorerBeanGets the root folder specified in the context- Specified by:
getConfiguredRootFolderIDin interfaceFolderObjectExplorerBean- Throws:
WebObjectsException
-
getRootFolderID
public java.lang.String getRootFolderID()
This method returns the ID of the root folder of the editor it can be read either from the list of configured links or a plugin- Specified by:
getRootFolderIDin interfaceFolderObjectExplorerBean- Returns:
- the id of the root folder the
FolderBeanis based on when browsing - Since:
- MicroStrategy Web 9.0.0
-
getProjectID
protected java.lang.String getProjectID()
Get the Project ID from the session manager- Returns:
- String projectID
-
getRenderRoot
public boolean getRenderRoot()
- Specified by:
getRenderRootin interfaceFolderObjectExplorerBean- Since:
- MicroStrategy Web 9.0.0
-
setRenderRoot
public void setRenderRoot(boolean renderRoot)
- Specified by:
setRenderRootin interfaceFolderObjectExplorerBean- Since:
- MicroStrategy Web 9.0.0
-
newDefaultEventHandler
protected WebEventHandler newDefaultEventHandler()
- Overrides:
newDefaultEventHandlerin classAbstractWebComponent- Since:
- MicroStrategy Web 9.0.0
-
setIgnoreAccessDenialError
public void setIgnoreAccessDenialError(boolean ignoreAccessDenialError)
-
-