Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #202 from josejulio/BZ-1298144
Browse files Browse the repository at this point in the history
[BZ 1298144] - Missing "Event Detection" option from the drop down li…
  • Loading branch information
burmanm committed Jan 27, 2016
2 parents c8bc2d1 + 07484f2 commit 1d804ce
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -82,7 +82,7 @@ public ConditionsEditor(SelectItem conditionExpression, ResourceType resourceTyp
* Returns the conditions that this editor currently has in memory.
* This will never be <code>null</code>. This collection serves for new
* or deleted conditions.
*
*
* @return conditions set that was possibly edited by the user
*/
public HashSet<AlertCondition> getConditions() {
Expand All @@ -93,7 +93,7 @@ public HashSet<AlertCondition> getConditions() {
* Returns the conditions that this editor currently has in memory.
* This will never be <code>null</code>. This collection holds modified
* existing conditions.
*
*
* @return modifiedConditions map of modified conditions that exist in the db, key is id
*/
public Map<Integer, AlertCondition> getModifiedConditions() {
Expand Down Expand Up @@ -209,8 +209,10 @@ public void executeAction(ListGridRecord[] selection, Object actionValue) {
private void showConditionEditor(final AlertCondition existingCondition) {

// we need the drift definition templates (if there are any) so we know if we should offer drift conditions as an option
ResourceTypeRepository.Cache.getInstance().getResourceTypes(resourceType.getId(),
EnumSet.of(MetadataType.driftDefinitionTemplates), new ResourceTypeRepository.TypeLoadedCallback() {
ResourceTypeRepository.Cache.getInstance()
.getResourceTypes(resourceType.getId(), EnumSet.of(MetadataType.driftDefinitionTemplates,
MetadataType.events, MetadataType.resourceConfigurationDefinition),
new ResourceTypeRepository.TypeLoadedCallback() {
@Override
public void onTypesLoaded(ResourceType type) {
// the resource type repo caches types - so if this resource type was already cached prior
Expand Down

0 comments on commit 1d804ce

Please sign in to comment.