@ApplicationScoped public class WorkingSetManager extends Object
| Constructor and Description |
|---|
WorkingSetManager() |
| Modifier and Type | Method and Description |
|---|---|
WorkingSetSettings |
getActiveSettings(Path resource) |
Collection<WorkingSetConfigData> |
getActiveWorkingSets(Path resource)
Returns the active WorkingSets for a package, or null if any.
|
CustomFormConfiguration |
getCustomFormConfiguration(Path resource,
String factType,
String fieldName)
Returns the associated CustomFormConfiguration for a given FactType and FieldName.
|
Set<ConstraintConfiguration> |
getFieldContraints(Path resource,
String factType,
String fieldName)
Returns a Set of Constraints for a Fact Type's field.
|
boolean |
isAutoVerifierEnabled()
TODO: We need to store/retrieve this value from repository
|
boolean |
isWorkingSetActive(Path resource,
Path workingSet)
Returns whether the given (WorkingSet) RuleSet is active in a project or not.
|
void |
onWorkingSetApplied(OnWorkingSetApplied event) |
void |
onWorkingSetDisabled(OnWorkingSetDisabled event) |
void |
removeWorkingSets(Path resource) |
void |
setAutoVerifierEnabled(boolean autoVerifierEnabled)
TODO: We need to store/retrieve this value from repository
|
public void onWorkingSetApplied(@Observes
OnWorkingSetApplied event)
public void onWorkingSetDisabled(@Observes
OnWorkingSetDisabled event)
public Collection<WorkingSetConfigData> getActiveWorkingSets(Path resource)
resource - the resource - part of a projectpublic WorkingSetSettings getActiveSettings(Path resource)
public void removeWorkingSets(Path resource)
public boolean isWorkingSetActive(Path resource, Path workingSet)
resource - the resource.workingSet - the (WorkingSet) RuleSetpublic Set<ConstraintConfiguration> getFieldContraints(Path resource, String factType, String fieldName)
resource - the resource.factType - the Fact Type (Short class name)fieldName - the field namepublic boolean isAutoVerifierEnabled()
public void setAutoVerifierEnabled(boolean autoVerifierEnabled)
public CustomFormConfiguration getCustomFormConfiguration(Path resource, String factType, String fieldName)
resource - the resource (part of of a project). Used to get the active
working sets of the active resource projectfactType - The short class name of the Fact TypefieldName - The field nameCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.