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

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.PublicUnshareMethod

public class PublicUnshareMethod
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
PublicUnshareMethod()
           
 
Method Summary
 PublicUnshareResponse publicUnshare(PublicUnshareRequest publicUnshareRequest)
          This method unshares a shared file or 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

PublicUnshareMethod

public PublicUnshareMethod()
Method Detail

publicUnshare

public PublicUnshareResponse publicUnshare(PublicUnshareRequest publicUnshareRequest)
                                    throws java.io.IOException,
                                           BoxException
This method unshares a shared file or folder. 'target' param shoud be either 'file' or 'folder', 'target_id' is id of a file or folder to be unshared. On a successful result, the status will be 'unshare_ok'. If the result wasn't successful, the status field can be: 'unshare_error', 'wrong_node', 'not_logged_in', 'application_restricted'.

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