Class GeneratedContentSlotName

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

public abstract class GeneratedContentSlotName extends GenericItem
Generated class for type ContentSlotName.
See Also:
  • Field Details

    • NAME

      public static final String NAME
      Qualifier of the ContentSlotName.name attribute
      See Also:
    • COMPTYPEGROUP

      public static final String COMPTYPEGROUP
      Qualifier of the ContentSlotName.compTypeGroup attribute
      See Also:
    • TEMPLATEPOS

      public static final String TEMPLATEPOS
      Qualifier of the ContentSlotName.templatePOS attribute
      See Also:
    • TEMPLATE

      public static final String TEMPLATE
      Qualifier of the ContentSlotName.template attribute
      See Also:
    • VALIDCOMPONENTTYPES

      public static final String VALIDCOMPONENTTYPES
      Qualifier of the ContentSlotName.validComponentTypes attribute
      See Also:
    • VALIDCOMPONENTTYPESFORCONTENTSLOTS_SRC_ORDERED

      protected static String VALIDCOMPONENTTYPESFORCONTENTSLOTS_SRC_ORDERED
      Relation ordering override parameter constants for ValidComponentTypesForContentSlots from ((cms2))
    • VALIDCOMPONENTTYPESFORCONTENTSLOTS_TGT_ORDERED

      protected static String VALIDCOMPONENTTYPESFORCONTENTSLOTS_TGT_ORDERED
    • VALIDCOMPONENTTYPESFORCONTENTSLOTS_MARKMODIFIED

      protected static String VALIDCOMPONENTTYPESFORCONTENTSLOTS_MARKMODIFIED
      Relation disable markmodifed parameter constants for ValidComponentTypesForContentSlots from ((cms2))
    • TEMPLATEHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedContentSlotName> TEMPLATEHANDLER
      BidirectionalOneToManyHandler for handling 1:n TEMPLATE's relation attributes from 'one' side.
    • DEFAULT_INITIAL_ATTRIBUTES

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

    • GeneratedContentSlotName

      public GeneratedContentSlotName()
  • Method Details

    • getDefaultAttributeModes

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

      public ComponentTypeGroup getCompTypeGroup(SessionContext ctx)
      Generated method - Getter of the ContentSlotName.compTypeGroup attribute.
      Returns:
      the compTypeGroup
    • getCompTypeGroup

      public ComponentTypeGroup getCompTypeGroup()
      Generated method - Getter of the ContentSlotName.compTypeGroup attribute.
      Returns:
      the compTypeGroup
    • setCompTypeGroup

      public void setCompTypeGroup(SessionContext ctx, ComponentTypeGroup value)
      Generated method - Setter of the ContentSlotName.compTypeGroup attribute.
      Parameters:
      value - the compTypeGroup
    • setCompTypeGroup

      public void setCompTypeGroup(ComponentTypeGroup value)
      Generated method - Setter of the ContentSlotName.compTypeGroup attribute.
      Parameters:
      value - the compTypeGroup
    • 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
    • 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 Item
    • getName

      public String getName(SessionContext ctx)
      Generated method - Getter of the ContentSlotName.name attribute.
      Returns:
      the name
    • getName

      public String getName()
      Generated method - Getter of the ContentSlotName.name attribute.
      Returns:
      the name
    • setName

      public void setName(SessionContext ctx, String value)
      Generated method - Setter of the ContentSlotName.name attribute.
      Parameters:
      value - the name
    • setName

      public void setName(String value)
      Generated method - Setter of the ContentSlotName.name attribute.
      Parameters:
      value - the name
    • getTemplate

      public PageTemplate getTemplate(SessionContext ctx)
      Generated method - Getter of the ContentSlotName.template attribute.
      Returns:
      the template
    • getTemplate

      public PageTemplate getTemplate()
      Generated method - Getter of the ContentSlotName.template attribute.
      Returns:
      the template
    • setTemplate

      protected void setTemplate(SessionContext ctx, PageTemplate value)
      Generated method - Setter of the ContentSlotName.template attribute.
      Parameters:
      value - the template
    • setTemplate

      protected void setTemplate(PageTemplate value)
      Generated method - Setter of the ContentSlotName.template attribute.
      Parameters:
      value - the template
    • getValidComponentTypes

      public Set<CMSComponentType> getValidComponentTypes(SessionContext ctx)
      Generated method - Getter of the ContentSlotName.validComponentTypes attribute.
      Returns:
      the validComponentTypes
    • getValidComponentTypes

      public Set<CMSComponentType> getValidComponentTypes()
      Generated method - Getter of the ContentSlotName.validComponentTypes attribute.
      Returns:
      the validComponentTypes
    • getValidComponentTypesCount

      public long getValidComponentTypesCount(SessionContext ctx)
    • getValidComponentTypesCount

      public long getValidComponentTypesCount()
    • setValidComponentTypes

      public void setValidComponentTypes(SessionContext ctx, Set<CMSComponentType> value)
      Generated method - Setter of the ContentSlotName.validComponentTypes attribute.
      Parameters:
      value - the validComponentTypes
    • setValidComponentTypes

      public void setValidComponentTypes(Set<CMSComponentType> value)
      Generated method - Setter of the ContentSlotName.validComponentTypes attribute.
      Parameters:
      value - the validComponentTypes
    • addToValidComponentTypes

      public void addToValidComponentTypes(SessionContext ctx, CMSComponentType value)
      Generated method - Adds value to validComponentTypes.
      Parameters:
      value - the item to add to validComponentTypes
    • addToValidComponentTypes

      public void addToValidComponentTypes(CMSComponentType value)
      Generated method - Adds value to validComponentTypes.
      Parameters:
      value - the item to add to validComponentTypes
    • removeFromValidComponentTypes

      public void removeFromValidComponentTypes(SessionContext ctx, CMSComponentType value)
      Generated method - Removes value from validComponentTypes.
      Parameters:
      value - the item to remove from validComponentTypes
    • removeFromValidComponentTypes

      public void removeFromValidComponentTypes(CMSComponentType value)
      Generated method - Removes value from validComponentTypes.
      Parameters:
      value - the item to remove from validComponentTypes