From 315344eb9cc58dda23bfe52c1413ad963265a9cb Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Tue, 10 Sep 2013 19:34:38 +0200
Subject: move public files api to a clearer namespace

---
 lib/public/files/node.php | 108 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)
 create mode 100644 lib/public/files/node.php

(limited to 'lib/public/files/node.php')

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();
+}
-- 
cgit v1.2.3