Nextcloud PHP API (master)

IDocumentAccess

Interface IDocumentAccess

This object is used as a data transfer object when

  • indexing a document,
  • generating a search request.

During the index, it is used to define which users, groups, circles, ... have access to the IIndexDocument

During the search, it is internally use to define to which group, circles, ... a user that perform the search belongs to.

Tags
see
IIndexDocument::setAccess
since
16.0.0

Table of Contents

Methods

__construct()  : mixed
Owner of the document can be set at the init of the object.
addCircle()  : IDocumentAccess
Add an entry to the list of circles that have read access to the document.
addCircles()  : IDocumentAccess
Add multiple entries to the list of groups that have read access to the document.
addGroup()  : IDocumentAccess
Add an entry to the list of groups that have read access to the document.
addGroups()  : IDocumentAccess
Add multiple entries to the list of groups that have read access to the document.
addUser()  : IDocumentAccess
Add an entry to the list of users that have read access to the document.
addUsers()  : IDocumentAccess
Add multiple entries to the list of users that have read access to the document.
getCircles()  : array<string|int, mixed>
Get the complete list of circles that have read access to the document.
getGroups()  : array<string|int, mixed>
Get the complete list of groups that have read access to the document.
getLinks()  : array<string|int, mixed>
Get the list of links that have read access to the document.
getOwnerId()  : string
Get the Owner of the document.
getUsers()  : array<string|int, mixed>
Get the complete list of users that have read access to the document.
getViewerId()  : string
Get the viewer of the document.
setCircles()  : IDocumentAccess
Set the list of circles that have read access to the document.
setGroups()  : IDocumentAccess
Set the list of groups that have read access to the document.
setLinks()  : IDocumentAccess
Set the list of links that have read access to the document.
setOwnerId()  : IDocumentAccess
Set the Owner of the document.
setUsers()  : IDocumentAccess
Set the list of users that have read access to the document.
setViewerId()  : IDocumentAccess
Set the viewer of the document.

Methods

__construct()

Owner of the document can be set at the init of the object.

public __construct([string $ownerId = '' ]) : mixed
Parameters
$ownerId : string = ''
Tags
since
16.0.0

IDocumentAccess constructor.

addCircles()

Add multiple entries to the list of groups that have read access to the document.

public addCircles(array<string|int, mixed> $circles) : IDocumentAccess
Parameters
$circles : array<string|int, mixed>
Tags
since
16.0.0
Return values
IDocumentAccess

addGroups()

Add multiple entries to the list of groups that have read access to the document.

public addGroups(array<string|int, mixed> $groups) : IDocumentAccess
Parameters
$groups : array<string|int, mixed>
Tags
since
16.0.0
Return values
IDocumentAccess

addUsers()

Add multiple entries to the list of users that have read access to the document.

public addUsers(array<string|int, mixed> $users) : IDocumentAccess
Parameters
$users : array<string|int, mixed>
Tags
since
16.0.0
Return values
IDocumentAccess

getCircles()

Get the complete list of circles that have read access to the document.

public getCircles() : array<string|int, mixed>
Tags
since
16.0.0
Return values
array<string|int, mixed>

getGroups()

Get the complete list of groups that have read access to the document.

public getGroups() : array<string|int, mixed>
Tags
since
16.0.0
Return values
array<string|int, mixed>

Get the list of links that have read access to the document.

public getLinks() : array<string|int, mixed>
Tags
since
16.0.0
Return values
array<string|int, mixed>

getOwnerId()

Get the Owner of the document.

public getOwnerId() : string
Tags
since
16.0.0
Return values
string

getUsers()

Get the complete list of users that have read access to the document.

public getUsers() : array<string|int, mixed>
Tags
since
16.0.0
Return values
array<string|int, mixed>

getViewerId()

Get the viewer of the document.

public getViewerId() : string
Tags
since
16.0.0
Return values
string

setCircles()

Set the list of circles that have read access to the document.

public setCircles(array<string|int, mixed> $circles) : IDocumentAccess
Parameters
$circles : array<string|int, mixed>
Tags
since
16.0.0
Return values
IDocumentAccess

setGroups()

Set the list of groups that have read access to the document.

public setGroups(array<string|int, mixed> $groups) : IDocumentAccess
Parameters
$groups : array<string|int, mixed>
Tags
since
16.0.0
Return values
IDocumentAccess

Set the list of links that have read access to the document.

public setLinks(array<string|int, mixed> $links) : IDocumentAccess
Parameters
$links : array<string|int, mixed>
Tags
since
16.0.0
Return values
IDocumentAccess

setUsers()

Set the list of users that have read access to the document.

public setUsers(array<string|int, mixed> $users) : IDocumentAccess
Parameters
$users : array<string|int, mixed>
Tags
since
16.0.0
Return values
IDocumentAccess

        
On this page

Search results