Пример #1
0
  public String getDefaultDirectory() {

    Log.log("Getting default directory");

    String defaultDirectory = ConfigFactory.getLocalConfig().getProperty(PARAM_DEFAULT_DIRECTORY);
    if (defaultDirectory == null) {
      defaultDirectory = "";
    }

    return defaultDirectory;
  }
Пример #2
0
  /** Inicializa el applet. */
  public void init() {

    Log.log("Initiating Applet 1.0");

    sessionId = getParameter("sessionID");
    Log.log("sessionID: " + sessionId);

    // Cargar la configuración local
    LocalConfig localConfig = ConfigFactory.getLocalConfig();

    // Establecer si se eliminarán los ficheros anezados por defecto
    setDeleteFiles("true".equalsIgnoreCase(localConfig.getProperty(PARAM_DELETE_UPLOADED_FILES)));

    this.initiated = true;

    Log.log("Applet initiated");
  }