API Docs for: 1.3.12
Show:

EcFile Class

Implementation of a file with methods for communicating with repository services

Item Index

Methods

Methods

_delete

(
  • success
  • failure
)

Deletes the file from the repository using repository web services

Parameters:

  • success Callback1

    Callback triggered if successfully deleted

  • failure Callback1

    Callback triggered if error occurs while deleting

create

(
  • name
  • base64Data
  • mimeType
)
EcFile static

Factory method for creating a file with certain values

Parameters:

  • name String

    Name of the file to be created

  • base64Data String

    Base 64 encoded file data

  • mimeType String

    MIME Type of the file

Returns:

EcFile:

The file created

get

(
  • id
  • success
  • failure
)
static

Retrieves a file from the server specified by it's ID

Parameters:

  • id String

    ID of the file data to be retrieved

  • success Callback1

    Callback triggered if successfully retrieved from the server, returns the retrieved file

  • failure Callback1

    Callback triggered if error occurs while retrieving file from server

save

(
  • success
  • failure
)

Saves this file in the repository using the repository web services

Parameters:

  • success Callback1

    Callback triggered if successfully saved

  • failure Callback1

    Callback triggered if error occurs while saving