Nextcloud PHP API (master)

IContentManager

Tags
since
32.0.0

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
since
32.0.0

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
since
32.0.0

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
since
32.0.0

isContextChatAvailable()

Checks if the context chat app is enabled or not

public isContextChatAvailable() : bool
Tags
since
32.0.0
Return values
bool

registerContentProvider()

public registerContentProvider(string $appId, string $providerId, IContentProvider> $providerClass) : void
Parameters
$appId : string
$providerId : string
$providerClass : IContentProvider>
Tags
since
32.0.0

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
since
32.0.0

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
since
32.0.0

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
since
32.0.0

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>
Tags
since
32.0.0

        
On this page

Search results