com.jamasoftware.contour.domain
Class ObjectType

java.lang.Object
  extended by com.jamasoftware.contour.domain.DomainObjectBaseSupport
      extended by com.jamasoftware.contour.domain.DomainObjectSupport
          extended by com.jamasoftware.contour.domain.ObjectType
All Implemented Interfaces:
DomainObject, DomainObjectBase, OrganizationAware, java.io.Serializable

@Entity
public class ObjectType
extends DomainObjectSupport

Object Type definition. This is referred by ACL permissions and events.

Author:
sean
See Also:
Serialized Form

Nested Class Summary
static class ObjectType.ObjectTypeEnum
           
 
Field Summary
static int Anonymous
           
static int Attachment
           
static int Baseline
           
static int ChangeRequest
           
static int Comment
           
static int DocAttachment
           
static int DocTag
           
static int Document
           
static int DocumentGroup
           
static int DocumentType
           
static java.util.Map<java.lang.Integer,java.lang.Class<? extends DomainObjectBase>> objectTypeToClassMap
           
static int Organization
           
static int Project
           
static int Relationship
           
static int Release
           
static int Review
           
static int Revision
           
static int RevisionItem
           
static java.util.Map<java.lang.Integer,java.lang.Integer> scopeToObjectTypeMap
           
static int System
           
static int Tag
           
static int Test
           
static int TestCycle
           
static int TestPlan
           
static int TestRun
           
static int Url
           
static int User
           
 
Fields inherited from interface com.jamasoftware.contour.domain.DomainObjectBase
ORGANIZATION_COLUMN_NAME
 
Constructor Summary
ObjectType()
           
 
Method Summary
static java.lang.Integer getAclObjectTypeForDomainName(java.lang.String domainName)
           
 java.lang.Boolean getActive()
           
static java.lang.Class<? extends DomainObjectBase> getClassForObjectType(java.lang.Integer objType)
           
 java.lang.String getDescription()
           
static ObjectType.ObjectTypeEnum getEnumFor(int objectType)
           
 java.lang.Integer getId()
           
 java.lang.String getName()
           
static java.lang.Integer getObjectTypeForClass(java.lang.Class<? extends DomainObjectBase> domainClass)
           
static java.lang.Integer getObjectTypeForDomainObject(DomainObjectBase domainObj)
           
static java.lang.Integer getObjectTypeForScope(java.lang.Integer scope)
           
 java.lang.Integer getOrganizationId()
           
 java.lang.Integer getSortOrder()
           
 java.lang.String getXmlToString()
           
static boolean isContourItemType(java.lang.Integer objectTypeId)
           
 void setActive(java.lang.Boolean active)
           
 void setDescription(java.lang.String description)
           
 void setId(java.lang.Integer id)
           
 void setName(java.lang.String displayDescription)
           
 void setOrganizationId(java.lang.Integer organizationId)
           
 void setSortOrder(java.lang.Integer sortOrder)
           
 java.lang.String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class com.jamasoftware.contour.domain.DomainObjectSupport
getCreatedBy, getCreatedDate, getModifiedBy, getModifiedDate, setCreatedBy, setCreatedDate, setModifiedBy, setModifiedDate
 
Methods inherited from class com.jamasoftware.contour.domain.DomainObjectBaseSupport
equals, hashCode, isNewObject, obtainAclObjectIdentity
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

System

public static final int System

Organization

public static final int Organization

Project

public static final int Project

DocumentGroup

public static final int DocumentGroup

Document

public static final int Document

User

public static final int User

Relationship

public static final int Relationship

Comment

public static final int Comment

DocTag

public static final int DocTag

Tag

public static final int Tag

DocAttachment

public static final int DocAttachment

Attachment

public static final int Attachment

Url

public static final int Url

Test

public static final int Test

Release

public static final int Release

Baseline

public static final int Baseline

ChangeRequest

public static final int ChangeRequest

Review

public static final int Review

Revision

public static final int Revision

DocumentType

public static final int DocumentType

RevisionItem

public static final int RevisionItem

TestPlan

public static final int TestPlan

TestCycle

public static final int TestCycle

TestRun

public static final int TestRun

Anonymous

public static final int Anonymous

scopeToObjectTypeMap

public static final java.util.Map<java.lang.Integer,java.lang.Integer> scopeToObjectTypeMap

objectTypeToClassMap

public static final java.util.Map<java.lang.Integer,java.lang.Class<? extends DomainObjectBase>> objectTypeToClassMap
Constructor Detail

ObjectType

public ObjectType()
Method Detail

getObjectTypeForClass

public static java.lang.Integer getObjectTypeForClass(java.lang.Class<? extends DomainObjectBase> domainClass)

getObjectTypeForDomainObject

public static java.lang.Integer getObjectTypeForDomainObject(DomainObjectBase domainObj)

getAclObjectTypeForDomainName

public static java.lang.Integer getAclObjectTypeForDomainName(java.lang.String domainName)

getObjectTypeForScope

public static java.lang.Integer getObjectTypeForScope(java.lang.Integer scope)

getClassForObjectType

public static java.lang.Class<? extends DomainObjectBase> getClassForObjectType(java.lang.Integer objType)

isContourItemType

public static boolean isContourItemType(java.lang.Integer objectTypeId)

getEnumFor

public static ObjectType.ObjectTypeEnum getEnumFor(int objectType)

getId

@DocumentId
public java.lang.Integer getId()

setId

public void setId(java.lang.Integer id)

getName

@Field(name="name",
       index=TOKENIZED,
       store=YES)
public java.lang.String getName()

setName

public void setName(java.lang.String displayDescription)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getSortOrder

public java.lang.Integer getSortOrder()

setSortOrder

public void setSortOrder(java.lang.Integer sortOrder)

getActive

public java.lang.Boolean getActive()

setActive

public void setActive(java.lang.Boolean active)

getOrganizationId

public java.lang.Integer getOrganizationId()

setOrganizationId

public void setOrganizationId(java.lang.Integer organizationId)

toString

public java.lang.String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.

getXmlToString

public java.lang.String getXmlToString()


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.