|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jamasoftware.contour.domain.DocumentTypeCategory
@Entity public class DocumentTypeCategory
| Field Summary | |
|---|---|
static DocumentTypeCategory |
ATTACHMENT
|
static java.util.List<DocumentTypeCategory> |
CHILD_TYPE_CATEGORIES
Child type categories are those that specify the type of children they can contain |
static DocumentTypeCategory |
COMPONENT
|
static DocumentTypeCategory |
CORE
|
static java.util.List<DocumentTypeCategory> |
DOCUMENT_CATEGORIES
Categories that are represented in the back end by Document.java |
static java.util.List<DocumentTypeCategory> |
FOLDER_CATEGORIES
Folder categories are those documents which act as high-level folders. |
static java.util.List<DocumentTypeCategory> |
ITEM_SYNC_NOT_ALLOWED_CATEGORIES
Categories for items that can't be sync'd |
static java.util.List<DocumentTypeCategory> |
NO_RELATIONSHIP_CATEGORIES
System categories that are not allowed to have relationships. |
static java.util.List<DocumentTypeCategory> |
PERMISSION_CATEGORIES
Permission categories are those that can have permissions associated with them |
static DocumentTypeCategory |
SECTION
|
static DocumentTypeCategory |
SET
|
static java.util.List<DocumentTypeCategory> |
SYSTEM_CATEGORIES
System categories are managed by Contour and shouldn't be edited or deleted |
static java.util.List<java.lang.Integer> |
SYSTEM_CATEGORY_IDS
|
static DocumentTypeCategory |
TEST_CASE
|
static java.util.List<DocumentTypeCategory> |
TEST_CENTER_CATEGORIES
Categories of "Test Center" things |
static java.util.List<java.lang.Integer> |
TEST_CENTER_CATEGORY_IDS
|
static DocumentTypeCategory |
TEST_CYCLE
|
static DocumentTypeCategory |
TEST_PLAN
|
static DocumentTypeCategory |
TEST_RUN
|
static DocumentTypeCategory |
TEXT
|
| Fields inherited from interface com.jamasoftware.contour.domain.DomainObjectBase |
|---|
ORGANIZATION_COLUMN_NAME |
| Constructor Summary | |
|---|---|
DocumentTypeCategory()
|
|
DocumentTypeCategory(DocumentTypeCategory dtc)
|
|
DocumentTypeCategory(java.lang.Integer id)
|
|
DocumentTypeCategory(java.lang.Integer id,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
static DocumentTypeCategory |
getDocumentTypeCategoryById(java.lang.Integer id)
|
java.lang.Integer |
getId()
|
java.lang.String |
getName()
|
java.lang.Integer |
getOrganizationId()
|
int |
hashCode()
|
static boolean |
isCategory(DocumentTypeCategory docTypeCategory,
DocumentTypeCategory category)
|
static boolean |
isCategory(DocumentType docType,
DocumentTypeCategory category)
|
static boolean |
isChildTypeCategory(DocumentTypeCategory category)
Given a category id (from DocumentType.getCategory()), returns whether or not the category represents a
type that has a specified child document type. |
static boolean |
isChildTypeType(DocumentType documentType)
Determine if a DocumentType is a childType type |
static boolean |
isFolderCategory(DocumentTypeCategory category)
Given a DocumentType.getCategory(), returns whether or not the category represents a
folder type |
static boolean |
isFolderType(DocumentType documentType)
Determine if a DocumentType is a folder type |
static boolean |
isItemSyncAllowed(DocumentType documentType)
|
static boolean |
isNoItemSyncAllowedCategory(DocumentTypeCategory category)
|
static boolean |
isNoRelationshipCategory(DocumentTypeCategory category)
Given a DocumentType.getCategory(), returns whether or not the category represents a
system type that is not allowed to have relationships |
static boolean |
isNoRelationshipType(DocumentType documentType)
Determine if a DocumentType is a no-relationship type |
static boolean |
isPermissionCategory(DocumentTypeCategory category)
Given a category id (from DocumentType.getCategory()), returns whether or not the category represents a
permission type (where permissions can be specified) |
static boolean |
isPermissionType(DocumentType documentType)
Determine if a DocumentType is a permission type (a "permission" type is any type of document where
permissions are placed) |
static boolean |
isSystemCategory(com.jamasoftware.contour.service.dto.property.DocumentTypeCategoryPropertyDTO category)
|
static boolean |
isSystemType(DocumentType documentType)
Determine if a DocumentType is a system controlled type |
static boolean |
isTestCenterTypeCategory(DocumentTypeCategory category)
|
void |
setId(java.lang.Integer id)
|
void |
setName(java.lang.String name)
|
void |
setOrganizationId(java.lang.Integer organizationId)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DocumentTypeCategory CORE
public static final DocumentTypeCategory ATTACHMENT
public static final DocumentTypeCategory COMPONENT
public static final DocumentTypeCategory SET
public static final DocumentTypeCategory SECTION
public static final DocumentTypeCategory TEXT
public static final DocumentTypeCategory TEST_PLAN
public static final DocumentTypeCategory TEST_CYCLE
public static final DocumentTypeCategory TEST_RUN
public static final DocumentTypeCategory TEST_CASE
public static final java.util.List<DocumentTypeCategory> SYSTEM_CATEGORIES
public static final java.util.List<java.lang.Integer> SYSTEM_CATEGORY_IDS
public static final java.util.List<DocumentTypeCategory> DOCUMENT_CATEGORIES
public static final java.util.List<DocumentTypeCategory> ITEM_SYNC_NOT_ALLOWED_CATEGORIES
public static final java.util.List<DocumentTypeCategory> TEST_CENTER_CATEGORIES
public static final java.util.List<java.lang.Integer> TEST_CENTER_CATEGORY_IDS
public static final java.util.List<DocumentTypeCategory> NO_RELATIONSHIP_CATEGORIES
public static final java.util.List<DocumentTypeCategory> PERMISSION_CATEGORIES
public static final java.util.List<DocumentTypeCategory> CHILD_TYPE_CATEGORIES
public static final java.util.List<DocumentTypeCategory> FOLDER_CATEGORIES
| Constructor Detail |
|---|
public DocumentTypeCategory()
public DocumentTypeCategory(java.lang.Integer id)
public DocumentTypeCategory(java.lang.Integer id,
java.lang.String name)
public DocumentTypeCategory(DocumentTypeCategory dtc)
| Method Detail |
|---|
public static DocumentTypeCategory getDocumentTypeCategoryById(java.lang.Integer id)
public static boolean isSystemType(DocumentType documentType)
DocumentType is a system controlled type
documentType - A document type
public static boolean isSystemCategory(com.jamasoftware.contour.service.dto.property.DocumentTypeCategoryPropertyDTO category)
public static boolean isPermissionType(DocumentType documentType)
DocumentType is a permission type (a "permission" type is any type of document where
permissions are placed)
documentType - The DocumentType
public static boolean isPermissionCategory(DocumentTypeCategory category)
DocumentType.getCategory()), returns whether or not the category represents a
permission type (where permissions can be specified)
category - The category of a DocumentType
public static boolean isChildTypeType(DocumentType documentType)
DocumentType is a childType type
documentType - The DocumentType
public static boolean isChildTypeCategory(DocumentTypeCategory category)
DocumentType.getCategory()), returns whether or not the category represents a
type that has a specified child document type. Documents of a type with this category can expect
Document.getChildDocumentType() to always be populated
category - The category of a DocumentType
public static boolean isFolderType(DocumentType documentType)
DocumentType is a folder type
documentType - The DocumentType
public static boolean isFolderCategory(DocumentTypeCategory category)
DocumentType.getCategory(), returns whether or not the category represents a
folder type
category - The category of a DocumentType
public static boolean isNoRelationshipType(DocumentType documentType)
DocumentType is a no-relationship type
documentType - The DocumentType
public static boolean isNoRelationshipCategory(DocumentTypeCategory category)
DocumentType.getCategory(), returns whether or not the category represents a
system type that is not allowed to have relationships
category - The category of a DocumentType
public static boolean isNoItemSyncAllowedCategory(DocumentTypeCategory category)
public static boolean isItemSyncAllowed(DocumentType documentType)
public static boolean isTestCenterTypeCategory(DocumentTypeCategory category)
public static boolean isCategory(DocumentType docType,
DocumentTypeCategory category)
public static boolean isCategory(DocumentTypeCategory docTypeCategory,
DocumentTypeCategory category)
public java.lang.Integer getId()
getId in interface DomainObjectBasepublic void setId(java.lang.Integer id)
setId in interface DomainObjectBasepublic java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.Integer getOrganizationId()
getOrganizationId in interface DomainObjectBasegetOrganizationId in interface OrganizationAwarepublic void setOrganizationId(java.lang.Integer organizationId)
setOrganizationId in interface DomainObjectBasepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||