Class GeneratedBannerComponent

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
BannerComponent

public abstract class GeneratedBannerComponent extends AbstractBannerComponent
Generated class for type BannerComponent.
See Also:
  • Field Details

    • HEADLINE

      public static final String HEADLINE
      Qualifier of the BannerComponent.headline attribute
      See Also:
    • CONTENT

      public static final String CONTENT
      Qualifier of the BannerComponent.content attribute
      See Also:
    • PAGELABELORID

      public static final String PAGELABELORID
      Qualifier of the BannerComponent.pageLabelOrId attribute
      See Also:
    • ROTATINGCOMPONENT

      public static final String ROTATINGCOMPONENT
      Qualifier of the BannerComponent.rotatingComponent attribute
      See Also:
    • BANNERSFORROTATINGCOMPONENT_SRC_ORDERED

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

      protected static String BANNERSFORROTATINGCOMPONENT_TGT_ORDERED
    • BANNERSFORROTATINGCOMPONENT_MARKMODIFIED

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

      public static final String PAGE
      Qualifier of the BannerComponent.page attribute
      See Also:
    • PAGEHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedBannerComponent> PAGEHANDLER
      BidirectionalOneToManyHandler for handling 1:n PAGE's relation attributes from 'one' side.
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedBannerComponent

      public GeneratedBannerComponent()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedAbstractBannerComponent
    • getContent

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

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

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

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

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

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

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

      public void setAllContent(Map<Language,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 String getHeadline(SessionContext ctx)
      Generated method - Getter of the BannerComponent.headline attribute.
      Returns:
      the headline
    • getHeadline

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

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

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

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

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

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

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

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class GeneratedSimpleCMSComponent
    • 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 String getPageLabelOrId(SessionContext ctx)
      Generated method - Getter of the BannerComponent.pageLabelOrId attribute.
      Returns:
      the pageLabelOrId
    • getPageLabelOrId

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

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

      public 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, Collection<RotatingImagesComponent> value)
      Generated method - Setter of the BannerComponent.rotatingComponent attribute.
      Parameters:
      value - the rotatingComponent
    • setRotatingComponent

      public void setRotatingComponent(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