class Projects::Model::Forum

Attributes

categoryId[RW]
content[RW]
id[RW]
isAnnouncementPost[RW]
isStickyPost[RW]
name[RW]
notify[RW]
postDate[RW]
postDateFormat[RW]
postDateLong[RW]
postedBy[RW]
postedPerson[RW]
uploadfile[RW]
url[RW]

Public Instance Methods

getCategoryId() click to toggle source
  • Get the category id of the project.

Returns

  • project category id.

# File lib/projects/model/Forum.rb, line 249
def getCategoryId
        return @categoryId
end
getContent() click to toggle source
  • Get the content of the forum.

Returns

  • Content of the forum.

# File lib/projects/model/Forum.rb, line 69
def getContent
        return @content
end
getId() click to toggle source
  • Get the forum id.

Returns

# File lib/projects/model/Forum.rb, line 29
def getId
        return @id
end
getName() click to toggle source
  • Get the forum name.

Returns

# File lib/projects/model/Forum.rb, line 49
def getName
        return @name
end
getNotify() click to toggle source
  • Get the notify of the forum.

Returns

  • notify of the forum.

# File lib/projects/model/Forum.rb, line 269
def getNotify
        return @notify
end
getPostDate() click to toggle source
  • Get the post date of the forum.

Returns

  • Post date in the forum.

# File lib/projects/model/Forum.rb, line 169
def getPostDate
        return @postDate
end
getPostDateFormat() click to toggle source
  • Get the date format of the post in the forum.

Returns

  • Date format of the post in the forum.

# File lib/projects/model/Forum.rb, line 189
def getPostDateFormat
        return @postDateFormat
end
getPostDateLong() click to toggle source
  • Get the date of the post in forum.

Returns

  • Date of the post in the forum.

# File lib/projects/model/Forum.rb, line 209
def getPostDateLong
        return @postDateLong
end
getPostedBy() click to toggle source
  • Get the id of the posted User.

Returns

# File lib/projects/model/Forum.rb, line 129
def getPostedBy
        return @postedBy
end
getPostedPerson() click to toggle source
  • Get the posted User name.

Returns

# File lib/projects/model/Forum.rb, line 149
def getPostedPerson
        return @postedPerson
end
getURL() click to toggle source
  • Get the forum URL.

Returns

# File lib/projects/model/Forum.rb, line 229
def getURL
        return @url
end
getUploadfile() click to toggle source
  • Get the uploaded file list.

Returns

  • ArrayList of uploaded file for the post in the forum.

# File lib/projects/model/Forum.rb, line 289
def getUploadfile
        return @uploadfile
end
setCategoryId(categoryId) click to toggle source
  • Set the category id of the project.

Parameters

  • categoryId
    • ID of the project category.

# File lib/projects/model/Forum.rb, line 239
def setCategoryId(categoryId)
        @categoryId = categoryId
end
setContent(content) click to toggle source
  • Set the content of the forum.

Parameters

  • content
    • Content of the forum.

# File lib/projects/model/Forum.rb, line 59
def setContent(content)
        @content = content
end
setId(id) click to toggle source
  • Set the forum id.

Parameters

  • id
    • ID of the forum.

# File lib/projects/model/Forum.rb, line 19
def setId(id)
        @id = id
end
setIsAnnouncementPost(isAnnouncementPost) click to toggle source
  • Set is announcement post or not.

Parameters

  • isAnnouncementPost
    • is the post announcement or not.

# File lib/projects/model/Forum.rb, line 99
def setIsAnnouncementPost(isAnnouncementPost)
        @isAnnouncementPost = isAnnouncementPost
end
setIsStickyPost(isStickyPost) click to toggle source
  • Set the forum is a sticky post or not.

Parameters

  • isStickyPost
    • Is the forum in a sticky post or not.

# File lib/projects/model/Forum.rb, line 79
def setIsStickyPost(isStickyPost)
        @isStickyPost = isStickyPost
end
setName(name) click to toggle source
  • Set the forum name.

Parameters

  • name
    • Name of the forum.

# File lib/projects/model/Forum.rb, line 39
def setName(name)
        @name = name
end
setNotify(notify) click to toggle source
  • Set the notify in the forum.

Parameters

  • notify
    • Notify in the forum.

# File lib/projects/model/Forum.rb, line 259
def setNotify(notify)
        @notify = notify
end
setPostDate(postDate) click to toggle source
  • Set the post date of the forum.

Parameters

  • postDate
    • Date of the post in the forum.

# File lib/projects/model/Forum.rb, line 159
def setPostDate(postDate)
        @postDate = postDate
end
setPostDateFormat(postDateFormat) click to toggle source
  • Set the date format of the post in the forum.

Parameters

  • postDate
    • Date format of the post in the forum.

# File lib/projects/model/Forum.rb, line 179
def setPostDateFormat(postDateFormat)
        @postDateFormat = postDateFormat
end
setPostDateLong(postDateLong) click to toggle source
  • Set the date of the post the forum.

Parameters

  • postDateLong
    • Date of the post in the forum.

# File lib/projects/model/Forum.rb, line 199
def setPostDateLong(postDateLong)
        @postDateLong = postDateLong
end
setPostedBy(postedBy) click to toggle source
  • Set the id of the posted User.

Parameters

  • postedBy
    • Id of the User who posted the post.

# File lib/projects/model/Forum.rb, line 119
def setPostedBy(postedBy)
        @postedBy = postedBy
end
setPostedPerson(postedPerson) click to toggle source
  • Set the posted User name.

Parameters

  • postedPerson
# File lib/projects/model/Forum.rb, line 139
def setPostedPerson(postedPerson)
        @postedPerson = postedPerson
end
setURL(url) click to toggle source
  • Set the forum URL.

Parameters

  • url
    • URL for the forum.

# File lib/projects/model/Forum.rb, line 219
def setURL(url)
        @url = url
end
setUploadfile(uploadfile) click to toggle source
  • Set the upload file list.

Parameters

  • uploadfile
    • ArrayList of Uploading file in the forum.

# File lib/projects/model/Forum.rb, line 279
def setUploadfile(uploadfile)
        @uploadfile = uploadfile
end
toParamMAP() click to toggle source
  • Convert the Forum object into HashMap.

Returns

  • HashMap object.

# File lib/projects/model/Forum.rb, line 299
def toParamMAP
        requestBody = Hash.new
        
        if name != nil
                requestBody["name"] = name
        end
        if content != nil
                requestBody["content"] = content
        end
        if categoryId != nil && categoryId.to_i > 0
                requestBody["category_id"] = categoryId
        end
        if notify != nil
                requestBody["notify"] = notify
        end
        
        
        return requestBody
end