Class PreferenceDefinitionBase

    • Field Detail

      • _name

        protected java.lang.String _name
      • _description

        protected java.lang.String _description
      • _value

        protected java.lang.String _value
      • _type

        protected java.lang.String _type
      • _clusterPropagate

        protected boolean _clusterPropagate
        Since:
        MicroStrategy Web 8.0.1
    • Constructor Detail

      • PreferenceDefinitionBase

        public PreferenceDefinitionBase()
        Constructor for creating PreferenceDefinition objects from XML parsing.
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
        Description copied from interface: PreferenceDefinition
        Update the value of the definition.
        Specified by:
        setValue in interface PreferenceDefinition
        Parameters:
        value - the new definition value.
      • setDescription

        public void setDescription​(java.lang.String value)
        Description copied from interface: PreferenceDefinition
        Update the description of a definition.
        Specified by:
        setDescription in interface PreferenceDefinition
        Parameters:
        value - The new definition description.
      • setType

        public void setType​(java.lang.String type)
        Description copied from interface: PreferenceDefinition
        Type is an application dependent declaration - typically used for validating the value property. See specific PreferenceDefinition implementations for further details.
        Specified by:
        setType in interface PreferenceDefinition
        Parameters:
        type - type of the definition.
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface PreferenceDefinition
        Returns:
        String type of the definition.
      • setClusterPropagate

        public void setClusterPropagate​(boolean propagate)
        Description copied from interface: PreferenceDefinition
        Configures whether changes to the preference will also propagate to other Intelligence Servers in the cluster.
        Specified by:
        setClusterPropagate in interface PreferenceDefinition
        Parameters:
        propagate - whether to propagate preference value changes to other servers in the cluster.
        Since:
        MicroStrategy Web 8.0.1
      • clusterPropagate

        public boolean clusterPropagate()
        Description copied from interface: PreferenceDefinition
        Whether changes to the preference will also propagate to other Intelligence Servers in the cluster. Defaults to true.
        Specified by:
        clusterPropagate in interface PreferenceDefinition
        Returns:
        whether changes to the preference will also propagate to other Servers in the cluster.
        Since:
        MicroStrategy Web 8.0.1
      • buildXmlAttributes

        protected abstract void buildXmlAttributes​(XMLBuilder builder)
        This is used to persist the state of the preference definition. Only attributes are set on the builder node. No new nodes should be created, nor existing ones closed.
        Parameters:
        builder -
      • setAttributes

        protected abstract void setAttributes​(org.xml.sax.Attributes attrs,
                                              PreferenceLevels group)
                                       throws PreferencesException
        This restores the state of the preference definition from a set of XML attributes.
        Parameters:
        attrs -
        group -
        Throws:
        PreferencesException
      • setAttributes

        protected abstract void setAttributes​(org.xml.sax.Attributes attrs,
                                              PreferenceLevels group,
                                              boolean update)
                                       throws PreferencesException
        This restores the state of the preference definition from a set of XML attributes.
        Parameters:
        attrs -
        group -
        update -
        Throws:
        PreferencesException
        Since:
        MicroStrategy Web 9.0.1
      • setEnumPreferenceLevels

        protected void setEnumPreferenceLevels​(PreferenceLevels lvls)
      • getEnumPreferenceLevels

        protected PreferenceLevels getEnumPreferenceLevels()
        Since:
        MicroStrategy Web 8.0.0
      • setName

        protected void setName​(java.lang.String name)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateDataType

        protected boolean validateDataType​(java.lang.String value)