@@ -116,6 +116,7 @@ public static AvailableOfflineStatus fromValue(int value) {
116116 private boolean mSharedByLink ;
117117 private boolean mSharedWithSharee ;
118118 private String mPrivateLink ;
119+ private String mOwner ;
119120
120121 /**
121122 * URI to the local path of the file contents, if stored in the device; cached after first call
@@ -125,15 +126,15 @@ public static AvailableOfflineStatus fromValue(int value) {
125126
126127 /**
127128 * Exportable URI to the local path of the file contents, if stored in the device.
128- *
129+ * <p>
129130 * Cached after first call, until changed.
130131 */
131132 private Uri mExposedFileUri ;
132133 public static final String PRIVATE_LINK_PATH = "/index.php/f/" ;
133134
134135 /**
135136 * Create new {@link OCFile} with given path.
136- *
137+ * <p>
137138 * The path received must be URL-decoded. Path separator must be File.separator, and it must be the first
138139 * character in 'path'.
139140 *
@@ -179,6 +180,7 @@ private OCFile(Parcel source) {
179180 mEtagInConflict = source .readString ();
180181 mSharedWithSharee = source .readInt () == 1 ;
181182 mPrivateLink = source .readString ();
183+ mOwner = source .readString ();
182184
183185 }
184186
@@ -206,6 +208,7 @@ public void writeToParcel(Parcel dest, int flags) {
206208 dest .writeString (mEtagInConflict );
207209 dest .writeInt (mSharedWithSharee ? 1 : 0 );
208210 dest .writeString (mPrivateLink );
211+ dest .writeString (mOwner );
209212 }
210213
211214 /**
@@ -352,7 +355,7 @@ public long getModificationTimestamp() {
352355
353356 /**
354357 * Set a UNIX timestamp of the time the time the file was modified.
355- *
358+ * <p>
356359 * To update with the value returned by the server in every synchronization of the properties
357360 * of this file.
358361 *
@@ -374,7 +377,7 @@ public long getModificationTimestampAtLastSyncForData() {
374377
375378 /**
376379 * Set a UNIX timestamp of the time the time the file was modified.
377- *
380+ * <p>
378381 * To update with the value returned by the server in every synchronization of THE CONTENTS
379382 * of this file.
380383 *
@@ -396,7 +399,7 @@ public String getFileName() {
396399
397400 /**
398401 * Sets the name of the file
399- *
402+ * <p>
400403 * Does nothing if the new name is null, empty or includes "/" ; or if the file is the root
401404 * directory
402405 */
@@ -507,6 +510,7 @@ public long getParentId() {
507510
508511 /**
509512 * get remote path of parent file
513+ *
510514 * @return remote path
511515 */
512516 public String getParentRemotePath () {
@@ -547,7 +551,7 @@ public AvailableOfflineStatus getAvailableOfflineStatus() {
547551 }
548552
549553 /**
550- * @return 'True' when
554+ * @return 'True' when
551555 */
552556 public boolean isAvailableOffline () {
553557 return (mAvailableOfflineStatus != AvailableOfflineStatus .NOT_AVAILABLE_OFFLINE );
@@ -651,8 +655,8 @@ public boolean isText() {
651655 }
652656
653657 /**
654- * @param type Type to match in the file MIME type; it's MUST include the trailing "/"
655- * @return 'True' if the file MIME type matches the received parameter in the type part.
658+ * @param type Type to match in the file MIME type; it's MUST include the trailing "/"
659+ * @return 'True' if the file MIME type matches the received parameter in the type part.
656660 */
657661 private boolean isOfType (String type ) {
658662 return (
@@ -750,4 +754,12 @@ public void copyLocalPropertiesFrom(OCFile sourceFile) {
750754 setTreeEtag (sourceFile .getTreeEtag ());
751755 setEtagInConflict (sourceFile .getEtagInConflict ());
752756 }
757+
758+ public String getOwner () {
759+ return mOwner ;
760+ }
761+
762+ public void setOwner (String owner ) {
763+ mOwner = (owner == null ) ? "" : owner ;
764+ }
753765}
0 commit comments