package
|
OCA\Gallery\Service
|
Methods
Constructor
__construct(string $appName, \OCA\Gallery\Environment\Environment $environment, \OCP\ILogger $logger)
Returns the file matching the given ID
getFile(integer $nodeId) : \OCP\Files\Node
Throws |
- \OCA\Gallery\Service\NotFoundServiceException
|
Arguments
$nodeId
integer
ID of the resource to locate
Response
\OCP\Files\Node
Returns the node matching the given ID
getNode(integer $nodeId) : \OCP\Files\Node
Throws |
- \OCA\Gallery\Service\NotFoundServiceException
|
Arguments
$nodeId
integer
ID of the resource to locate
Response
\OCP\Files\Node
Makes extra sure that we can actually do something with the file
validateNode(\OCP\Files\Node $node)
|
|
Throws |
- \OCA\Gallery\Service\NotFoundServiceException
|
Arguments
Properties
environment
environment : \OCA\Gallery\Environment\Environment
logger
logger : \OCP\ILogger