Class Folder

All Implemented Interfaces:
DbPojo

@Entity(name="Folder")
public class Folder
extends NaturalIdPojo
Represents a folder object returned by the Nessus API in /scans
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static Dao<Folder> dao
    The dao for Folder
    static org.apache.logging.log4j.Logger logger
    The logger for Folder
  • Constructor Summary

    Constructors 
    Constructor Description
    Folder()
    Instantiates a new Folder.
    Folder​(int id, java.lang.String name, java.lang.String type, java.lang.Integer defaultTag, java.lang.Integer custom, java.lang.Integer unreadCount)
    Instantiates a new Folder.
  • Method Summary

    Modifier and Type Method Description
    void _prepare()
    Perform any operations necessary to prepare this pojo for insertion or updating in the database
    java.lang.Integer getCustom()
    Gets custom.
    java.lang.Integer getDefaultTag()
    Gets default tag.
    java.lang.String getName()
    Gets name.
    java.lang.String getType()
    Gets type.
    java.lang.Integer getUnreadCount()
    Gets unread count.
    void setCustom​(java.lang.Integer custom)
    Sets custom.
    void setDefaultTag​(java.lang.Integer defaultTag)
    Sets default tag.
    void setName​(java.lang.String name)
    Sets name.
    void setType​(java.lang.String type)
    Sets type.
    void setUnreadCount​(java.lang.Integer unreadCount)
    Sets unread count.

    Methods inherited from class tenapull.data.entity.template.NaturalIdPojo

    __set, equals, getId, hashCode, setId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface tenapull.data.entity.template.DbPojo

    toJsonNode, toJsonString
  • Field Details

    • dao

      public static final Dao<Folder> dao
      The dao for Folder
    • logger

      public static final org.apache.logging.log4j.Logger logger
      The logger for Folder
  • Constructor Details

    • Folder

      public Folder()
      Instantiates a new Folder.
    • Folder

      public Folder​(int id, java.lang.String name, java.lang.String type, java.lang.Integer defaultTag, java.lang.Integer custom, java.lang.Integer unreadCount)
      Instantiates a new Folder.
      Parameters:
      id - the id
      name - the name
      type - the type
      defaultTag - the default tag
      custom - the custom
      unreadCount - the unread count
  • Method Details

    • _prepare

      public void _prepare()
      Description copied from interface: DbPojo
      Perform any operations necessary to prepare this pojo for insertion or updating in the database
    • getName

      public java.lang.String getName()
      Gets name.
      Returns:
      the name
    • setName

      public void setName​(java.lang.String name)
      Sets name.
      Parameters:
      name - the name
    • getType

      public java.lang.String getType()
      Gets type.
      Returns:
      the type
    • setType

      public void setType​(java.lang.String type)
      Sets type.
      Parameters:
      type - the type
    • getDefaultTag

      public java.lang.Integer getDefaultTag()
      Gets default tag.
      Returns:
      the default tag
    • setDefaultTag

      public void setDefaultTag​(java.lang.Integer defaultTag)
      Sets default tag.
      Parameters:
      defaultTag - the default tag
    • getCustom

      public java.lang.Integer getCustom()
      Gets custom.
      Returns:
      the custom
    • setCustom

      public void setCustom​(java.lang.Integer custom)
      Sets custom.
      Parameters:
      custom - the custom
    • getUnreadCount

      public java.lang.Integer getUnreadCount()
      Gets unread count.
      Returns:
      the unread count
    • setUnreadCount

      public void setUnreadCount​(java.lang.Integer unreadCount)
      Sets unread count.
      Parameters:
      unreadCount - the unread count