public class AnnotationTypeCategory extends CommonItem implements Registered
AnnotationType
:s.
An annotation type can belong to more than one category.
AnnotationType
Modifier and Type | Field and Description |
---|---|
static Item |
TYPE
The type of item represented by this class.
|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
AnnotationTypeCategory(AnnotationTypeCategoryData annotationTypeCategoryData) |
Modifier and Type | Method and Description |
---|---|
ItemQuery<AnnotationType> |
getAnnotationTypes(Item itemType)
Gets a query that returns the annotation types that are members of this category
|
static AnnotationTypeCategory |
getById(DbControl dc,
int id)
Get an
AnnotationTypeCategory item when you know the id. |
(package private) AnnotationTypeCategoryData |
getData()
Get the
BasicData object that holds all data for this item. |
Date |
getEntryDate()
Get the date that the item was registered in the database.
|
static AnnotationTypeCategory |
getNew(DbControl dc)
Creates a new
AnnotationTypeCategory item. |
static ItemQuery<AnnotationTypeCategory> |
getQuery()
Get a
ItemQuery object configured to retrieve AnnotationTypeCategory
items. |
Item |
getType()
Get the type of item represented by the object.
|
getDescription, getName, getRemovedBy, isRemoved, setDescription, setName, setRemoved
getItemKey, getProjectKey, initPermissions, isShared, onBeforeCommit, setItemKey, setProjectKey
getOwner, isOwner, setOwner, takeOwnership
addAnnotatableParents, addUsingItems, addUsingItems, checkPermission, equals, getBasicData, getDbControl, getId, getPermissions, getPluginPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onRollback, setDbControl, setProjectDefaults, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
checkPermission, getPermissions, hasPermission
getOwner, isOwner, setOwner, takeOwnership
public static final Item TYPE
Item.ANNOTATIONTYPECATEGORY
,
getType()
AnnotationTypeCategory(AnnotationTypeCategoryData annotationTypeCategoryData)
public static AnnotationTypeCategory getNew(DbControl dc) throws BaseException
AnnotationTypeCategory
item.dc
- The DbControl
which will be used for
permission checking and database accessAnnotationType
itemBaseException
- If there is an errorpublic static AnnotationTypeCategory getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
AnnotationTypeCategory
item when you know the id.dc
- The DbControl
which will be used for
permission checking and database accessid
- The id of the item to loadAnnotationTypeCategory
itemItemNotFoundException
- If an item with the specified id is not foundPermissionDeniedException
- If the logged in user doesn't
have Permission.READ
permission to the itemBaseException
- If there is another errorpublic static ItemQuery<AnnotationTypeCategory> getQuery()
ItemQuery
object configured to retrieve AnnotationTypeCategory
items.ItemQuery
objectAnnotationTypeCategoryData getData()
BasicItem
BasicData
object that holds all data for this item.getData
in class CommonItem
public Item getType()
Identifiable
Item
enumeration.getType
in interface Identifiable
public Date getEntryDate()
Registered
getEntryDate
in interface Registered
public ItemQuery<AnnotationType> getAnnotationTypes(Item itemType)
itemType
- Optional, limit the annotation types to those
that are enabled for the specified itemItemQuery
object