|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.client.packages.WorkingSetManager
public class WorkingSetManager
Constructor Summary | |
---|---|
WorkingSetManager()
|
Method Summary | |
---|---|
void |
applyTemporalWorkingSetForFactTypes(String packageName,
Set<String> factTypes,
com.google.gwt.user.client.Command done)
|
void |
applyWorkingSets(String packageName,
Set<RuleAsset> 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<RuleAsset> |
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. |
CustomFormConfiguration |
getCustomFormConfiguration(String packageName,
String factType,
String fieldName)
Returns the associated CustomFormConfiguration for a given FactType and FieldName. |
Set<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,
RuleAsset 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<RuleAsset> 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 void applyTemporalWorkingSetForFactTypes(String packageName, Set<String> factTypes, com.google.gwt.user.client.Command done)
public Set<RuleAsset> 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, RuleAsset 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<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 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 |