Class GeneratedAbstractComment

    • Constructor Detail

      • GeneratedAbstractComment

        public GeneratedAbstractComment()
    • Method Detail

      • getAttachments

        public java.util.Collection<CommentAttachment> getAttachments​(SessionContext ctx)
        Generated method - Getter of the AbstractComment.attachments attribute.
        Returns:
        the attachments
      • getAttachments

        public java.util.Collection<CommentAttachment> getAttachments()
        Generated method - Getter of the AbstractComment.attachments attribute.
        Returns:
        the attachments
      • setAttachments

        public void setAttachments​(SessionContext ctx,
                                   java.util.Collection<CommentAttachment> value)
        Generated method - Setter of the AbstractComment.attachments attribute.
        Parameters:
        value - the attachments
      • setAttachments

        public void setAttachments​(java.util.Collection<CommentAttachment> value)
        Generated method - Setter of the AbstractComment.attachments attribute.
        Parameters:
        value - the attachments
      • addToAttachments

        public void addToAttachments​(SessionContext ctx,
                                     CommentAttachment value)
        Generated method - Adds value to attachments.
        Parameters:
        value - the item to add to attachments
      • addToAttachments

        public void addToAttachments​(CommentAttachment value)
        Generated method - Adds value to attachments.
        Parameters:
        value - the item to add to attachments
      • removeFromAttachments

        public void removeFromAttachments​(SessionContext ctx,
                                          CommentAttachment value)
        Generated method - Removes value from attachments.
        Parameters:
        value - the item to remove from attachments
      • removeFromAttachments

        public void removeFromAttachments​(CommentAttachment value)
        Generated method - Removes value from attachments.
        Parameters:
        value - the item to remove from attachments
      • getAuthor

        public User getAuthor​(SessionContext ctx)
        Generated method - Getter of the AbstractComment.author attribute.
        Returns:
        the author
      • getAuthor

        public User getAuthor()
        Generated method - Getter of the AbstractComment.author attribute.
        Returns:
        the author
      • setAuthor

        protected void setAuthor​(SessionContext ctx,
                                 User value)
        Generated method - Setter of the AbstractComment.author attribute.
        Parameters:
        value - the author
      • setAuthor

        protected void setAuthor​(User value)
        Generated method - Setter of the AbstractComment.author attribute.
        Parameters:
        value - the author
      • 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
      • getSubject

        public java.lang.String getSubject​(SessionContext ctx)
        Generated method - Getter of the AbstractComment.subject attribute.
        Returns:
        the subject - Subject of a comment
      • getSubject

        public java.lang.String getSubject()
        Generated method - Getter of the AbstractComment.subject attribute.
        Returns:
        the subject - Subject of a comment
      • setSubject

        public void setSubject​(SessionContext ctx,
                               java.lang.String value)
        Generated method - Setter of the AbstractComment.subject attribute.
        Parameters:
        value - the subject - Subject of a comment
      • setSubject

        public void setSubject​(java.lang.String value)
        Generated method - Setter of the AbstractComment.subject attribute.
        Parameters:
        value - the subject - Subject of a comment
      • getText

        public java.lang.String getText​(SessionContext ctx)
        Generated method - Getter of the AbstractComment.text attribute.
        Returns:
        the text - Content of a comment
      • getText

        public java.lang.String getText()
        Generated method - Getter of the AbstractComment.text attribute.
        Returns:
        the text - Content of a comment
      • setText

        public void setText​(SessionContext ctx,
                            java.lang.String value)
        Generated method - Setter of the AbstractComment.text attribute.
        Parameters:
        value - the text - Content of a comment
      • setText

        public void setText​(java.lang.String value)
        Generated method - Setter of the AbstractComment.text attribute.
        Parameters:
        value - the text - Content of a comment