Interface IThingDescQuery


public interface IThingDescQuery
  • Method Summary

    Modifier and Type
    Method
    Description
    gets all ancestors of current container of same type order is from root to current container
    getXTypeAncestor(IThingID thingID, int xtypeID)
    find nearest ancestor of given xtype
    boolean
    isDescendent(IThingID containerID, IThingID targetID, int relType)
    finds out if thing is a descendent of this container
    listAllDescendents(IThingID thingID, int relType, int xtypeID, int startIndex, int endIndex, int depth, boolean inclDeleted)
    lists all descendents in unordered tree view
  • Method Details

    • isDescendent

      boolean isDescendent(IThingID containerID, IThingID targetID, int relType) throws MetaException
      finds out if thing is a descendent of this container
      Parameters:
      containerID -
      targetID -
      relType -
      Returns:
      Throws:
      MetaException
    • listAllDescendents

      IThingIDList listAllDescendents(IThingID thingID, int relType, int xtypeID, int startIndex, int endIndex, int depth, boolean inclDeleted) throws MetaException
      lists all descendents in unordered tree view
      Parameters:
      relType - PRIMARY_TOPIC or PRIMARY_FOLDER
      xtypeID - filter by xtype if > 0
      startIndex - item to start list with
      endIndex - item to end list with
      depth - depth starting from container (0)
      Returns:
      list of all descendents in tree order (unsorted)
      Throws:
      MetaException - if container no longer exists or DB access error
    • getAncestors

      IThingIDList getAncestors(IThingID thingID) throws MetaException
      gets all ancestors of current container of same type order is from root to current container
      Throws:
      MetaException
    • getXTypeAncestor

      IThingID getXTypeAncestor(IThingID thingID, int xtypeID) throws MetaException
      find nearest ancestor of given xtype
      Parameters:
      thingID -
      xtypeID -
      Returns:
      Throws:
      MetaException