Class GeneratedBannerComponent

    • Field Detail

      • HEADLINE

        public static final java.lang.String HEADLINE
        Qualifier of the BannerComponent.headline attribute
        See Also:
        Constant Field Values
      • CONTENT

        public static final java.lang.String CONTENT
        Qualifier of the BannerComponent.content attribute
        See Also:
        Constant Field Values
      • PAGELABELORID

        public static final java.lang.String PAGELABELORID
        Qualifier of the BannerComponent.pageLabelOrId attribute
        See Also:
        Constant Field Values
      • ROTATINGCOMPONENT

        public static final java.lang.String ROTATINGCOMPONENT
        Qualifier of the BannerComponent.rotatingComponent attribute
        See Also:
        Constant Field Values
      • BANNERSFORROTATINGCOMPONENT_SRC_ORDERED

        protected static java.lang.String BANNERSFORROTATINGCOMPONENT_SRC_ORDERED
        Relation ordering override parameter constants for BannersForRotatingComponent from ((cms2lib))
      • BANNERSFORROTATINGCOMPONENT_TGT_ORDERED

        protected static java.lang.String BANNERSFORROTATINGCOMPONENT_TGT_ORDERED
      • BANNERSFORROTATINGCOMPONENT_MARKMODIFIED

        protected static java.lang.String BANNERSFORROTATINGCOMPONENT_MARKMODIFIED
        Relation disable markmodifed parameter constants for BannersForRotatingComponent from ((cms2lib))
      • PAGE

        public static final java.lang.String PAGE
        Qualifier of the BannerComponent.page 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

      • GeneratedBannerComponent

        public GeneratedBannerComponent()
    • Method Detail

      • getContent

        public java.lang.String getContent​(SessionContext ctx)
        Generated method - Getter of the BannerComponent.content attribute.
        Returns:
        the content
      • getContent

        public java.lang.String getContent()
        Generated method - Getter of the BannerComponent.content attribute.
        Returns:
        the content
      • getAllContent

        public java.util.Map<Language,​java.lang.String> getAllContent​(SessionContext ctx)
        Generated method - Getter of the BannerComponent.content attribute.
        Returns:
        the localized content
      • getAllContent

        public java.util.Map<Language,​java.lang.String> getAllContent()
        Generated method - Getter of the BannerComponent.content attribute.
        Returns:
        the localized content
      • setContent

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

        public void setContent​(java.lang.String value)
        Generated method - Setter of the BannerComponent.content attribute.
        Parameters:
        value - the content
      • setAllContent

        public void setAllContent​(SessionContext ctx,
                                  java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the BannerComponent.content attribute.
        Parameters:
        value - the content
      • setAllContent

        public void setAllContent​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the BannerComponent.content attribute.
        Parameters:
        value - the content
      • 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 AbstractBannerComponent
        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
      • getHeadline

        public java.lang.String getHeadline​(SessionContext ctx)
        Generated method - Getter of the BannerComponent.headline attribute.
        Returns:
        the headline
      • getHeadline

        public java.lang.String getHeadline()
        Generated method - Getter of the BannerComponent.headline attribute.
        Returns:
        the headline
      • getAllHeadline

        public java.util.Map<Language,​java.lang.String> getAllHeadline​(SessionContext ctx)
        Generated method - Getter of the BannerComponent.headline attribute.
        Returns:
        the localized headline
      • getAllHeadline

        public java.util.Map<Language,​java.lang.String> getAllHeadline()
        Generated method - Getter of the BannerComponent.headline attribute.
        Returns:
        the localized headline
      • setHeadline

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

        public void setHeadline​(java.lang.String value)
        Generated method - Setter of the BannerComponent.headline attribute.
        Parameters:
        value - the headline
      • setAllHeadline

        public void setAllHeadline​(SessionContext ctx,
                                   java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the BannerComponent.headline attribute.
        Parameters:
        value - the headline
      • setAllHeadline

        public void setAllHeadline​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the BannerComponent.headline attribute.
        Parameters:
        value - the headline
      • getPage

        public ContentPage getPage​(SessionContext ctx)
        Generated method - Getter of the BannerComponent.page attribute.
        Returns:
        the page
      • getPage

        public ContentPage getPage()
        Generated method - Getter of the BannerComponent.page attribute.
        Returns:
        the page
      • setPage

        public void setPage​(SessionContext ctx,
                            ContentPage value)
        Generated method - Setter of the BannerComponent.page attribute.
        Parameters:
        value - the page
      • setPage

        public void setPage​(ContentPage value)
        Generated method - Setter of the BannerComponent.page attribute.
        Parameters:
        value - the page
      • getPageLabelOrId

        public abstract java.lang.String getPageLabelOrId​(SessionContext ctx)
        Generated method - Getter of the BannerComponent.pageLabelOrId attribute.
        Returns:
        the pageLabelOrId
      • getPageLabelOrId

        public java.lang.String getPageLabelOrId()
        Generated method - Getter of the BannerComponent.pageLabelOrId attribute.
        Returns:
        the pageLabelOrId
      • getRotatingComponent

        public java.util.Collection<RotatingImagesComponent> getRotatingComponent​(SessionContext ctx)
        Generated method - Getter of the BannerComponent.rotatingComponent attribute.
        Returns:
        the rotatingComponent
      • getRotatingComponent

        public java.util.Collection<RotatingImagesComponent> getRotatingComponent()
        Generated method - Getter of the BannerComponent.rotatingComponent attribute.
        Returns:
        the rotatingComponent
      • getRotatingComponentCount

        public long getRotatingComponentCount​(SessionContext ctx)
      • getRotatingComponentCount

        public long getRotatingComponentCount()
      • setRotatingComponent

        public void setRotatingComponent​(SessionContext ctx,
                                         java.util.Collection<RotatingImagesComponent> value)
        Generated method - Setter of the BannerComponent.rotatingComponent attribute.
        Parameters:
        value - the rotatingComponent
      • setRotatingComponent

        public void setRotatingComponent​(java.util.Collection<RotatingImagesComponent> value)
        Generated method - Setter of the BannerComponent.rotatingComponent attribute.
        Parameters:
        value - the rotatingComponent
      • addToRotatingComponent

        public void addToRotatingComponent​(SessionContext ctx,
                                           RotatingImagesComponent value)
        Generated method - Adds value to rotatingComponent.
        Parameters:
        value - the item to add to rotatingComponent
      • addToRotatingComponent

        public void addToRotatingComponent​(RotatingImagesComponent value)
        Generated method - Adds value to rotatingComponent.
        Parameters:
        value - the item to add to rotatingComponent
      • removeFromRotatingComponent

        public void removeFromRotatingComponent​(SessionContext ctx,
                                                RotatingImagesComponent value)
        Generated method - Removes value from rotatingComponent.
        Parameters:
        value - the item to remove from rotatingComponent
      • removeFromRotatingComponent

        public void removeFromRotatingComponent​(RotatingImagesComponent value)
        Generated method - Removes value from rotatingComponent.
        Parameters:
        value - the item to remove from rotatingComponent