public class WsItem extends Object
Constructor and Description |
---|
WsItem()
Creates an empty WsItem object.
|
WsItem(String name,
String description,
Integer documentTypeId,
Integer parentId)
Creates a new WsItem object with the given values.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getChildDocumentTypeId()
Gets the id of the item's child document type.
|
Date |
getCreatedDate()
Gets the date the item was created.
|
Boolean |
getCurrentUserWritePermissions()
Gets whether the current user has write permissions for the item.
|
String |
getDescription()
Gets the description of the item.
|
WsDocumentTypeCategory |
getDocTypeCategory()
Gets the category of this item's document type.
|
Integer |
getDocumentTypeId()
Gets the
WsDocumentType id for this item |
WsField[] |
getFields()
Gets the item's fields.
|
String |
getGlobalId()
Gets the global Id of this item.
|
Integer |
getGlobalSortOrder()
Gets the global sort order of this item in the project tree.
|
Boolean |
getHasChildren()
Gets whether or not this item has any children
|
Integer |
getId()
Gets the item's id.
|
Integer |
getIndent()
Gets the indent value of this item in the project tree.
|
Boolean |
getIsStructureOnly()
When searching with a filter, users can choose to include items that are necessary to maintain the
heirarchy of the Contour tree, but are not in the filter results.
|
Date |
getLastActivityDate()
Gets the last date this item had an activity associated with it.
|
Date |
getModifiedDate()
Gets the date the item was modified.
|
String |
getName()
Gets the item name.
|
Integer |
getParentId()
Gets the id of the item's parent (Can be null).
|
Integer |
getProjectId()
Gets the id of the project this item belongs to.
|
String |
getSequence()
Gets the sequence number of this item.
|
Integer |
getSortOrder()
Gets the sort order of this item.
|
List<WsTestCaseStep> |
getTestCaseSteps()
If the item is a Test Case, this will contain the steps for the Test Case.
|
void |
setChildDocumentTypeId(Integer childDocumentTypeId)
Sets the id of the item's child document type.
|
void |
setCreatedDate(Date createdDate)
Sets the date the item was created.
|
void |
setCurrentUserWritePermissions(Boolean currentUserWritePermissions) |
void |
setDescription(String description)
Sets the description of the item.
|
void |
setDocTypeCategory(WsDocumentTypeCategory docTypeCategory) |
void |
setDocumentTypeId(Integer documentTypeId)
Set the
WsDocumentType id for this item. |
void |
setFields(WsField[] fields)
Sets the item's fields.
|
void |
setGlobalId(String globalId) |
void |
setGlobalSortOrder(Integer globalSortOrder) |
void |
setHasChildren(Boolean hasChildren) |
void |
setId(Integer id) |
void |
setIndent(Integer indent) |
void |
setIsStructureOnly(Boolean isStructureOnly) |
void |
setLastActivityDate(Date lastActivityDate)
Sets the last date this item had an activity associated with it.
|
void |
setModifiedDate(Date modifiedDate)
Sets the date this item was modified.
|
void |
setName(String name)
Sets the name of the item.
|
void |
setParentId(Integer parentId)
Sets the id of the item's parent.
|
void |
setProjectId(Integer projectId)
Sets the id of the project this item belongs to.
|
void |
setSequence(String sequence) |
void |
setSortOrder(Integer sortOrder) |
void |
setTestCaseSteps(List<WsTestCaseStep> testCaseSteps) |
String |
toString()
Gets a string representation of this item.
|
public WsItem()
public WsItem(String name, String description, Integer documentTypeId, Integer parentId)
name
- name of the itemdescription
- description of the item (can be null)documentTypeId
- id of the WsDocumentType
the item is inparentId
- id of the parent of the item (can be null)public Integer getId()
public void setId(Integer id)
public Integer getDocumentTypeId()
WsDocumentType
id for this itempublic void setDocumentTypeId(Integer documentTypeId)
WsDocumentType
id for this item.documentTypeId
- The id of the type to set this item aspublic String getName()
public void setName(String name)
name
- name to set to itempublic String getDescription()
public void setDescription(String description)
description
- description of the itempublic Date getCreatedDate()
public void setCreatedDate(Date createdDate)
createdDate
- date item was createdpublic Date getModifiedDate()
public void setModifiedDate(Date modifiedDate)
modifiedDate
- date item was modifiedpublic Date getLastActivityDate()
public void setLastActivityDate(Date lastActivityDate)
lastActivityDate
- the last date this item had an activity associated with itpublic Integer getParentId()
public void setParentId(Integer parentId)
parentId
- id of an item to be the parent of this item. The parent must be a folder.public void setFields(WsField[] fields)
fields
- an array of WsField
spublic Integer getProjectId()
public void setProjectId(Integer projectId)
projectId
- id of the project this item should belong topublic WsDocumentTypeCategory getDocTypeCategory()
public void setDocTypeCategory(WsDocumentTypeCategory docTypeCategory)
public Integer getChildDocumentTypeId()
public void setChildDocumentTypeId(Integer childDocumentTypeId)
childDocumentTypeId
- id of the document type this item can contain (only used for Sets and Folders)public Integer getSortOrder()
public void setSortOrder(Integer sortOrder)
public Integer getGlobalSortOrder()
public void setGlobalSortOrder(Integer globalSortOrder)
public Integer getIndent()
public void setIndent(Integer indent)
public String getSequence()
public void setSequence(String sequence)
public Boolean getHasChildren()
public void setHasChildren(Boolean hasChildren)
public Boolean getCurrentUserWritePermissions()
public void setCurrentUserWritePermissions(Boolean currentUserWritePermissions)
public Boolean getIsStructureOnly()
public void setIsStructureOnly(Boolean isStructureOnly)
public String getGlobalId()
public void setGlobalId(String globalId)
public List<WsTestCaseStep> getTestCaseSteps()
public void setTestCaseSteps(List<WsTestCaseStep> testCaseSteps)
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.