Class AnnotationTypeCategory

All Implemented Interfaces:
AccessControlled, Identifiable, Nameable, Ownable, Registered, Removable, Shareable

public class AnnotationTypeCategory
extends CommonItem
implements Registered
Objects of this class defines an annotation type category. The categories are used to group related AnnotationType:s.

An annotation type can belong to more than one category.

Dominic Oyeniran
See Also:
Last modified
$Date: 2006-05-11 (Thu, 11 May 2006) $
  • Field Details

  • Constructor Details

  • Method Details

    • getNew

      public static AnnotationTypeCategory getNew​(DbControl dc) throws BaseException
      Creates a new AnnotationTypeCategory item.
      dc - The DbControl which will be used for permission checking and database access
      The new AnnotationType item
      BaseException - If there is an error
    • getById

      Get an AnnotationTypeCategory item when you know the id.
      dc - The DbControl which will be used for permission checking and database access
      id - The id of the item to load
      The AnnotationTypeCategory item
      ItemNotFoundException - If an item with the specified id is not found
      PermissionDeniedException - If the logged in user doesn't have Permission.READ permission to the item
      BaseException - If there is another error
    • getQuery

      public static ItemQuery<AnnotationTypeCategory> getQuery()
      Get a ItemQuery object configured to retrieve AnnotationTypeCategory items.
      An ItemQuery object
    • getData

      Description copied from class: BasicItem
      Get the BasicData object that holds all data for this item.
      getData in class CommonItem
    • getType

      public Item getType()
      Description copied from interface: Identifiable
      Get the type of item represented by the object. The returned value is one of the values defined in the Item enumeration.
      Specified by:
      getType in interface Identifiable
      A value indicating the type of item
    • getEntryDate

      public Date getEntryDate()
      Description copied from interface: Registered
      Get the date that the item was registered in the database.
      Specified by:
      getEntryDate in interface Registered
      A date or null if this is not known
    • setEntryDate

      public void setEntryDate​(Date entryDate)
      Description copied from interface: Registered
      Set the date the entry was registered in the database. Implementations should only allow this property to be set before the item is first stored in the database. The intention of this method is to facilitate export/import of data between server.
      Specified by:
      setEntryDate in interface Registered
      entryDate - A date or null to use today's date
    • getAnnotationTypes

      public ItemQuery<AnnotationType> getAnnotationTypes​(Item itemType)
      Gets a query that returns the annotation types that are members of this category
      itemType - Optional, limit the annotation types to those that are enabled for the specified item
      An ItemQuery object