fr.ifremer.isisfish.datastore
Class ExportStorage

java.lang.Object
  extended by fr.ifremer.isisfish.datastore.VersionStorage
      extended by fr.ifremer.isisfish.datastore.CodeSourceStorage
          extended by fr.ifremer.isisfish.datastore.JavaSourceStorage
              extended by fr.ifremer.isisfish.datastore.ExportStorage
All Implemented Interfaces:
Docable
Direct Known Subclasses:
SensitivityExportStorage

public class ExportStorage
extends JavaSourceStorage

Gestion des fichers VCS de type Export (appartenant au module exports). Created: 18 août 2005 15:07:36 CEST

Version:
$Revision: 3627 $ Last update: $Date: 2012-03-02 14:08:28 +0100 (Fri, 02 Mar 2012) $ by : $Author: echatellier $
Author:
Grégoire DESSARD

Nested Class Summary
 
Nested classes/interfaces inherited from class fr.ifremer.isisfish.datastore.CodeSourceStorage
CodeSourceStorage.Location
 
Field Summary
static String EXPORT_PATH
           
static String EXPORT_TEMPLATE
          Template freemarker pour les scripts d'export .
 
Fields inherited from class fr.ifremer.isisfish.datastore.JavaSourceStorage
PARAM_PREFIX
 
Fields inherited from class fr.ifremer.isisfish.datastore.CodeSourceStorage
content, lastContentLength, lastContentUpdate, name
 
Fields inherited from class fr.ifremer.isisfish.datastore.VersionStorage
changeListeners, file, root
 
Constructor Summary
protected ExportStorage(File rootSrc, File directory, String name)
          Constructeur.
 
Method Summary
static void checkout()
           
static ExportStorage createExport(String name, CodeSourceStorage.Location location)
          Create new export.
static File getCommunityExportDirectory()
          Get community VCS export directory.
 String getDescription()
          Be ware this method require to instanciate a Export, so it would be better to call as often as possible.
static ExportStorage getExport(String name, CodeSourceStorage.Location... location)
          Retourne le storage pour l'export demandée
static File getExportDirectory()
          Get context (official VCS) export directory.
static List<String> getExportNames()
          Retourne la liste des noms de toutes les régions disponible en local
 Export getNewExportInstance()
          Retourne une nouvelle instance de la regle.
 
Methods inherited from class fr.ifremer.isisfish.datastore.JavaSourceStorage
compile, doJavadoc, getCodeClass, getFieldDoc, getFieldDoc, getFQN, getName, getNewInstance, getParamAsString, getParameterDoc, getParameterNames, getParameterNames, getParameterType, getParameterValue, setParameterValue
 
Methods inherited from class fr.ifremer.isisfish.datastore.CodeSourceStorage
exists, getContent, getFiles, getName, nonEmptyLocation, prepare, reload, setContent, setContent
 
Methods inherited from class fr.ifremer.isisfish.datastore.VersionStorage
add, addStorageChangeListener, checkout, commit, delete, diff, fireDataChanged, getCommunityDatabaseDirectory, getCommunityVCS, getContextDatabaseDirectory, getCurrentVCS, getCurrentVCS, getFile, getFiles, getRemoteStorageNames, getRoot, getStorageNames, getVCS, isOnRemote, isUpToDate, isVersionnableFile, removeStorageChangeListener, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPORT_PATH

public static final String EXPORT_PATH
See Also:
Constant Field Values

EXPORT_TEMPLATE

public static final String EXPORT_TEMPLATE
Template freemarker pour les scripts d'export .

See Also:
Constant Field Values
Constructor Detail

ExportStorage

protected ExportStorage(File rootSrc,
                        File directory,
                        String name)
Constructeur.

Parameters:
rootSrc - le repertoire root de stockage des exports
directory - le repertoire de l'export
name - le nom de l'export
Method Detail

getExportDirectory

public static File getExportDirectory()
Get context (official VCS) export directory.

Returns:
context export directory

getCommunityExportDirectory

public static File getCommunityExportDirectory()
Get community VCS export directory.

Returns:
community export directory

getNewExportInstance

public Export getNewExportInstance()
                            throws IsisFishException
Retourne une nouvelle instance de la regle. Compile le fichier si besoin

Returns:
une nouvelle instance de la classe d'export
Throws:
IsisFishException

getExport

public static ExportStorage getExport(String name,
                                      CodeSourceStorage.Location... location)
Retourne le storage pour l'export demandée

Parameters:
name - le nom de l'export souhaitée
location - location to open storage file
Returns:
Le storage pour l'export

createExport

public static ExportStorage createExport(String name,
                                         CodeSourceStorage.Location location)
Create new export.

Parameters:
name - new export to create
location - location to create storage file
Returns:
new export storage

getExportNames

public static List<String> getExportNames()
Retourne la liste des noms de toutes les régions disponible en local

Returns:
la liste des noms de toutes les régions disponible en local

checkout

public static void checkout()
                     throws VCSException
Throws:
VCSException

getDescription

public String getDescription()
Be ware this method require to instanciate a Export, so it would be better to call as often as possible.

Specified by:
getDescription in interface Docable
Overrides:
getDescription in class JavaSourceStorage
Returns:
the description of the instanciate Export
See Also:
Doc, Docable


Copyright © 1999-2012 CodeLutin. All Rights Reserved.