Package fr.ifremer.isisfish.datastore
Class ExportStorage
java.lang.Object
fr.ifremer.isisfish.datastore.VersionStorage
fr.ifremer.isisfish.datastore.CodeSourceStorage
fr.ifremer.isisfish.datastore.JavaSourceStorage
fr.ifremer.isisfish.datastore.ExportStorage
- Direct Known Subclasses:
SensitivityExportStorage
Gestion des fichers VCS de type
ExportInfo
(appartenant au module exports).
Created: 18 août 2005 15:07:36 CEST- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- Grégoire DESSARD <dessard@codelutin.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.ifremer.isisfish.datastore.CodeSourceStorage
CodeSourceStorage.Location
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
Template freemarker pour les scripts d'export .protected static Set<StorageChangeListener>
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
file, root
-
Constructor Summary
ModifierConstructorDescriptionprotected
ExportStorage
(File rootSrc, File directory, String name) Constructeur. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addStorageListener
(StorageChangeListener storageListener) static void
checkout()
static ExportStorage
createExport
(String name, CodeSourceStorage.Location location) Create new export.static File
Get community VCS export directory.Be ware this method require to instantiate a ExportInfo, 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éestatic File
Get context (official VCS) export directory.Retourne la liste des noms de toutes les régions disponible en localGet package name where script should be declared.static void
Methods inherited from class fr.ifremer.isisfish.datastore.JavaSourceStorage
clone, compile, doJavadoc, getCodeClass, getFieldDoc, getFQN, getName, getNewInstance, getParamAsString, getParameterDoc, getParameterNamesAndField, 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, checkout, commit, delete, diff, getCommunityDatabaseDirectory, getCommunityVCS, getContextDatabaseDirectory, getCurrentVCS, getCurrentVCS, getFile, getFiles, getRemoteStorageNames, getRoot, getStorageNames, getVCS, isOnRemote, isUpToDate, isVersionnableFile, registerWatcher, update
-
Field Details
-
EXPORT_PATH
- See Also:
-
EXPORT_TEMPLATE
Template freemarker pour les scripts d'export .- See Also:
-
storageListeners
-
-
Constructor Details
-
ExportStorage
Constructeur.- Parameters:
rootSrc
- le repertoire root de stockage des exportsdirectory
- le repertoire de l'exportname
- le nom de l'export
-
-
Method Details
-
addStorageListener
-
registerWatcher
public static void registerWatcher() -
getPackage
Description copied from class:JavaSourceStorage
Get package name where script should be declared.- Specified by:
getPackage
in classJavaSourceStorage
- Returns:
- package declaration
-
getExportDirectory
Get context (official VCS) export directory.- Returns:
- context export directory
-
getCommunityExportDirectory
Get community VCS export directory.- Returns:
- community export directory
-
getExport
Retourne le storage pour l'export demandée- Parameters:
name
- le nom de l'export souhaitéelocation
- location to open storage file- Returns:
- Le storage pour l'export
-
createExport
Create new export.- Parameters:
name
- new export to createlocation
- location to create storage file- Returns:
- new export storage
-
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
- Throws:
VCSException
-
getDescription
Be ware this method require to instantiate a ExportInfo, so it would be better to call as often as possible.- Overrides:
getDescription
in classJavaSourceStorage
- Returns:
- the description of the instantiate ExportInfo
- See Also:
-