IContentManager
in
Tags
Table of Contents
Methods
- collectAllContentProviders() : void
- Emits an event to collect all content providers
- deleteContent() : void
- Remove a content item from the knowledge base of context chat.
- deleteProvider() : void
- Delete all content items and access lists for a provider.
- isContextChatAvailable() : bool
- Checks if the context chat app is enabled or not
- registerContentProvider() : void
- submitContent() : void
- Providers can use this to submit content for indexing in context chat
- updateAccess() : void
- Update access for a content item for specified users.
- updateAccessDeclarative() : void
- Update access for a content item for specified users declaratively.
- updateAccessProvider() : void
- Update access for content items from the given provider for specified users.
Methods
collectAllContentProviders()
Emits an event to collect all content providers
public
collectAllContentProviders() : void
Tags
deleteContent()
Remove a content item from the knowledge base of context chat.
public
deleteContent(string $appId, string $providerId, array<string|int, string> $itemIds) : void
Parameters
- $appId : string
- $providerId : string
- $itemIds : array<string|int, string>
Tags
deleteProvider()
Delete all content items and access lists for a provider.
public
deleteProvider(string $appId, string $providerId) : void
This does not unregister the provider itself.
Parameters
- $appId : string
- $providerId : string
Tags
isContextChatAvailable()
Checks if the context chat app is enabled or not
public
isContextChatAvailable() : bool
Tags
Return values
boolregisterContentProvider()
public
registerContentProvider(string $appId, string $providerId, IContentProvider> $providerClass) : void
Parameters
- $appId : string
- $providerId : string
- $providerClass : IContentProvider>
Tags
submitContent()
Providers can use this to submit content for indexing in context chat
public
submitContent(string $appId, array<string|int, ContentItem> $items) : void
Parameters
- $appId : string
- $items : array<string|int, ContentItem>
Tags
updateAccess()
Update access for a content item for specified users.
public
updateAccess(string $appId, string $providerId, string $itemId, UpdateAccessOp::* $op, array<string|int, mixed> $userIds) : void
This modifies the access list for the content item, allowing or denying access to the specified users. If no user has access to the content item, it will be removed from the knowledge base.
Parameters
- $appId : string
- $providerId : string
- $itemId : string
- $op : UpdateAccessOp::*
- $userIds : array<string|int, mixed>
Tags
updateAccessDeclarative()
Update access for a content item for specified users declaratively.
public
updateAccessDeclarative(string $appId, string $providerId, string $itemId, array<string|int, mixed> $userIds) : void
This overwrites the access list for the content item, allowing only the specified users access to it.
Parameters
- $appId : string
- $providerId : string
- $itemId : string
- $userIds : array<string|int, mixed>
Tags
updateAccessProvider()
Update access for content items from the given provider for specified users.
public
updateAccessProvider(string $appId, string $providerId, UpdateAccessOp::* $op, array<string|int, mixed> $userIds) : void
If no user has access to the content item, it will be removed from the knowledge base.
Parameters
- $appId : string
- $providerId : string
- $op : UpdateAccessOp::*
- $userIds : array<string|int, mixed>