Hierarchy¶
Hierarchy¶
-
class
dlkit.services.hierarchy.
Hierarchy
(provider_manager, catalog, runtime, proxy, **kwargs)¶ Bases:
dlkit.osid.objects.OsidCatalog
,dlkit.osid.sessions.OsidSession
A
Hierarchy
represents an authenticatable identity.Like all OSID objects, a
Hierarchy
is identified by its Id and any persisted references should use the Id.-
get_hierarchy_record
(hierarchy_record_type)¶ Gets the hierarchy record corresponding to the given
Hierarchy
recordType
.This method is used to retrieve an object implementing the requested record. The
hierarchy_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(hierarchy_record_type)
istrue
.Parameters: hierarchy_record_type ( osid.type.Type
) – the type of the record to retrieveReturns: the hierarchy record Return type: osid.hierarchy.records.HierarchyRecord
Raise: NullArgument
–hierarchy_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(hierarchyrecord_type)
isfalse
compliance: mandatory – This method must be implemented.
-