public interface OneFolder
Modifier and Type | Method and Description |
---|---|
OneFolder |
createFolder(java.lang.String name)
Create a folder with the specified name in the current folder.
|
OneFolder |
createFolder(java.lang.String name,
ConflictBehavior behavior)
Create a folder with the specified name in the current folder.
|
boolean |
delete()
Deletes the current folder.
|
int |
getChildCount()
Gets child count.
|
java.util.List<OneFile> |
getChildFiles()
Gets all normal files in this folder.
|
java.util.List<OneFolder> |
getChildFolder()
Gets all folder inside the current folder.
|
java.util.List<OneItem> |
getChildren()
Gets the children of this folder (e.g.
|
java.util.HashMap<java.lang.String,DriveUser> |
getCreatedBy()
The created by reference.
|
long |
getCreatedDateTime()
The creation timestamp of this folder.
|
java.lang.String |
getCTag()
Gets the cTag.
|
java.lang.String |
getETag()
Gets eTag.
|
java.lang.String |
getId()
Gets the OneDrive id of the folder.
|
java.util.HashMap<java.lang.String,DriveUser> |
getLastModifiedBy()
The last modified reference.
|
long |
getLastModifiedDateTime()
The last modified timestamp of this folder.
|
long |
getLastRefresh()
Returns the last refresh time since the folder metadata was fetched from the OneDrive server.
|
java.lang.String |
getName()
Gets the name of the folder.
|
OneFolder |
getParentFolder()
Gets the currents folders parent.
|
java.lang.String |
getRawJson()
Gets the raw JSON which is received from the OneDrive API.
|
long |
getSize()
Gets the size of this item in bytes.
|
java.lang.String |
getWebUrl()
Gets the URL that displays the resource in the browser.
|
OneFolder |
refresh()
Refreshes the metadata of this folder.
|
java.lang.String |
toString() |
OneUploadFile |
uploadFile(java.io.File file)
Creates a resumable upload Session for a file.
|
java.lang.String getId()
java.lang.String getName()
java.lang.String getCTag()
java.lang.String getETag()
java.util.HashMap<java.lang.String,DriveUser> getCreatedBy()
long getCreatedDateTime()
java.util.HashMap<java.lang.String,DriveUser> getLastModifiedBy()
long getLastModifiedDateTime()
java.lang.String getWebUrl()
long getSize()
long getLastRefresh()
OneFolder refresh() throws OneDriveException, java.io.IOException
OneDriveException
java.io.IOException
OneFolder getParentFolder() throws java.io.IOException, OneDriveException
java.io.IOException
OneDriveException
java.util.List<OneFolder> getChildFolder() throws java.io.IOException, OneDriveException
java.io.IOException
OneDriveException
java.util.List<OneFile> getChildFiles() throws java.io.IOException, OneDriveException
java.io.IOException
OneDriveException
java.util.List<OneItem> getChildren() throws java.io.IOException, OneDriveException
java.io.IOException
OneDriveException
OneFolder createFolder(java.lang.String name) throws java.io.IOException, OneDriveException
name
- of the new folderjava.io.IOException
OneDriveException
OneFolder createFolder(java.lang.String name, ConflictBehavior behavior) throws java.io.IOException, OneDriveException
name
- of the new folderbehavior
- the behavior in case of name conflictjava.io.IOException
OneDriveException
int getChildCount()
OneUploadFile uploadFile(java.io.File file) throws java.io.IOException, OneDriveException
file
- the file to be uploadedjava.io.IOException
OneDriveException
java.lang.String toString()
toString
in class java.lang.Object
boolean delete() throws OneDriveException, java.io.IOException
OneDriveException
java.io.IOException
java.lang.String getRawJson()