Ejemplo n.º 1
0
  @Override
  protected JSONObject getJson() throws Exception {
    JSONObject attachmentDescription = attDescription.getJson();

    JSONObject originalFileDescription =
        attachmentDescription.optJSONObject(UploadConstants.ORIGINAL_FILE_KEY);

    return originalFileDescription;
  }
Ejemplo n.º 2
0
  public File getMediaFile() throws Exception {
    File file = null;

    JSONObject originalObj = getJson();
    if (JSONSupport.containsKey(originalObj, UploadConstants.MEDIA_FILE_KEY)) {
      String mediaFileName = originalObj.optString(UploadConstants.MEDIA_FILE_KEY);
      file = new File(attDescription.getMediaDir(), mediaFileName);
    }

    return file;
  }
Ejemplo n.º 3
0
 @Override
 protected void setSavingRequired(boolean flag) {
   attDescription.setSavingRequired(flag);
 }