Interface IThingDescQuery
public interface IThingDescQuery
-
Method Summary
Modifier and TypeMethodDescriptiongetAncestors
(IThingID thingID) gets all ancestors of current container of same type order is from root to current containergetXTypeAncestor
(IThingID thingID, int xtypeID) find nearest ancestor of given xtypeboolean
isDescendent
(IThingID containerID, IThingID targetID, int relType) finds out if thing is a descendent of this containerlistAllDescendents
(IThingID thingID, int relType, int xtypeID, int startIndex, int endIndex, int depth, boolean inclDeleted) lists all descendents in unordered tree view
-
Method Details
-
isDescendent
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_FOLDERxtypeID
- filter by xtype if > 0startIndex
- item to start list withendIndex
- item to end list withdepth
- 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
gets all ancestors of current container of same type order is from root to current container- Throws:
MetaException
-
getXTypeAncestor
find nearest ancestor of given xtype- Parameters:
thingID
-xtypeID
-- Returns:
- Throws:
MetaException
-