com.jamasoftware.contour.domain
Class ContourItem
java.lang.Object
com.jamasoftware.contour.domain.DomainObjectBaseSupport
com.jamasoftware.contour.domain.ContourItem
- All Implemented Interfaces:
- DomainObject, DomainObjectBase, OrganizationAware, java.io.Serializable
- Direct Known Subclasses:
- Document, TestCycle, TestPlan, TestRun
@Entity
@Indexed(index="index/contouritem")
@ClassBridge(name="contourItemFields",
index=TOKENIZED,
store=YES,
impl=com.jamasoftware.contour.util.search.indexer.ContourItemIndexer.class)
public abstract class ContourItem- extends DomainObjectBaseSupport
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ENTITYTYPE_VALUE
public static final java.lang.String DEFAULT_ENTITYTYPE_VALUE
id
protected java.lang.Integer id
name
protected java.lang.String name
description
protected java.lang.String description
documentKey
protected java.lang.String documentKey
legacyKey
protected java.lang.String legacyKey
project
protected com.jamasoftware.contour.project.domain.Project project
documentType
protected DocumentType documentType
active
protected boolean active
hibVersion
protected java.lang.Integer hibVersion
createdDate
protected java.util.Date createdDate
modifiedDate
protected java.util.Date modifiedDate
createdBy
protected java.lang.Integer createdBy
modifiedBy
protected java.lang.Integer modifiedBy
attachment
protected java.lang.Integer attachment
locked
protected boolean locked
lockedBy
protected User lockedBy
lockedDate
protected java.util.Date lockedDate
customFields
protected java.util.List<DocumentCustomFieldValue> customFields
versions
protected java.util.List<Version> versions
CONTOURITEM_FIELD_NAMES
public static final java.util.List<java.lang.String> CONTOURITEM_FIELD_NAMES
ContourItem
public ContourItem()
accept
public abstract <R,P> R accept(ContourItemVisitor<R,P> visitor,
P p)
- Visitor pattern accept method
- Type Parameters:
R - The return typeP - The optional parameter type (can be Void)- Parameters:
visitor - The ContourItemVisitorp - The parameter
- Returns:
- Some return value of type R
getId
@DocumentId
public java.lang.Integer getId()
setId
public void setId(java.lang.Integer id)
getEntityType
public java.lang.String getEntityType()
setEntityType
public void setEntityType(java.lang.String entityType)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getLegacyKey
public java.lang.String getLegacyKey()
setLegacyKey
public void setLegacyKey(java.lang.String legacyKey)
getDocumentKey
public java.lang.String getDocumentKey()
setDocumentKey
public void setDocumentKey(java.lang.String documentKey)
getActive
@Field(name="active")
@FieldBridge(impl=com.jamasoftware.contour.util.search.bridge.BooleanFieldBridge.class)
public boolean getActive()
setActive
public void setActive(boolean active)
getProject
@Field(name="project")
@FieldBridge(impl=com.jamasoftware.contour.util.search.bridge.ProjectFieldBridge.class)
public com.jamasoftware.contour.project.domain.Project getProject()
setProject
public void setProject(com.jamasoftware.contour.project.domain.Project project)
getDocumentType
@Field(name="documentType")
@FieldBridge(impl=com.jamasoftware.contour.util.search.bridge.DocumentTypeFieldBridge.class)
public DocumentType getDocumentType()
setDocumentType
public void setDocumentType(DocumentType documentType)
getCustomFields
public java.util.List<DocumentCustomFieldValue> getCustomFields()
setCustomFields
public void setCustomFields(java.util.List<DocumentCustomFieldValue> customFields)
getCurrentVersion
public Version getCurrentVersion()
- Returns:
- the documentVersion
removeDocumentVersion
public void removeDocumentVersion()
addDocumentVersion
public void addDocumentVersion(Version version)
getVersions
public java.util.List<Version> getVersions()
setVersions
public void setVersions(java.util.List<Version> versions)
getHibVersion
public java.lang.Integer getHibVersion()
setHibVersion
public void setHibVersion(java.lang.Integer hibVersion)
getCreatedDate
@Field(name="createdDate")
@FieldBridge(impl=com.jamasoftware.contour.util.search.bridge.DateFieldBridge.class)
public java.util.Date getCreatedDate()
setCreatedDate
public void setCreatedDate(java.util.Date createdDate)
getModifiedDate
@Field(name="modifiedDate")
@FieldBridge(impl=com.jamasoftware.contour.util.search.bridge.DateFieldBridge.class)
public java.util.Date getModifiedDate()
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
getCreatedBy
@Field(name="createdBy")
@FieldBridge(impl=com.jamasoftware.contour.util.search.bridge.UserIdFieldBridge.class)
public java.lang.Integer getCreatedBy()
setCreatedBy
public void setCreatedBy(java.lang.Integer createdBy)
getModifiedBy
@Field(name="modifiedBy")
@FieldBridge(impl=com.jamasoftware.contour.util.search.bridge.UserIdFieldBridge.class)
public java.lang.Integer getModifiedBy()
setModifiedBy
public void setModifiedBy(java.lang.Integer modifiedBy)
getAttachment
public java.lang.Integer getAttachment()
setAttachment
public void setAttachment(java.lang.Integer attachment)
getLocked
public boolean getLocked()
setLocked
public void setLocked(boolean locked)
getLockedBy
public User getLockedBy()
setLockedBy
public void setLockedBy(User lockedBy)
getLockedDate
public java.util.Date getLockedDate()
setLockedDate
public void setLockedDate(java.util.Date lockedDate)
getOrganizationId
public java.lang.Integer getOrganizationId()
setOrganizationId
public void setOrganizationId(java.lang.Integer organizationId)
getXmlToString
public java.lang.String getXmlToString()
getContent
public java.lang.String getContent()
- Returns:
- The content of this class for use in indexing
getIsStructureOnly
public java.lang.Boolean getIsStructureOnly()
setIsStructureOnly
public void setIsStructureOnly(java.lang.Boolean isStructureOnly)
getIsFolder
public boolean getIsFolder()
getChildDocumentType
public DocumentType getChildDocumentType()
Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.