Package org.geoforge.plgbackuprestore4gfr.actioncontroller

Source Code of org.geoforge.plgbackuprestore4gfr.actioncontroller.GfrAcrPlgBckRstSpcWrk

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.geoforge.plgbackuprestore4gfr.actioncontroller;

import java.util.logging.Logger;
import org.geoforge.guillc.actioncontroller.GfrAcrAbs;
import org.geoforge.guillc.optionpane.GfrOptionPaneAbs;
import org.geoforge.java.util.logging.filehandler.FileHandlerLogger;
import org.geoforge.plgbackuprestore4gfr.action.ActionChildBckSpcWrk;
import org.geoforge.plgbackuprestore4gfr.actionmanager.GfrAmrPlgBckRstSpcWrk;

/**
*
* @author robert
*
* memo: name of public methods comes from actinId + "Handler" (suffix)
* ie. action's id = "doThisJob" ==> public method's controller: "doThisJobHandler()"
*/
public class GfrAcrPlgBckRstSpcWrk extends GfrAcrAbs
{
   // ----
    // begin: instantiate logger for this class
    final private static Logger _LOGGER_ = Logger.getLogger(GfrAcrPlgBckRstSpcWrk.class.getName());

    static
    {
        GfrAcrPlgBckRstSpcWrk._LOGGER_.addHandler(FileHandlerLogger.s_getInstance());
    }

    // end: instantiate logger for this class
    // ----
   
   public GfrAcrPlgBckRstSpcWrk() throws Exception
   {
      super(
              new GfrAmrPlgBckRstSpcWrk()
              );
   }
  
   public void backupWorkspaceHandler()
   {
      String strPathSource = ActionChildBckSpcWrk.s_getInstance().getChild();

      if (strPathSource == null)
      {
         String str = "backupWorkspaceHandler(): strPathSource == null";
         GfrAcrPlgBckRstSpcWrk._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(null, str);
         return;
      }
     
      String strTodo = "TODO: strPathSource=" + strPathSource;
      GfrAcrPlgBckRstSpcWrk._LOGGER_.info(strTodo);
      GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
   }
  
   public void restoreWorkspacesHandler()
   {
      GfrAcrPlgBckRstSpcWrk._LOGGER_.info("TODO");
      GfrOptionPaneAbs.s_showDialogInfo(null, "TODO: restoreWorkspacesHandler()");
   }
  
   public void backupWorkspacesHandler()
   {
      GfrAcrPlgBckRstSpcWrk._LOGGER_.info("TODO");
      GfrOptionPaneAbs.s_showDialogInfo(null, "TODO: backupWorkspacesHandler()");
   }
}
TOP

Related Classes of org.geoforge.plgbackuprestore4gfr.actioncontroller.GfrAcrPlgBckRstSpcWrk

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.