class Projects::Model::Document

Attributes

contenttype[RW]
description[RW]
filename[RW]
folder[RW]
folderId[RW]
id[RW]
notify[RW]
tags[RW]
uploaddoc[RW]
url[RW]
versions[RW]

Public Instance Methods

getContenttype() click to toggle source
  • Get the content type.

Returns

  • Content type of the file.

# File lib/projects/model/Document.rb, line 70
def getContenttype
        return @contenttype
end
getDescription() click to toggle source
  • Get the description of the document.

Returns

# File lib/projects/model/Document.rb, line 170
def getDescription
        return @description
end
getFilename() click to toggle source
  • Get the file name.

Returns

  • File name.

# File lib/projects/model/Document.rb, line 50
def getFilename
        return @filename
end
getFolder() click to toggle source
  • Get the folder object.

Returns

# File lib/projects/model/Document.rb, line 230
def getFolder
        return @folder
end
getFolderId() click to toggle source
  • Get the folder id.

Returns

# File lib/projects/model/Document.rb, line 150
def getFolderId
        return @folderId
end
getId() click to toggle source
  • Get the document id.

Returns

# File lib/projects/model/Document.rb, line 29
def getId
        return @id
end
getNotify() click to toggle source
  • Get the notify for the document.

Returns

  • Notify for the document.

# File lib/projects/model/Document.rb, line 210
def getNotify
        return @notify
end
getTags() click to toggle source
  • Get the tags for the document.

Returns

  • Tags for the document.

# File lib/projects/model/Document.rb, line 190
def getTags
        return @tags
end
getURL() click to toggle source
  • Get the document URL.

Returns

# File lib/projects/model/Document.rb, line 90
def getURL
        return @url
end
getUploaddoc() click to toggle source
  • Get the upload document file.

Returns

  • ArrayList of upload document file.

# File lib/projects/model/Document.rb, line 130
def getUploaddoc
        return @uploaddoc
end
getVersions() click to toggle source
  • Get the document version.

Returns

# File lib/projects/model/Document.rb, line 110
def getVersions
        return @versions
end
setContenttype(contenttype) click to toggle source
  • Set the content type.

Parameters

  • contenttype
    • Content type of the file.

# File lib/projects/model/Document.rb, line 60
def setContenttype(contenttype)
        @contenttype = contenttype
end
setDescription(description) click to toggle source
  • Set the description of the document.

Parameters

  • description
    • Description of the document.

# File lib/projects/model/Document.rb, line 160
def setDescription(description)
        @description = description
end
setFilename(filename) click to toggle source
  • Set the file name.

Parameters

  • filename
    • Name of the file.

# File lib/projects/model/Document.rb, line 39
def setFilename(filename)
        @filename = filename
end
setFolder(folder) click to toggle source
  • Set the folder.

Parameters

# File lib/projects/model/Document.rb, line 220
def setFolder(folder)
        @folder = folder
end
setFolderId(folderId) click to toggle source
  • Set the folder id.

Parameters

  • folderId
    • ID of the folder.

# File lib/projects/model/Document.rb, line 140
def setFolderId(folderId)
        @folderId = folderId
end
setId(id) click to toggle source
  • Set the document id.

Parameters

  • id
    • ID of the document.

# File lib/projects/model/Document.rb, line 19
def setId(id)
        @id = id
end
setNotify(notify) click to toggle source
  • Set the notify for the document.

Parameters

  • notify
    • Notify for the document.

# File lib/projects/model/Document.rb, line 200
def setNotify(notify)
        @notify = notify
end
setTags(tags) click to toggle source
  • Set the tags for the document.

Parameters

  • tags
    • Tags for the document.

# File lib/projects/model/Document.rb, line 180
def setTags(tags)
        @tags = tags
end
setURL(url) click to toggle source
  • Set the document URL.

Parameters

  • url
    • URL for the document.

# File lib/projects/model/Document.rb, line 80
def setURL(url)
        @url = url
end
setUploaddoc(uploaddoc) click to toggle source
  • Set the upload document file.

Parameters

  • uploaddoc
    • ArrayList of the documents being uploaded.

# File lib/projects/model/Document.rb, line 120
def setUploaddoc(uploaddoc)
        @uploaddoc = uploaddoc
end
setVersions(versions) click to toggle source
  • Set the document version.

Parameters

  • versions
# File lib/projects/model/Document.rb, line 100
def setVersions(versions)
        @versions = versions
end
toParamMAP() click to toggle source
  • Convert the Document object into HashMap.

Returns

  • HashMap object.

# File lib/projects/model/Document.rb, line 240
def toParamMAP
        requestBody = Hash.new
        
        if folderId != nil && folderId.to_i > 0
                requestBody["folder_id"] = folderId
        end
        if description != nil
                requestBody["description"] = description
        end
        if tags != nil
                requestBody["tags"] = tags
        end
        if notify != nil && notify.to_i > 0
                requestBody["notify"] = notify
        end
        
        return requestBody
end