Class GlobalFileService

java.lang.Object
com.bitheads.braincloud.services.GlobalFileService

public class GlobalFileService
extends Object
  • Constructor Details

  • Method Details

    • getFileInfo

      public void getFileInfo​(String fileId, IServerCallback callback)
      Returns information on a file using fileId. Service Name - globalFile Service Operation - ACCEPT_GROUP_INVITATION
      Parameters:
      fileId - the file's ID.
      callback - The method to be invoked when the server response is received
    • getFileInfoSimple

      public void getFileInfoSimple​(String folderPath, String filename, IServerCallback callback)
      Returns information on a file using path and name. Service Name - globalFile Service Operation - GET_FILE_INFO_SIMPLE
      Parameters:
      folderPath - the folder path the file is stored in.
      filename - the name of the file beign sought
      callback - The method to be invoked when the server response is received
    • getGlobalCDNUrl

      public void getGlobalCDNUrl​(String fileId, IServerCallback callback)
      Return CDN url for file for clients that cannot handle redirect. Service Name - globalFile Service Operation - GET_GLOBAL_CDN_URL
      Parameters:
      fileId - the file's ID.
      callback - The method to be invoked when the server response is received
    • getGlobalFileList

      public void getGlobalFileList​(String folderPath, boolean recurse, IServerCallback callback)
      Return CDN url for file for clients that cannot handle redirect. Service Name - globalFile Service Operation - GET_GLOBAL_FILE_LIST
      Parameters:
      folderPath - the folder path the file is stored in.
      recurse - does it recurse?
      callback - The method to be invoked when the server response is received