cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods
Class CreateFolderMethod

java.lang.Object
  extended by cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
      extended by cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.CreateFolderMethod

public class CreateFolderMethod
extends BaseBoxMethod

Author:
Jimmy

Field Summary
 
Fields inherited from class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
apiRequestFormat, apiUploadUrlPrefix, apiUrlPrefix, apiVersion, config, httpManager, soapApiUrl, xmlApiUrl
 
Constructor Summary
CreateFolderMethod()
           
 
Method Summary
 CreateFolderResponse createFolder(CreateFolderRequest createFolderRequest)
          This method creates a new folder.
 
Methods inherited from class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
getBaseSoapDocument, getElementByActionName, getRestUrl, getSoapElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateFolderMethod

public CreateFolderMethod()
Method Detail

createFolder

public CreateFolderResponse createFolder(CreateFolderRequest createFolderRequest)
                                  throws java.io.IOException,
                                         BoxException
This method creates a new folder. 'parent_id' param is the id of a folder in which a new folder will be created, 'name' param is the name of a new folder. Set 'share' to 1 if you want to share a folder publicly. On a successful result, the status will be 'create_ok'. If the result wasn't successful, status field can be: 'e_no_parent_folder', 'not_logged_in', 'application_r'stricted'.

Parameters:
createFolderRequest - request
Returns:
response
Throws:
java.io.IOException - io exception
BoxException - box exception