public class RuleStorage extends JavaSourceStorage
Gere les fichiers VCS de type Rule
(package rules)
Created: 17 août 2005 11:11:51 CEST
CodeSourceStorage.Location
Modifier and Type | Field and Description |
---|---|
static String |
RULE_PATH |
static String |
RULE_TEMPLATE
Template freemarker pour les regles.
|
protected static Map<String,RuleStorage> |
rulesCache
Instance cache.
|
protected static Set<StorageChangeListener> |
storageListeners |
PARAM_PREFIX
content, lastContentLength, lastContentUpdate, name
file, root
Modifier | Constructor and Description |
---|---|
protected |
RuleStorage(File rootSrc,
File directory,
String name)
Contruit un nouveau rule storage
|
Modifier and Type | Method and Description |
---|---|
static void |
addStorageListener(StorageChangeListener storageListener) |
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
|
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
|
String |
getPackage()
Get package name where script should be declared.
|
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
|
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 RULE_PATH
public static final String RULE_TEMPLATE
protected static Map<String,RuleStorage> rulesCache
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 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 filepublic static RuleStorage createRule(String name, CodeSourceStorage.Location location)
name
- new rule to createlocation
- location to rule storage filepublic static void checkout() throws VCSException
VCSException
public static List<String> getNewRuleNames()
public static List<String> getRemoteRuleNames()
public static List<String> getNewRemoteRuleNames()
public String getDescription()
getDescription
in class JavaSourceStorage
Doc
Copyright © 1999–2020 CodeLutin. All rights reserved.