PyDestinationContentReferenceFinderBase
class PyDestinationContentReferenceFinderBase
Bases: Generic[TContent]
Generic base class for destination content reference finders.
__init__()
Methods
__init__() |
|
|---|---|
find_all() |
Finds all available content references. |
find_by_id(id) |
Finds the content reference by its unique identifier. |
find_by_mapped_location(mapped_location) |
Finds the destination content reference for the mapped destination content reference location. |
find_by_source_content_url(source_content_url) |
Finds the destination content reference for the source content reference URL. |
find_by_source_id(source_id) |
Finds the destination content reference for the source content reference unique identifier. |
find_by_source_location(source_location) |
Finds the destination content reference for the source content reference location. |
find_by_source_location(source_location)
Finds the destination content reference for the source content reference location.
Args: : source_location: The source content reference location.
Returns: The found destination content reference, or None if no content reference was found.
- Parameters: source_location (PyContentLocation)
- Return type: PyContentReference | None
find_by_mapped_location(mapped_location)
Finds the destination content reference for the mapped destination content reference location.
Args: : mapped_location: The destination mapped content reference location.
Returns: The found destination content reference, or None if no content reference was found.
- Parameters: mapped_location (PyContentLocation)
- Return type: PyContentReference | None
find_by_source_id(source_id)
Finds the destination content reference for the source content reference unique identifier.
Args: : source_id: The source content reference unique identifier.
Returns: The found destination content reference, or None if no content reference was found.
- Parameters: source_id (UUID)
- Return type: PyContentReference | None
find_by_id(id)
Finds the content reference by its unique identifier.
Args: : id: The unique identifier.
Returns: The found content reference, or None if no content reference was found.
- Parameters: id (UUID)
- Return type: PyContentReference | None
find_by_source_content_url(source_content_url)
Finds the destination content reference for the source content reference URL.
Args: : source_content_url: The source content reference URL.
Returns: The found destination content reference, or None if no content reference was found.
- Parameters: source_content_url (str)
- Return type: PyContentReference | None
find_all()
Finds all available content references.
Returns: The found content references.
- Return type: Sequence[PyContentReference]