public interface IThingDescQuery
Modifier and Type | Method and Description |
---|---|
IThingIDList |
getAncestors(IThingID thingID)
gets all ancestors of current container of same type
order is from root to current container
|
IThingID |
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
|
IThingIDList |
listAllDescendents(IThingID thingID,
int relType,
int xtypeID,
int startIndex,
int endIndex,
int depth,
boolean inclDeleted)
lists all descendents in unordered tree view
|
boolean isDescendent(IThingID containerID, IThingID targetID, int relType) throws MetaException
containerID
- targetID
- relType
- MetaException
IThingIDList listAllDescendents(IThingID thingID, int relType, int xtypeID, int startIndex, int endIndex, int depth, boolean inclDeleted) throws MetaException
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)MetaException
- if container no longer exists or DB access errorIThingIDList getAncestors(IThingID thingID) throws MetaException
MetaException
IThingID getXTypeAncestor(IThingID thingID, int xtypeID) throws MetaException
thingID
- xtypeID
- MetaException