|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.datastore.VersionStorage
fr.ifremer.isisfish.datastore.CodeSourceStorage
fr.ifremer.isisfish.datastore.FormuleStorage
public class FormuleStorage
Formule storage. Created: 4 févr. 2006 16:30:59
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class fr.ifremer.isisfish.datastore.CodeSourceStorage |
|---|
CodeSourceStorage.Location |
| Field Summary | |
|---|---|
protected String |
category
la categorie de la formule |
static String |
FORMULE_PATH
|
static String |
FORMULE_TEMPLATE
Template freemarker pour les formules. |
| 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 | |
|---|---|
FormuleStorage(File rootSrc,
File directory,
String category,
String name,
String extension)
Create new formule storage. |
|
| Method Summary | |
|---|---|
static void |
checkout()
|
static FormuleStorage |
createFormule(String category,
String name,
String extension)
creer une nouvelle formule, si la formule existait deja, elle est ecrasé |
static List<String> |
getCategories()
Retourne toutes les categories existantes dans les formules sauvegardées. |
static List<String> |
getCategories(org.nuiton.topia.TopiaContext context)
Retourne toutes les categories existantes dans les formules sauvegardées ainsi que dans le TopiaContext passé en parametre |
String |
getCategory()
Return formule category name. |
static FormuleStorage |
getCommunityFormule(String category,
String name)
Retourne le storage pour la regle demandée |
static File |
getCommunityFormuleDirectory()
Get community VCS formule directory. |
static FormuleStorage |
getFormule(String category,
String name)
Retourne le storage pour la regle demandée |
static File |
getFormuleDirectory()
Get official VCS formule directory. |
static List<String> |
getFormuleNames(String category)
Retourne toutes les formules sauvegardees |
static List<FormuleStorage> |
getFormules(String category)
Retourne toutes les formules sauvegardees |
static List<Formule> |
getFormules(org.nuiton.topia.TopiaContext context,
String category)
Retourne toutes les formules sauvegardees ainsi que dans le TopiaContext passé en parametre |
| 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 |
| Methods inherited from interface fr.ifremer.isisfish.entities.Formule |
|---|
getContent, getName |
| Field Detail |
|---|
public static final String FORMULE_PATH
public static final String FORMULE_TEMPLATE
protected String category
| Constructor Detail |
|---|
public FormuleStorage(File rootSrc,
File directory,
String category,
String name,
String extension)
rootSrc - le repertoire root de stockage des formulesdirectory - le repertoire des formulescategory - la category de la formulename - le nom de la formuleextension - l'extension a utiliser ".java"| Method Detail |
|---|
public static File getFormuleDirectory()
public static File getCommunityFormuleDirectory()
public String getCategory()
Formule
getCategory in interface Formulepublic static List<FormuleStorage> getFormules(String category)
category - la categorie des formules recherchees
public static List<String> getFormuleNames(String category)
category - la categorie des formules dont on souhiate le nom
public static List<String> getCategories(org.nuiton.topia.TopiaContext context)
context - le context dans lequel il faut faire la recherche
public static List<Formule> getFormules(org.nuiton.topia.TopiaContext context,
String category)
category - la categorie dans lequel il faut faire la recherchecontext - le context dans lequel il faut aussi recherche en plus
des formules sauvegardees en tant que model
public static List<String> getCategories()
public static FormuleStorage getFormule(String category,
String name)
name - le nom de la regle souhaitéecategory - la categorie de la regle
public static FormuleStorage getCommunityFormule(String category,
String name)
name - le nom de la regle souhaitéecategory - la categorie de la regle
public static FormuleStorage createFormule(String category,
String name,
String extension)
throws IOException
category - la category de la formulename - le nom de la formuleextension - le script de la formule
IOException
public static void checkout()
throws VCSException
VCSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||