Class AnnotationTypeCategory

    • Method Detail

      • getNew

        public static AnnotationTypeCategory getNew​(DbControl dc)
                                             throws BaseException
        Creates a new AnnotationTypeCategory item.
        Parameters:
        dc - The DbControl which will be used for permission checking and database access
        Returns:
        The new AnnotationType item
        Throws:
        BaseException - If there is an error
      • 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
        Returns:
        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
        Returns:
        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
        Parameters:
        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
        Parameters:
        itemType - Optional, limit the annotation types to those that are enabled for the specified item
        Returns:
        An ItemQuery object