|
||||||||||
| 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.JavaSourceStorage
fr.ifremer.isisfish.datastore.RuleStorage
public class RuleStorage
Class permettant de representer une regle de gestion. Une regle de gestion est un fichier Java que l'on compile si besoin. Il se trouve dans le package portant le nom de la region de cette maniere plusieurs region peuvent avoir des regles avec le meme nom mais pas le meme code.
Gere les fichiers VCS de typeRule (package rules)
Created: 17 août 2005 11:11:51 CEST
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class fr.ifremer.isisfish.datastore.CodeSourceStorage |
|---|
CodeSourceStorage.Location |
| Field Summary | |
|---|---|
static String |
RULE_PATH
|
static String |
RULE_TEMPLATE
Template freemarker pour les regles. |
| 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 |
RuleStorage(File rootSrc,
File directory,
String name)
Contruit un nouveau rule storage |
| Method Summary | |
|---|---|
static void |
checkout()
|
static RuleStorage |
createRule(String name,
CodeSourceStorage.Location location)
Create new rule. |
static File |
getCommunityRuleDirectory()
Get community VCS rule directory. |
String |
getDescription()
Be ware this method require to instanciate a Rule, so it would be better to call as often as possible. |
static List<String> |
getNewRemoteRuleNames()
Retourne la liste des noms de toutes les régions disponible sur le serveur VCS qui ne sont pas encore en local |
Rule |
getNewRuleInstance()
Retourne une nouvelle instance de la regle. |
static List<String> |
getNewRuleNames()
Retourne la liste des noms de toutes les régions disponible en local qui ne sont pas encore sur le serveur VCS |
static List<String> |
getRemoteRuleNames()
Retourne la liste des noms de toutes les régions disponible sur le serveur VCS |
static RuleStorage |
getRule(String name,
CodeSourceStorage.Location... location)
Retourne le storage pour la regle demandée |
static File |
getRuleDirectory()
Get context (official VCS) rule directory. |
static List<String> |
getRuleNames()
Retourne le nom de toutes les regles existantes pour cette region |
| 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 |
| Methods inherited from interface fr.ifremer.isisfish.util.Docable |
|---|
getFieldDoc |
| Field Detail |
|---|
public static final String RULE_PATH
public static final String RULE_TEMPLATE
| Constructor Detail |
|---|
protected RuleStorage(File rootSrc,
File directory,
String name)
rootSrc - La region auquelle est attaché la ruledirectory - le repertoire ou devrait se trouver la rulename - le nom de la rule| Method Detail |
|---|
public static File getRuleDirectory()
public static File getCommunityRuleDirectory()
public static List<String> getRuleNames()
public static RuleStorage getRule(String name,
CodeSourceStorage.Location... location)
name - le nom de la regle souhaitéelocation - location to open storage file
public static RuleStorage createRule(String name,
CodeSourceStorage.Location location)
name - new rule to createlocation - location to rule storage file
public Rule getNewRuleInstance()
throws IsisFishException
IsisFishException - if any exception while instanciation
public static void checkout()
throws VCSException
VCSExceptionpublic static List<String> getNewRuleNames()
public static List<String> getRemoteRuleNames()
public static List<String> getNewRemoteRuleNames()
public String getDescription()
getDescription in interface DocablegetDescription in class JavaSourceStorageDoc,
Docable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||