Class GeneratedContentSlotName

    • Field Detail

      • NAME

        public static final java.lang.String NAME
        Qualifier of the ContentSlotName.name attribute
        See Also:
        Constant Field Values
      • COMPTYPEGROUP

        public static final java.lang.String COMPTYPEGROUP
        Qualifier of the ContentSlotName.compTypeGroup attribute
        See Also:
        Constant Field Values
      • TEMPLATEPOS

        public static final java.lang.String TEMPLATEPOS
        Qualifier of the ContentSlotName.templatePOS attribute
        See Also:
        Constant Field Values
      • TEMPLATE

        public static final java.lang.String TEMPLATE
        Qualifier of the ContentSlotName.template attribute
        See Also:
        Constant Field Values
      • VALIDCOMPONENTTYPES

        public static final java.lang.String VALIDCOMPONENTTYPES
        Qualifier of the ContentSlotName.validComponentTypes attribute
        See Also:
        Constant Field Values
      • VALIDCOMPONENTTYPESFORCONTENTSLOTS_SRC_ORDERED

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

        protected static java.lang.String VALIDCOMPONENTTYPESFORCONTENTSLOTS_TGT_ORDERED
      • VALIDCOMPONENTTYPESFORCONTENTSLOTS_MARKMODIFIED

        protected static java.lang.String VALIDCOMPONENTTYPESFORCONTENTSLOTS_MARKMODIFIED
        Relation disable markmodifed parameter constants for ValidComponentTypesForContentSlots from ((cms2))
      • DEFAULT_INITIAL_ATTRIBUTES

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

      • GeneratedContentSlotName

        public GeneratedContentSlotName()
    • Method Detail

      • 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
      • getName

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

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

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

        public void setName​(java.lang.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 java.util.Set<CMSComponentType> getValidComponentTypes​(SessionContext ctx)
        Generated method - Getter of the ContentSlotName.validComponentTypes attribute.
        Returns:
        the validComponentTypes
      • getValidComponentTypes

        public java.util.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,
                                           java.util.Set<CMSComponentType> value)
        Generated method - Setter of the ContentSlotName.validComponentTypes attribute.
        Parameters:
        value - the validComponentTypes
      • setValidComponentTypes

        public void setValidComponentTypes​(java.util.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