public void createVirtualFolder(OAuthToken token, String virtualFolderName) throws IOException, CloudHttpException
{
CloudApp app = new CloudApp("appname", "key", "secret", "redirectURI");
CloudClientContext context = new CloudClientContext(app, token);
CloudClient client = new CloudClient(context);
VirtualFolderMetadata vfm = client.createVirtualFolder(virtualFolderName);
System.out.println("The virtual folder " + vfm.getName() + " has been created.");
}
public void deleteVirtualFolder(OAuthToken token, String virtualFolderName, boolean forceIfTrashPresent) throws IOException, CloudHttpException
{
CloudApp app = new CloudApp("appname", "key", "secret", "redirectURI");
CloudClientContext context = new CloudClientContext(app, token);
CloudClient client = new CloudClient(context);
client.deleteVirtualFolder(virtualFolderName, forceIfTrashPresent);
}
public void renameVirtualFolder(OAuthToken token, String oldName, String newName) throws IOException, CloudHttpException
{
CloudApp app = new CloudApp("appname", "key", "secret", "redirectURI");
CloudClientContext context = new CloudClientContext(app, token);
CloudClient client = new CloudClient(context);
VirtualFolderMetadata vfm = client.renameVirtualFolder(oldName, newName);
System.out.println("The virtual folder " + oldName + " has been renamed " + vfm.getName());
}
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.