Class GeneratedCMSLinkComponent

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

public abstract class GeneratedCMSLinkComponent extends SimpleCMSComponent
Generated class for type CMSLinkComponent.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedCMSLinkComponent

      public GeneratedCMSLinkComponent()
  • Method Details

    • getDefaultAttributeModes

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

      public Category getCategory(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.category attribute.
      Returns:
      the category
    • getCategory

      public Category getCategory()
      Generated method - Getter of the CMSLinkComponent.category attribute.
      Returns:
      the category
    • setCategory

      public void setCategory(SessionContext ctx, Category value)
      Generated method - Setter of the CMSLinkComponent.category attribute.
      Parameters:
      value - the category
    • setCategory

      public void setCategory(Category value)
      Generated method - Setter of the CMSLinkComponent.category attribute.
      Parameters:
      value - the category
    • getCategoryCode

      public abstract String getCategoryCode(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.categoryCode attribute.
      Returns:
      the categoryCode
    • getCategoryCode

      public String getCategoryCode()
      Generated method - Getter of the CMSLinkComponent.categoryCode attribute.
      Returns:
      the categoryCode
    • getContentPage

      public ContentPage getContentPage(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.contentPage attribute.
      Returns:
      the contentPage
    • getContentPage

      public ContentPage getContentPage()
      Generated method - Getter of the CMSLinkComponent.contentPage attribute.
      Returns:
      the contentPage
    • setContentPage

      public void setContentPage(SessionContext ctx, ContentPage value)
      Generated method - Setter of the CMSLinkComponent.contentPage attribute.
      Parameters:
      value - the contentPage
    • setContentPage

      public void setContentPage(ContentPage value)
      Generated method - Setter of the CMSLinkComponent.contentPage attribute.
      Parameters:
      value - the contentPage
    • getContentPageLabelOrId

      public abstract String getContentPageLabelOrId(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.contentPageLabelOrId attribute.
      Returns:
      the contentPageLabelOrId
    • getContentPageLabelOrId

      public String getContentPageLabelOrId()
      Generated method - Getter of the CMSLinkComponent.contentPageLabelOrId attribute.
      Returns:
      the contentPageLabelOrId
    • 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 AbstractCMSComponent
      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
    • isExternal

      public Boolean isExternal(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.external attribute.
      Returns:
      the external
    • isExternal

      public Boolean isExternal()
      Generated method - Getter of the CMSLinkComponent.external attribute.
      Returns:
      the external
    • isExternalAsPrimitive

      public boolean isExternalAsPrimitive(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.external attribute.
      Returns:
      the external
    • isExternalAsPrimitive

      public boolean isExternalAsPrimitive()
      Generated method - Getter of the CMSLinkComponent.external attribute.
      Returns:
      the external
    • setExternal

      public void setExternal(SessionContext ctx, Boolean value)
      Generated method - Setter of the CMSLinkComponent.external attribute.
      Parameters:
      value - the external
    • setExternal

      public void setExternal(Boolean value)
      Generated method - Setter of the CMSLinkComponent.external attribute.
      Parameters:
      value - the external
    • setExternal

      public void setExternal(SessionContext ctx, boolean value)
      Generated method - Setter of the CMSLinkComponent.external attribute.
      Parameters:
      value - the external
    • setExternal

      public void setExternal(boolean value)
      Generated method - Setter of the CMSLinkComponent.external attribute.
      Parameters:
      value - the external
    • 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
    • getLinkName

      public String getLinkName(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.linkName attribute.
      Returns:
      the linkName
    • getLinkName

      public String getLinkName()
      Generated method - Getter of the CMSLinkComponent.linkName attribute.
      Returns:
      the linkName
    • getAllLinkName

      public Map<Language,String> getAllLinkName(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.linkName attribute.
      Returns:
      the localized linkName
    • getAllLinkName

      public Map<Language,String> getAllLinkName()
      Generated method - Getter of the CMSLinkComponent.linkName attribute.
      Returns:
      the localized linkName
    • setLinkName

      public void setLinkName(SessionContext ctx, String value)
      Generated method - Setter of the CMSLinkComponent.linkName attribute.
      Parameters:
      value - the linkName
    • setLinkName

      public void setLinkName(String value)
      Generated method - Setter of the CMSLinkComponent.linkName attribute.
      Parameters:
      value - the linkName
    • setAllLinkName

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

      public void setAllLinkName(Map<Language,String> value)
      Generated method - Setter of the CMSLinkComponent.linkName attribute.
      Parameters:
      value - the linkName
    • getNavigationNodes

      public List<CMSNavigationNode> getNavigationNodes(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.navigationNodes attribute.
      Returns:
      the navigationNodes
    • getNavigationNodes

      public List<CMSNavigationNode> getNavigationNodes()
      Generated method - Getter of the CMSLinkComponent.navigationNodes attribute.
      Returns:
      the navigationNodes
    • getNavigationNodesCount

      public long getNavigationNodesCount(SessionContext ctx)
    • getNavigationNodesCount

      public long getNavigationNodesCount()
    • setNavigationNodes

      public void setNavigationNodes(SessionContext ctx, List<CMSNavigationNode> value)
      Generated method - Setter of the CMSLinkComponent.navigationNodes attribute.
      Parameters:
      value - the navigationNodes
    • setNavigationNodes

      public void setNavigationNodes(List<CMSNavigationNode> value)
      Generated method - Setter of the CMSLinkComponent.navigationNodes attribute.
      Parameters:
      value - the navigationNodes
    • addToNavigationNodes

      public void addToNavigationNodes(SessionContext ctx, CMSNavigationNode value)
      Generated method - Adds value to navigationNodes.
      Parameters:
      value - the item to add to navigationNodes
    • addToNavigationNodes

      public void addToNavigationNodes(CMSNavigationNode value)
      Generated method - Adds value to navigationNodes.
      Parameters:
      value - the item to add to navigationNodes
    • removeFromNavigationNodes

      public void removeFromNavigationNodes(SessionContext ctx, CMSNavigationNode value)
      Generated method - Removes value from navigationNodes.
      Parameters:
      value - the item to remove from navigationNodes
    • removeFromNavigationNodes

      public void removeFromNavigationNodes(CMSNavigationNode value)
      Generated method - Removes value from navigationNodes.
      Parameters:
      value - the item to remove from navigationNodes
    • getProduct

      public Product getProduct(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.product attribute.
      Returns:
      the product
    • getProduct

      public Product getProduct()
      Generated method - Getter of the CMSLinkComponent.product attribute.
      Returns:
      the product
    • setProduct

      public void setProduct(SessionContext ctx, Product value)
      Generated method - Setter of the CMSLinkComponent.product attribute.
      Parameters:
      value - the product
    • setProduct

      public void setProduct(Product value)
      Generated method - Setter of the CMSLinkComponent.product attribute.
      Parameters:
      value - the product
    • getProductCode

      public abstract String getProductCode(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.productCode attribute.
      Returns:
      the productCode
    • getProductCode

      public String getProductCode()
      Generated method - Getter of the CMSLinkComponent.productCode attribute.
      Returns:
      the productCode
    • getTarget

      public EnumerationValue getTarget(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.target attribute.
      Returns:
      the target
    • getTarget

      public EnumerationValue getTarget()
      Generated method - Getter of the CMSLinkComponent.target attribute.
      Returns:
      the target
    • setTarget

      public void setTarget(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the CMSLinkComponent.target attribute.
      Parameters:
      value - the target
    • setTarget

      public void setTarget(EnumerationValue value)
      Generated method - Setter of the CMSLinkComponent.target attribute.
      Parameters:
      value - the target
    • getUrl

      public String getUrl(SessionContext ctx)
      Generated method - Getter of the CMSLinkComponent.url attribute.
      Returns:
      the url
    • getUrl

      public String getUrl()
      Generated method - Getter of the CMSLinkComponent.url attribute.
      Returns:
      the url
    • setUrl

      public void setUrl(SessionContext ctx, String value)
      Generated method - Setter of the CMSLinkComponent.url attribute.
      Parameters:
      value - the url
    • setUrl

      public void setUrl(String value)
      Generated method - Setter of the CMSLinkComponent.url attribute.
      Parameters:
      value - the url