Class AbstractObjectBrowserTabBean

    • Constructor Detail

      • AbstractObjectBrowserTabBean

        public AbstractObjectBrowserTabBean()
        Default constructor. No arguments.
    • Method Detail

      • setObjectFilter

        public void setObjectFilter​(java.lang.String objectFilter)
        Set the filter to use when obtaining the contents to display. A default object filter specification is defined, but it can be overwritten when using this method. The filter specified here will be applicable only when a search is run for retrieving the information to render to the user.
        Specified by:
        setObjectFilter in interface ObjectBrowserTabBean
        Parameters:
        objectFilter - a String specifying the object filter to use, with the following format:
        targetMode1:objectSubtype1,objectSubtype2,objectSubtype3;targetMode2:objectSubtype2
        Where the target mode is specified on the parent ObjectBrowserManagerBean instance.
        If no target is specified, then it means that regardless of the target mode, it will use the list of object subtypes specified as filter. For example:
        objectSubtype1,objectSubtype2,objectSubtype3
      • getObjectFilter

        public int[] getObjectFilter​(int targetMode)
        Get an array of object subtypes to use for filtering when a search is run.
        Specified by:
        getObjectFilter in interface ObjectBrowserTabBean
        Parameters:
        targetMode - the target mode indicated for selecting the filter defined for it. For example, EnumObjectBrowserTargets.ObjectBrowserTargetReport
        Returns:
        an array of int values representing the filter to use corresponding to the target mode specified.
      • isAvailable

        public boolean isAvailable()
        This method specifies if in the current scenario, the bean instance can be displayed as possible tab option, based on granted privileges, etc.
        Specified by:
        isAvailable in interface TabBean
        Returns:
        True if the instance is available for being displayed, if the user were to request it. Returns False otherwise.
        See Also:
        TabBean.isAvailable()
      • setTabRepresented

        public void setTabRepresented​(int tabRepresented)
        Each instance of this class represents a tab in the TabManagerBean. This method allows to specify which tab this instance will represent, so the TabManagerBean manager knows how to transfer render control to the child, depending on which tab the user requested.
        Specified by:
        setTabRepresented in interface TabBean
        Parameters:
        tabRepresented - an identifier of the tab this instance represents.
      • setRequireSingleSelector

        public void setRequireSingleSelector​(boolean requireSingleSelector)
        Each instance of this class represents a tab in the TabManagerBean. This method allows to specify whether this tab instance's availability relies on the selection of exactly one selector control among all the units the user has selected.
        Specified by:
        setRequireSingleSelector in interface TabBean
        Parameters:
        requireSingleSelector - boolean indicating whether a single selection on selector control is required for the tab to be available or not.
      • getTabRepresented

        public int getTabRepresented()
        Each instance of this class represents a tab in the TabManagerBean. This method allows to get which tab this instance will represent, so the TabManagerBean manager knows how to transfer render control to the child, depending on which tab the user requested.
        Specified by:
        getTabRepresented in interface TabBean
        Returns:
        the identifier of the tab this instance represents
      • getRequireSingleSelector

        public boolean getRequireSingleSelector()
        Each instance of this class represents a tab in the TabManagerBean. This method inidicates whether this tab instance's availability relies on the selection of exactly one selector control among all the units the user has selected.
        Specified by:
        getRequireSingleSelector in interface TabBean
        Returns:
        indicates whether a single selection on selector control is required for the tab to be available or not.
      • setTabName

        public void setTabName​(java.lang.String tabName)
        Each instance of this class represents a tab in the TabManagerBean. This method allows an alternative other than getTabRepresented() to get which tab this instance presents , so the TabManagerBean manager knows how to transfer render control to the child, depending on which tab name the user requested.
        Specified by:
        setTabName in interface TabBean
        Parameters:
        tabName - the name identifier of the tab this instance represents
      • getTabName

        public java.lang.String getTabName()
        Each instance of this class represents a tab in the TabManagerBean. This method allows an alternative other than getTabRepresented() to get which tab this instance presents , so the TabManagerBean manager knows how to transfer render control to the child, depending on which tab name the user requested.
        Specified by:
        getTabName in interface TabBean
        Returns:
        the name identifier of the tab this instance represents
      • setSwitchMode

        public void setSwitchMode​(int switchMode)
        the switching mode can be: CACHED - use the cached tab content on the client side FETCH - go back to the webserver to fetch the tab content
        Specified by:
        setSwitchMode in interface TabBean
        Parameters:
        switchMode - the switching mode to set for this tab instance
      • getSwitchMode

        public int getSwitchMode()
        the switching mode can be: CACHED - use the cached tab content on the client side FETCH - go back to the webserver to fetch the tab content
        Specified by:
        getSwitchMode in interface TabBean
        Returns:
        the switching mode of this tab instance uses
      • setTabLabel

        public void setTabLabel​(java.lang.String description)
        Set the description text to be used as title for the display of the tab.
        Specified by:
        setTabLabel in interface TabBean
        Parameters:
        description - String with the text to be used as title of the tab.
      • setTabLabelId

        public void setTabLabelId​(java.lang.String descriptionId)
        Set the identifier of the descriptor to be used as title for the display of the tab.
        Specified by:
        setTabLabelId in interface TabBean
        Parameters:
        descriptionId - String with the identifier of the descriptor to be used as title of the tab.
      • getTabLabel

        public java.lang.String getTabLabel()
        Get the description text to be used as title for the display of the tab.
        Specified by:
        getTabLabel in interface TabBean
        Returns:
        String with the text to be used as title of the tab.
      • getTabLabelId

        public java.lang.String getTabLabelId()
        Get the identifier of the descriptor to be used as title for the display of the tab.
        Specified by:
        getTabLabelId in interface TabBean
        Returns:
        String with the identifier of the descriptor to be used as title of the tab.
      • getTabId

        public java.lang.String getTabId()
        Description copied from interface: TabBean
        Returns a string can be used as the identifier of the tab.
        Specified by:
        getTabId in interface TabBean
        Returns:
        String with the text to be used as the id of the tab.
        Since:
        MicroStrategy Web 8.1.0
        See Also:
        TabBean.getTabId()
      • setSupportedTypes

        public void setSupportedTypes​(java.lang.String supportedTYpes)
        Set the list of objects this tab can be associated with.
        Specified by:
        setSupportedTypes in interface TabBean
        Parameters:
        supportedTYpes - String list of the associated objectys i.e. obj.103, obj.102
      • getSupportedTypes

        public java.lang.String getSupportedTypes()
        Get the list of objects this tab can be associated with.
        Specified by:
        getSupportedTypes in interface TabBean
        Returns:
        String with the a list of supported objects.
      • setFeatures

        public void setFeatures​(java.lang.String featureIds)
        Sets a list of feature ids that are required to enable the tab
        Specified by:
        setFeatures in interface TabBean
        Parameters:
        featureIds - String featureIds separated by ","
      • getFeatures

        public java.lang.String getFeatures()
        Gets a list of feature ids that are required to enable the tab
        Specified by:
        getFeatures in interface TabBean
        Returns:
        String
      • getEnabledCmdId

        public java.lang.String getEnabledCmdId()
        Get the command id to be queried on the clioent site. This determines the availability of the tab.
        Specified by:
        getEnabledCmdId in interface TabBean
        Returns:
        String with the tab's command id.
Specified by:
getXMLStatus in interface WebComponent
Overrides:
getXMLStatus in class AbstractAppComponent
Returns:
an EnumRequestStatus enumeration value for the component.
See Also:
WebComponent.getXMLStatus()