Previous | Next
WireHose Developers Guide


Tags are enterprise objects which can be arranged in an arbitrary hierarchy and assigned to taggable objects. A taggable object can have any number of tags. Tags can be arranged into any hierarchy required. Each tag has a parent tag, and most tags have child tags. (A top tag is its own parent.) WireHose provides methods for retrieving a tag's ancestors, relative ancestors, descendents, relative descendents and leaf descendents.

A tag can be uniquely identified by its tagpath, which is a slash-delimited string indicating its position in the hierarchy. For example, the tagpath "Cats/Black Cats/Budu" identifies the tag named "Budu". You use static methods in the WHTag class create and retrieve tags, and assign them to taggable objects.

Note: You can subclass WHTag to implement access control, workflow or other special applications. For example, the WireHoseEngageSupport framework defines several WHTag subclasses which implement roles-based access control for taggable objects -- including WHEngageTag, which defines tags that are taggable.

Previous | Next