Interface IRelationService
- All Superinterfaces:
IComponent
,IInitializable
,IMetaComponent
-
Method Summary
Modifier and TypeMethodDescriptiongetContainerIDs
(IThingID fromID, int relType, int startIndex, int endIndex) Returns list of thing IDs which are containers for the specified thing using relTypegetRelatedData
(IThingID thingID) get a related data objectgetRelatedIDs
(IThingID fromID, int relType, int startIndex, int endIndex) getRelationIDFromRelType
(int reltype) converts the relation ID into a full thingIDint
getRelType
(String relation) Returns the ThingID for the specified relation name.getRelTypeName
(int relType) Returns a String name for the specified type identifierint[]
Get a List of all IRelation types.void
causes relation lookup to be refreshedint
registerRelType
(String name) creates a new relation typevoid
adds a specific relation to the fromIDvoid
unregisterRelType
(int relType) Unregisters a Thing type.void
removes relations to current thingMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.service.meta2.IMetaComponent
getMetaContext, setMetaContext
-
Method Details
-
getRelTypeName
Returns a String name for the specified type identifier- Throws:
MetaException
-
getRelType
Returns the ThingID for the specified relation name. -
registerRelType
creates a new relation type- Throws:
MetaException
-
unregisterRelType
Unregisters a Thing type. This will delete all relationships based on this ID- Throws:
MetaException
-
getRelationIDFromRelType
converts the relation ID into a full thingID -
getRelTypes
Get a List of all IRelation types.- Throws:
MetaException
-
getRelatedData
get a related data object -
invalidate
void invalidate()causes relation lookup to be refreshed -
relate
adds a specific relation to the fromID- Throws:
MetaException
-
unrelate
removes relations to current thing- Parameters:
fromID
- thing you are interested intoID
- if null remove all of this typerelType
- if 0 remove all toID- Throws:
MetaException
-
getRelatedIDs
IThingIDList getRelatedIDs(IThingID fromID, int relType, int startIndex, int endIndex) throws MetaException - Parameters:
relType
- get all related of this type, 0 means all- Throws:
MetaException
-
getContainerIDs
IThingIDList getContainerIDs(IThingID fromID, int relType, int startIndex, int endIndex) throws MetaException Returns list of thing IDs which are containers for the specified thing using relType- Throws:
MetaException
-