diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-09-10 19:34:38 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-09-10 19:34:38 +0200 |
commit | 315344eb9cc58dda23bfe52c1413ad963265a9cb (patch) | |
tree | 7b839e62d643df91a7cd16dd716b31f694f3339a /lib/public/files/node.php | |
parent | 2e1b534957460ac39bfe1f5f14148164df148e5a (diff) | |
download | nextcloud-server-315344eb9cc58dda23bfe52c1413ad963265a9cb.tar.gz nextcloud-server-315344eb9cc58dda23bfe52c1413ad963265a9cb.zip |
move public files api to a clearer namespace
Diffstat (limited to 'lib/public/files/node.php')
-rw-r--r-- | lib/public/files/node.php | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/lib/public/files/node.php b/lib/public/files/node.php new file mode 100644 index 00000000000..d3b71803f50 --- /dev/null +++ b/lib/public/files/node.php @@ -0,0 +1,108 @@ +<?php +/** + * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace OCP\Files; + +interface Node { + /** + * @param string $targetPath + * @throws \OC\Files\NotPermittedException + * @return \OCP\Files\Node + */ + public function move($targetPath); + + public function delete(); + + /** + * @param string $targetPath + * @return \OCP\Files\Node + */ + public function copy($targetPath); + + /** + * @param int $mtime + * @throws \OC\Files\NotPermittedException + */ + public function touch($mtime = null); + + /** + * @return \OC\Files\Storage\Storage + * @throws \OC\Files\NotFoundException + */ + public function getStorage(); + + /** + * @return string + */ + public function getPath(); + + /** + * @return string + */ + public function getInternalPath(); + + /** + * @return int + */ + public function getId(); + + /** + * @return array + */ + public function stat(); + + /** + * @return int + */ + public function getMTime(); + + /** + * @return int + */ + public function getSize(); + + /** + * @return string + */ + public function getEtag(); + + /** + * @return int + */ + public function getPermissions(); + + /** + * @return bool + */ + public function isReadable(); + + /** + * @return bool + */ + public function isUpdateable(); + + /** + * @return bool + */ + public function isDeletable(); + + /** + * @return bool + */ + public function isShareable(); + + /** + * @return Node + */ + public function getParent(); + + /** + * @return string + */ + public function getName(); +} |