Class GeneratedAsBoostRule

    • Field Detail

      • INDEXPROPERTY

        public static final java.lang.String INDEXPROPERTY
        Qualifier of the AsBoostRule.indexProperty attribute
        See Also:
        Constant Field Values
      • OPERATOR

        public static final java.lang.String OPERATOR
        Qualifier of the AsBoostRule.operator attribute
        See Also:
        Constant Field Values
      • VALUE

        public static final java.lang.String VALUE
        Qualifier of the AsBoostRule.value attribute
        See Also:
        Constant Field Values
      • BOOSTTYPE

        public static final java.lang.String BOOSTTYPE
        Qualifier of the AsBoostRule.boostType attribute
        See Also:
        Constant Field Values
      • BOOST

        public static final java.lang.String BOOST
        Qualifier of the AsBoostRule.boost attribute
        See Also:
        Constant Field Values
      • SEARCHCONFIGURATIONPOS

        public static final java.lang.String SEARCHCONFIGURATIONPOS
        Qualifier of the AsBoostRule.searchConfigurationPOS attribute
        See Also:
        Constant Field Values
      • SEARCHCONFIGURATION

        public static final java.lang.String SEARCHCONFIGURATION
        Qualifier of the AsBoostRule.searchConfiguration attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedAsBoostRule

        public GeneratedAsBoostRule()
    • Method Detail

      • getBoost

        public java.lang.Float getBoost​(SessionContext ctx)
        Generated method - Getter of the AsBoostRule.boost attribute.
        Returns:
        the boost
      • getBoost

        public java.lang.Float getBoost()
        Generated method - Getter of the AsBoostRule.boost attribute.
        Returns:
        the boost
      • getBoostAsPrimitive

        public float getBoostAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the AsBoostRule.boost attribute.
        Returns:
        the boost
      • getBoostAsPrimitive

        public float getBoostAsPrimitive()
        Generated method - Getter of the AsBoostRule.boost attribute.
        Returns:
        the boost
      • setBoost

        public void setBoost​(SessionContext ctx,
                             java.lang.Float value)
        Generated method - Setter of the AsBoostRule.boost attribute.
        Parameters:
        value - the boost
      • setBoost

        public void setBoost​(java.lang.Float value)
        Generated method - Setter of the AsBoostRule.boost attribute.
        Parameters:
        value - the boost
      • setBoost

        public void setBoost​(SessionContext ctx,
                             float value)
        Generated method - Setter of the AsBoostRule.boost attribute.
        Parameters:
        value - the boost
      • setBoost

        public void setBoost​(float value)
        Generated method - Setter of the AsBoostRule.boost attribute.
        Parameters:
        value - the boost
      • getBoostType

        public EnumerationValue getBoostType​(SessionContext ctx)
        Generated method - Getter of the AsBoostRule.boostType attribute.
        Returns:
        the boostType
      • getBoostType

        public EnumerationValue getBoostType()
        Generated method - Getter of the AsBoostRule.boostType attribute.
        Returns:
        the boostType
      • setBoostType

        public void setBoostType​(SessionContext ctx,
                                 EnumerationValue value)
        Generated method - Setter of the AsBoostRule.boostType attribute.
        Parameters:
        value - the boostType
      • setBoostType

        public void setBoostType​(EnumerationValue value)
        Generated method - Setter of the AsBoostRule.boostType attribute.
        Parameters:
        value - the boostType
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - 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 )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getIndexProperty

        public java.lang.String getIndexProperty​(SessionContext ctx)
        Generated method - Getter of the AsBoostRule.indexProperty attribute.
        Returns:
        the indexProperty
      • getIndexProperty

        public java.lang.String getIndexProperty()
        Generated method - Getter of the AsBoostRule.indexProperty attribute.
        Returns:
        the indexProperty
      • setIndexProperty

        protected void setIndexProperty​(SessionContext ctx,
                                        java.lang.String value)
        Generated method - Setter of the AsBoostRule.indexProperty attribute.
        Parameters:
        value - the indexProperty
      • setIndexProperty

        protected void setIndexProperty​(java.lang.String value)
        Generated method - Setter of the AsBoostRule.indexProperty attribute.
        Parameters:
        value - the indexProperty
      • getOperator

        public EnumerationValue getOperator​(SessionContext ctx)
        Generated method - Getter of the AsBoostRule.operator attribute.
        Returns:
        the operator
      • getOperator

        public EnumerationValue getOperator()
        Generated method - Getter of the AsBoostRule.operator attribute.
        Returns:
        the operator
      • setOperator

        public void setOperator​(SessionContext ctx,
                                EnumerationValue value)
        Generated method - Setter of the AsBoostRule.operator attribute.
        Parameters:
        value - the operator
      • setOperator

        public void setOperator​(EnumerationValue value)
        Generated method - Setter of the AsBoostRule.operator attribute.
        Parameters:
        value - the operator
      • getSearchConfiguration

        public AbstractAsConfigurableSearchConfiguration getSearchConfiguration()
        Generated method - Getter of the AsBoostRule.searchConfiguration attribute.
        Returns:
        the searchConfiguration
      • setSearchConfiguration

        protected void setSearchConfiguration​(AbstractAsConfigurableSearchConfiguration value)
        Generated method - Setter of the AsBoostRule.searchConfiguration attribute.
        Parameters:
        value - the searchConfiguration
      • getValue

        public java.lang.String getValue​(SessionContext ctx)
        Generated method - Getter of the AsBoostRule.value attribute.
        Returns:
        the value
      • getValue

        public java.lang.String getValue()
        Generated method - Getter of the AsBoostRule.value attribute.
        Returns:
        the value
      • setValue

        public void setValue​(SessionContext ctx,
                             java.lang.String value)
        Generated method - Setter of the AsBoostRule.value attribute.
        Parameters:
        value - the value
      • setValue

        public void setValue​(java.lang.String value)
        Generated method - Setter of the AsBoostRule.value attribute.
        Parameters:
        value - the value