public class SimulationPlanStorage extends JavaSourceStorage
Gere les fichiers VCS de type SimulationPlan
(package simulationplans)
Created: 17 août 2005 11:11:51 CEST
CodeSourceStorage.Location
Modifier and Type | Field and Description |
---|---|
protected static Map<String,SimulationPlanStorage> |
plansCache
Instance cache.
|
static String |
SIMULATION_PLAN_PATH |
static String |
SIMULATION_PLAN_TEMPLATE
Template freemarker pour les plans de simulation .
|
protected static Set<StorageChangeListener> |
storageListeners |
PARAM_PREFIX
content, lastContentLength, lastContentUpdate, name
file, root
Modifier | Constructor and Description |
---|---|
protected |
SimulationPlanStorage(File rootSrc,
File directory,
String name)
Construit un nouveau SimulationPlan storage.
|
Modifier and Type | Method and Description |
---|---|
static void |
addStorageListener(StorageChangeListener storageListener) |
static void |
checkout() |
static SimulationPlanStorage |
createSimulationPlan(String name,
CodeSourceStorage.Location location)
Create new simulation plan.
|
static File |
getCommunitySimulationPlanDirectory()
Get community VCS simulation plan directory.
|
String |
getDescription()
Be ware this method require to instanciate a SimulationPlan, so
it would be better to call as often as possible.
|
static List<String> |
getNewRemoteSimulationPlanNames()
Retourne la liste des noms de tous les plans disponibles sur le
serveur VCS qui ne sont pas encore en local
|
static List<String> |
getNewSimulationPlanNames()
Retourne la liste des noms de tous les plans disponibles en local qui
ne sont pas encore sur le serveur VCS.
|
String |
getPackage()
Get package name where script should be declared.
|
static List<String> |
getRemoteSimulationPlanNames()
Retourne la liste des noms de tous les plans disponibles sur le
serveur VCS.
|
static SimulationPlanStorage |
getSimulationPlan(String name,
CodeSourceStorage.Location... location)
Retourne le storage pour le plan demandé.
|
static File |
getSimulationPlanDirectory()
Get context (official VCS) simulation plan directory.
|
static List<String> |
getSimulationPlanNames()
Retourne le nom de toutes les plans existantes
|
static void |
registerWatcher() |
compile, doJavadoc, getCodeClass, getFieldDoc, getFQN, getName, getNewInstance, getParamAsString, getParameterDoc, getParameterNames, getParameterNames, getParameterType, getParameterValue, setParameterValue
exists, getContent, getFiles, getName, nonEmptyLocation, prepare, reload, setContent, setContent
add, checkout, commit, delete, diff, getCommunityDatabaseDirectory, getCommunityVCS, getContextDatabaseDirectory, getCurrentVCS, getCurrentVCS, getFile, getFiles, getRemoteStorageNames, getRoot, getStorageNames, getVCS, isOnRemote, isUpToDate, isVersionnableFile, registerWatcher, update
public static final String SIMULATION_PLAN_PATH
public static final String SIMULATION_PLAN_TEMPLATE
protected static Map<String,SimulationPlanStorage> plansCache
protected static Set<StorageChangeListener> storageListeners
public static void addStorageListener(StorageChangeListener storageListener)
public static void registerWatcher()
public String getPackage()
JavaSourceStorage
getPackage
in class JavaSourceStorage
public static File getSimulationPlanDirectory()
public static File getCommunitySimulationPlanDirectory()
public static List<String> getSimulationPlanNames()
public static SimulationPlanStorage getSimulationPlan(String name, CodeSourceStorage.Location... location)
name
- le nom du plan souhaitélocation
- location to open storage filepublic static SimulationPlanStorage createSimulationPlan(String name, CodeSourceStorage.Location location)
name
- new simulation plan to createlocation
- location to simulation plan storage filepublic static void checkout() throws VCSException
VCSException
public static List<String> getNewSimulationPlanNames()
public static List<String> getRemoteSimulationPlanNames()
public static List<String> getNewRemoteSimulationPlanNames() throws VCSException
VCSException
public String getDescription()
getDescription
in class JavaSourceStorage
Doc
Copyright © 1999–2020 CodeLutin. All rights reserved.