Interface HierarchyManager
- All Superinterfaces:
AutoCloseable, Closeable, HierarchyProfile, OsidManager, OsidManager, OsidProfile, Sourceable
The hierarchy manager provides access sessions to traverse and manage
hierrachies of Ids . The sessions included in this manager are:
-
HierarchyTraversalSession: a basic session traversing a hierarchy -
HierarchyDesignSession: a session to design a hierarchy -
HierarchySequencingSession: a session to sequence nodes in a hierarchy -
HierarchyStructureNotificationSession: a session for notififcations within a hierarchy structure -
HierarchyLookupSession: a session looking up hiererachies -
HierarchyQuerySession: a session querying hiererachies -
HierarchySearchSession: a session for searching for hierarchies -
HierarchyAdminSession: a session for creating and deleting hierarchies -
HierarchyNotificationSession: a session for subscribing to changes in hierarchies
-
Method Summary
Modifier and TypeMethodDescriptionGets the hierarchy administrative session.Gets theOsidSessionassociated with the hierarchy design service.getHierarchyDesignSessionForHierarchy(Id hierarchyId) Gets theOsidSessionassociated with the topology design service using for the given hierarchy.Gets theOsidSessionassociated with the hierarchy lookup service.getHierarchyNotificationSession(HierarchyReceiver hierarchyReceiver) Gets a hierarchy notification session.Gets theOsidSessionassociated with the hierarchy query service.Gets theOsidSessionassociated with the hierarchy search service.Gets theOsidSessionassociated with the hierarchy sequencing service.getHierarchySequencingSessionForHierarchy(Id hierarchyId) Gets theOsidSessionassociated with the sequencing design service using for the given hierarchy.getHierarchyStructureNotificationSession(HierarchyStructureReceiver hierarchyStructureReceiver) Gets the session for subscribing to notifications of changes within a hierarchy structure.getHierarchyStructureNotificationSessionForHierarchy(HierarchyStructureReceiver hierarchyStructureReceiver, Id hierarchyId) Gets the session for subscribing to notifications of changes within a hierarchy structure for the given hierarchy.Gets theOsidSessionassociated with the hierarchy traversal service.getHierarchyTraversalSessionForHierarchy(Id hierarchyId) Gets theOsidSessionassociated with the hierarchy traversal service for the given hierarchy.Methods inherited from interface HierarchyProfile
getHierarchyRecordTypes, getHierarchySearchRecordTypes, supportsHierarchyAdmin, supportsHierarchyDesign, supportsHierarchyLookup, supportsHierarchyNotification, supportsHierarchyQuery, supportsHierarchyRecordType, supportsHierarchySearch, supportsHierarchySearchRecordType, supportsHierarchySequencing, supportsHierarchyStructureNotification, supportsHierarchyTraversal, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supportedHierarchytypes.Gets the supportedHierarchysearch record types.booleanTests if a hierarchy administration is supported.booleanTests if hierarchy design is supported.booleanTests if a hierarchy lookup is supported.booleanTests if hierarchy notification is supported.booleanTests if a hierarchy query is supported.booleansupportsHierarchyRecordType(Type hierarchyRecordType) Tests if the givenHierarchyrecord type is supported.booleanTests if a hierarchy search is supported.booleansupportsHierarchySearchRecordType(Type hierarchySearchRecordType) Tests if the givenHierarchysearch record type is supported.booleanTests if hierarchy sequencing is supported.booleanTests if hierarchy structure notification is supported.booleanTests if hierarchy traversal is supported.booleanTests if federation is visible.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getHierarchyTraversalSession
Gets theOsidSessionassociated with the hierarchy traversal service.- Returns:
- a
HierarchyTraversalSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyTraversal()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyTraversal()} is {@code true} .
-
getHierarchyTraversalSessionForHierarchy
HierarchyTraversalSession getHierarchyTraversalSessionForHierarchy(Id hierarchyId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the hierarchy traversal service for the given hierarchy.- Parameters:
hierarchyId- theIdof the hierarchy- Returns:
- the new
HierarchyTraversalSession - Throws:
NotFoundException-hierarchyIdnot foundNullArgumentException-hierarchyidisnullOperationFailedException-unable to complete requestUnimplementedException-supportsHierarchyTraversal()orsupportsVisibleFedaration()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyTraversal()} and {@code supportsVisibleFederation()} are {@code true} .
-
getHierarchyDesignSession
Gets theOsidSessionassociated with the hierarchy design service.- Returns:
- a
HierarchyDesignSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyDesign()} is {@code true} .
-
getHierarchyDesignSessionForHierarchy
HierarchyDesignSession getHierarchyDesignSessionForHierarchy(Id hierarchyId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the topology design service using for the given hierarchy.- Parameters:
hierarchyId- theIdof the graph- Returns:
- a
HierarchyDesignSession - Throws:
NotFoundException-hierarchyIdis not foundNullArgumentException-hierarchyIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyDesign()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyDesign()} and {@code supportsVisibleFederation()} are {@code true} .
-
getHierarchySequencingSession
Gets theOsidSessionassociated with the hierarchy sequencing service.- Returns:
- a
HierarchySequencingSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsHierarchySequencing()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchySequencing()} is {@code true} .
-
getHierarchySequencingSessionForHierarchy
HierarchySequencingSession getHierarchySequencingSessionForHierarchy(Id hierarchyId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the sequencing design service using for the given hierarchy.- Parameters:
hierarchyId- theIdof the graph- Returns:
- a
HierarchySequencingSession - Throws:
NotFoundException-hierarchyIdis not foundNullArgumentException-hierarchyIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsHierarchySequencing()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchySequencing()} and {@code supportsVisibleFederation()} are {@code true} .
-
getHierarchyStructureNotificationSession
HierarchyStructureNotificationSession getHierarchyStructureNotificationSession(HierarchyStructureReceiver hierarchyStructureReceiver) throws OperationFailedException Gets the session for subscribing to notifications of changes within a hierarchy structure.- Parameters:
hierarchyStructureReceiver- a receiver- Returns:
- a
HierarchyStructureNotificationSession - Throws:
NullArgumentException-hierarchyStructureReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyStructureNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyStructureNotification()} is {@code true} .
-
getHierarchyStructureNotificationSessionForHierarchy
HierarchyStructureNotificationSession getHierarchyStructureNotificationSessionForHierarchy(HierarchyStructureReceiver hierarchyStructureReceiver, Id hierarchyId) throws NotFoundException, OperationFailedException Gets the session for subscribing to notifications of changes within a hierarchy structure for the given hierarchy.- Parameters:
hierarchyStructureReceiver- a receiverhierarchyId- theIdof the graph- Returns:
- a
HierarchyStructureNotificationSession - Throws:
NotFoundException-hierarchyIdis not foundNullArgumentException-hierarchyStructureReceiverorhierarchyIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyStructureNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyStructureNotification()} and {@code supportsVisibleFederation()} are {@code true} .
-
getHierarchyLookupSession
Gets theOsidSessionassociated with the hierarchy lookup service.- Returns:
- a
HierarchyLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyLookup()} is {@code true} .
-
getHierarchyQuerySession
Gets theOsidSessionassociated with the hierarchy query service.- Returns:
- a
HierarchyQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyQuery()} is {@code true} .
-
getHierarchySearchSession
Gets theOsidSessionassociated with the hierarchy search service.- Returns:
- a
HierarchySearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsHierarchySearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchySearch()} is {@code true} .
-
getHierarchyAdminSession
Gets the hierarchy administrative session.- Returns:
- a
HierarchyAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyAdmin()} is {@code true} .
-
getHierarchyNotificationSession
HierarchyNotificationSession getHierarchyNotificationSession(HierarchyReceiver hierarchyReceiver) throws OperationFailedException Gets a hierarchy notification session.- Parameters:
hierarchyReceiver- notification callback- Returns:
- a
HierarchyNotificationSession - Throws:
NullArgumentException-hierarchyReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsHierarchyNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsHierarchyNotification()} is {@code true} .
-