|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.guvnor.client.moduleeditor.drools.WorkingSetManager
public class WorkingSetManager
| Constructor Summary | |
|---|---|
WorkingSetManager()
|
|
| Method Summary | |
|---|---|
void |
applyWorkingSets(String packageName,
Set<Asset> wss,
com.google.gwt.user.client.Command done)
Applies the workingSets' valid facts to SCE. |
void |
applyWorkingSets(String packageName,
String[] wsUUIDs,
com.google.gwt.user.client.Command done)
Convenient method to call applyWorkingSets(java.lang.String, java.util.Set, com.google.gwt.user.client.Command)
when you have the WorkingSets' UUID instead of the WorkingSetConfigData
objects |
Set<Asset> |
getActiveAssets(String packageName)
Returns the active WorkingSets for a package (as RuleAsset), or null if any. |
Set<String> |
getActiveAssetUUIDs(String packageName)
|
Set<WorkingSetConfigData> |
getActiveWorkingSets(String packageName)
Returns the active WorkingSets for a package, or null if any. |
org.drools.ide.common.client.factconstraints.customform.CustomFormConfiguration |
getCustomFormConfiguration(String packageName,
String factType,
String fieldName)
Returns the associated CustomFormConfiguration for a given FactType and FieldName. |
Set<org.drools.ide.common.client.factconstraints.ConstraintConfiguration> |
getFieldContraints(String packageName,
String factType,
String fieldName)
Returns a Set of Constraints for a Fact Type's field. |
static WorkingSetManager |
getInstance()
|
boolean |
isAutoVerifierEnabled()
TODO: We need to store/retrieve this value from repository |
boolean |
isWorkingSetActive(String packageName,
Asset workingSetAsset)
Returns whether the given (WorkingSet) RuleSet is active in a package or not. |
boolean |
isWorkingSetActive(String packageName,
String ruleAssetUUID)
Returns whether the given (WorkingSet) RuleSet is active in a package or not. |
void |
setAutoVerifierEnabled(boolean autoVerifierEnabled)
TODO: We need to store/retrieve this value from repository |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkingSetManager()
| Method Detail |
|---|
public static WorkingSetManager getInstance()
public void applyWorkingSets(String packageName,
String[] wsUUIDs,
com.google.gwt.user.client.Command done)
applyWorkingSets(java.lang.String, java.util.Set, com.google.gwt.user.client.Command)
when you have the WorkingSets' UUID instead of the WorkingSetConfigData
objects
packageName - the package name.wsUUIDs - the set of WorkingSets' UUIDsdone - the command to execute after the SCE and internal map are
refreshed.applyWorkingSets(java.lang.String, java.util.Set, com.google.gwt.user.client.Command)
public void applyWorkingSets(String packageName,
Set<Asset> wss,
com.google.gwt.user.client.Command done)
packageName - the package name.wss - the WorkingSet' assets listdone - the command to execute after the SCE and internal map are
refreshed.public Set<Asset> getActiveAssets(String packageName)
packageName - the package name
public Set<String> getActiveAssetUUIDs(String packageName)
public Set<WorkingSetConfigData> getActiveWorkingSets(String packageName)
packageName - the package name
public boolean isWorkingSetActive(String packageName,
Asset workingSetAsset)
packageName - the package name.workingSetAsset - the (WorkingSet) RuleSet
public boolean isWorkingSetActive(String packageName,
String ruleAssetUUID)
packageName - the package name.workingSetAsset - the (WorkingSet) RuleSet
public Set<org.drools.ide.common.client.factconstraints.ConstraintConfiguration> getFieldContraints(String packageName,
String factType,
String fieldName)
packageName - the package name.factType - the Fact Type (Short class name)fieldName - the field name
public boolean isAutoVerifierEnabled()
public void setAutoVerifierEnabled(boolean autoVerifierEnabled)
public org.drools.ide.common.client.factconstraints.customform.CustomFormConfiguration getCustomFormConfiguration(String packageName,
String factType,
String fieldName)
packageName - the name of the package. Used to get the active
working setsfactType - The short class name of the Fact TypefieldName - The field name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||