|
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
2 <!-- |
|
3 Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. |
|
4 |
|
5 CDDL HEADER START |
|
6 |
|
7 The contents of this file are subject to the terms of the |
|
8 Common Development and Distribution License (the "License"). |
|
9 You may not use this file except in compliance with the License. |
|
10 |
|
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
12 or http://www.opensolaris.org/os/licensing. |
|
13 See the License for the specific language governing permissions |
|
14 and limitations under the License. |
|
15 |
|
16 When distributing Covered Code, include this CDDL HEADER in each |
|
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
18 If applicable, add the following below this CDDL HEADER, with the |
|
19 fields enclosed by brackets "[]" replaced with your own identifying |
|
20 information: Portions Copyright [yyyy] [name of copyright owner] |
|
21 |
|
22 CDDL HEADER END |
|
23 --> |
|
24 |
|
25 <api xmlns="http://xmlns.oracle.com/radadr" |
|
26 name="com.oracle.solaris.vp.panel.common.api.file"> |
|
27 <version major="1" minor="0" /> |
|
28 |
|
29 <struct name="FileSnapshot"> |
|
30 <field type="string" name="path" /> |
|
31 <field type="string" name="absolutePath" /> |
|
32 <field type="string" name="baseName" /> |
|
33 <field type="string" name="canonicalPath" /> |
|
34 <field type="boolean" name="absolute" /> |
|
35 <field type="boolean" name="canonical" /> |
|
36 <field type="boolean" name="exists" /> |
|
37 <field type="boolean" name="readable" /> |
|
38 <field type="boolean" name="writable" /> |
|
39 <field type="boolean" name="directory" /> |
|
40 <field type="boolean" name="file" /> |
|
41 <field type="boolean" name="hidden" /> |
|
42 <field type="time" name="lastModified" /> |
|
43 <field type="long" name="length" /> |
|
44 <field type="long" name="freeSpace" /> |
|
45 <field type="long" name="totalSpace" /> |
|
46 <field type="long" name="usableSpace" /> |
|
47 </struct> |
|
48 |
|
49 <interface name="FileBrowser"> |
|
50 <property name="roots" access="ro"> |
|
51 <list typeref="FileSnapshot" /> |
|
52 </property> |
|
53 |
|
54 <method name="getFile"> |
|
55 <result typeref="FileSnapshot" /> |
|
56 <error /> |
|
57 <argument type="string" name="name" /> |
|
58 </method> |
|
59 |
|
60 <method name="getFiles"> |
|
61 <result> |
|
62 <list typeref="FileSnapshot" /> |
|
63 </result> |
|
64 <error /> |
|
65 <argument type="string" name="directory" /> |
|
66 </method> |
|
67 </interface> |
|
68 </api> |