Interface IThingContainerQuery
public interface IThingContainerQuery
-
Method Summary
Modifier and TypeMethodDescriptiongetChildrenByName
(IThingID thingID, String name, int relType, int xtypeID, int startIndex, int endIndex) returns all children whose name exactly matches (case-insensitive) 'name' Will check all languagesint
Get a count of children of this container, based on relationship type.listChilds
(IThingID containerID) Get all things that are childs of the specified container.Get things that are contained by this thinglistIDsByType
(IThingID thingID, int startIndex, int endIndex, int typeID) Return list of all children with this typelistIDsByXType
(IThingID thingID, int startIndex, int endIndex, int xtypeID) Return list of all children with this xtypesearchChildrenByName
(IThingID thingID, String query, int relType, int xtypeID, int startIndex, int endIndex) returns all children whose name exactly matches 'name' if includeLink is true, also includes matches on link name.
-
Method Details
-
listChilds
Get all things that are childs of the specified container. This method returns all things and does not do any acl checks- Returns:
- Throws:
MetaException
-
listIDs
Get things that are contained by this thing- Parameters:
startIndex
- index of the first item to return.endIndex
- index of the last item to return. -1 specifies the last item.- Returns:
- array of thingIDs
- Throws:
MetaException
-
listIDsByType
IThingIDList listIDsByType(IThingID thingID, int startIndex, int endIndex, int typeID) throws MetaException Return list of all children with this type- Parameters:
startIndex
- index of the first item to return.endIndex
- index of the last item to return. -1 specifies the last item.- Throws:
MetaException
-
listIDsByXType
IThingIDList listIDsByXType(IThingID thingID, int startIndex, int endIndex, int xtypeID) throws MetaException Return list of all children with this xtype- Parameters:
startIndex
- index of the first item to return.endIndex
- index of the last item to return. -1 specifies the last item.- Throws:
MetaException
-
getCount
Get a count of children of this container, based on relationship type.- Parameters:
relType
- -1 specifies all containment relationships. (IRelation)typeID
- -1 specifies all item types (IThingType)xtypeID
- -1 specifies all xtypes- Throws:
MetaException
-
getChildrenByName
IThingIDList getChildrenByName(IThingID thingID, String name, int relType, int xtypeID, int startIndex, int endIndex) throws MetaException returns all children whose name exactly matches (case-insensitive) 'name' Will check all languages- Parameters:
name
- (case-insensitive) name to search forrelType
- relation type to search onxtypeID
- 0 means all, else filterstartIndex
- for pagingendIndex
- for paging, -1 for all- Returns:
- list of children matching name (may be several)
- Throws:
MetaException
- if container not found or DB error
-
searchChildrenByName
IThingIDList searchChildrenByName(IThingID thingID, String query, int relType, int xtypeID, int startIndex, int endIndex) throws MetaException returns all children whose name exactly matches 'name' if includeLink is true, also includes matches on link name. Will check all languages- Parameters:
query
- name to search forrelType
- relation type to search onxtypeID
- 0 means all, else filterstartIndex
- for pagingendIndex
- for paging, -1 for all- Returns:
- list of children matching name (may be several)
- Throws:
MetaException
- if container not found or DB error
-