Nextcloud Circles API

GSUpstreamService
in package
Uses TNCRequest

Class GSUpstreamService

Table of Contents

$circlesRequest  : DeprecatedCirclesRequest
$configService  : ConfigService
$eventWrapperRequest  : EventWrapperRequest
$globalScaleService  : GlobalScaleService
$membersRequest  : DeprecatedMembersRequest
$miscService  : MiscService
$urlGenerator  : IURLGenerator
$userId  : string
__construct()  : mixed
GSUpstreamService constructor.
broadcastEvent()  : void
broadcastWrapper()  : void
clientService()  : IClientService
confirmCircleStatus()  : bool
confirmEvent()  : void
doRequest()  : void
getEventsByToken()  : array<string|int, GSWrapper>
manageResults()  : void
should be used to manage results from events, like sending mails on user creation
newEvent()  : string
retrieveJson()  : array<string|int, mixed>
setMaxDownloadSize()  : mixed
syncEvents()  : mixed
checkCircle()  : void
generationClientOptions()  : mixed
isLocalEvent()  : bool
We check that the event can be managed/checked locally or if the owner of the circle belongs to an other instance of Nextcloud
removeDeprecatedCircles()  : mixed
removeDeprecatedEvents()  : mixed
signEvent()  : mixed
useClient()  : IResponse

Properties

Methods

__construct()

GSUpstreamService constructor.

public __construct( $userId, IURLGenerator $urlGenerator, EventWrapperRequest $eventWrapperRequest, DeprecatedCirclesRequest $circlesRequest, DeprecatedMembersRequest $membersRequest, GlobalScaleService $globalScaleService, ConfigService $configService, MiscService $miscService) : mixed
Parameters
$userId :
$urlGenerator : IURLGenerator
$eventWrapperRequest : EventWrapperRequest
$circlesRequest : DeprecatedCirclesRequest
$membersRequest : DeprecatedMembersRequest
$globalScaleService : GlobalScaleService
$configService : ConfigService
$miscService : MiscService
Return values
mixed

clientService()

public clientService() : IClientService
Return values
IClientService

manageResults()

should be used to manage results from events, like sending mails on user creation

public manageResults(string $token) : void
Parameters
$token : string
Return values
void

setMaxDownloadSize()

public setMaxDownloadSize(int $size) : mixed
Parameters
$size : int
Return values
mixed

generationClientOptions()

private generationClientOptions(NCRequest $request) : mixed
Parameters
$request : NCRequest
Return values
mixed

isLocalEvent()

We check that the event can be managed/checked locally or if the owner of the circle belongs to an other instance of Nextcloud

private isLocalEvent(GSEvent $event) : bool
Parameters
$event : GSEvent
Return values
bool

removeDeprecatedCircles()

private removeDeprecatedCircles() : mixed
Return values
mixed

removeDeprecatedEvents()

private removeDeprecatedEvents() : mixed
Return values
mixed

useClient()

private useClient(NCRequest $request) : IResponse
Parameters
$request : NCRequest
Tags
throws
Exception
Return values
IResponse

Search results