ObjectSpaceState
개요
ObjectSpaceState은 Aspose.Note에 있는 Python용 클래스입니다.
ObjectSpaceState.get_latest_root(role, context_id)는 지정된 역할과 컨텍스트에 대한 최신 루트 GUID를 반환하며, 찾을 수 없으면 None을 반환합니다.
ObjectSpaceState은 Aspose.Note에 있는 Python용 열거형으로, OneNote 패키지 내 객체 공간의 동기화 상태를 설명합니다. 이는 Python의 Enum 기본 클래스를 상속받으며, Aspose.Note API 메서드와 속성에서 사용할 수 있는 명명된 상징적 상수들을 제공합니다. 값: 다양한 상수.
설명
ObjectSpaceState은 Aspose.Note FOSS 라이브러리에서 Python용 클래스로, 프로그래밍 사용을 위해 3개의 메서드와 8개의 속성을 노출합니다.
핵심 기능에는 extendedguid; dict[int, extendedguid]; dict[extendedguid, onestoreobject]가 포함됩니다. 이러한 작업을 통해 개발자는 objectspacestate 기능을 Python 애플리케이션에 직접 통합할 수 있습니다.
이 클래스는 또한 gosid 속성(전역 객체 저장소 식별자를 extendedguid 형태로 보유), root_roles 속성(역할 정수를 해당 루트 extendedguid에 매핑), objects 속성(extendedguid를 키로 하는 모든 onestoreobject 인스턴스의 사전을 제공)을 제공합니다.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
gosid | ExtendedGUID | 읽기 | 전역 객체 저장소 식별자를 ExtendedGUID 로 보유합니다. |
root_roles | dict[int, ExtendedGUID] | 읽기 | 역할 정수를 해당 루트 ExtendedGUIDs와 매핑합니다. |
objects | dict[ExtendedGUID, OneStoreObject] | 읽기 | 모든 OneStoreObject 인스턴스를 ExtendedGUID을(를) 키로 하는 사전을 제공합니다. |
section_display_name | `str | None` | 읽기 |
revisions | list[RevisionManifestRecord] | 읽기 | RevisionManifestRecord 객체의 목록으로, 문서 개정을 나타냅니다. |
role_bindings | list[RevisionRoleBinding] | 읽기 | 역할을 리비전과 연결하는 RevisionRoleBinding 목록을 저장합니다 |
latest_roots_by_context_role | `dict[tuple[ExtendedGUID | None, int], ExtendedGUID]` | 읽기 |
latest_revision_indices_by_context_role | `dict[tuple[ExtendedGUID | None, int], int]` | 읽기 |
메서드
| 시그니처 | 설명 |
|---|---|
| `get_latest_root(role: int, context_id: ExtendedGUID | None)→ExtendedGUID |
iter_latest_roots(role: int) → `list[tuple[ExtendedGUID | None, ExtendedGUID]]` |
| `get_latest_revision_index(role: int, context_id: ExtendedGUID | None)→int |