org.rhq.enterprise.server.resource.metadata
Class ResourceMetadataManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.resource.metadata.ResourceMetadataManagerBean
All Implemented Interfaces:
ResourceMetadataManagerLocal

public class ResourceMetadataManagerBean
extends Object
implements ResourceMetadataManagerLocal

This class manages the metadata for resources. Plugins are registered against this bean so that their metadata can be pulled out and stored as necessary.

Author:
Greg Hinkle, Heiko W. Rupp, John Mazzitelli, Ian Springer

Constructor Summary
ResourceMetadataManagerBean()
           
 
Method Summary
 void completeRemoveResourceType(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.resource.ResourceType existingType)
          Exists only to for transactional boundary reasons.
 void getPluginTypes(org.rhq.core.domain.auth.Subject subject, String pluginName, Set<org.rhq.core.domain.resource.ResourceType> legitTypes, Set<org.rhq.core.domain.resource.ResourceType> obsoleteTypes, PluginMetadataManager metadataCache)
          Exists only to for transactional boundary reasons.
 void removeObsoleteSubCategories(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.resource.ResourceType newType, org.rhq.core.domain.resource.ResourceType existingType)
          Remove all subcategory definitions that are in the existing type but not in the new type.
 void removeObsoleteTypes(org.rhq.core.domain.auth.Subject subject, String pluginName, PluginMetadataManager metadataCache)
           
 void updateDriftMetadata(org.rhq.core.domain.resource.ResourceType existingType, org.rhq.core.domain.resource.ResourceType resourceType)
          TODO: do we want to create a driftMetadataManager SLSB and put this in there
 void updateTypes(Set<org.rhq.core.domain.resource.ResourceType> resourceTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMetadataManagerBean

public ResourceMetadataManagerBean()
Method Detail

updateTypes

public void updateTypes(Set<org.rhq.core.domain.resource.ResourceType> resourceTypes)
                 throws Exception
Specified by:
updateTypes in interface ResourceMetadataManagerLocal
Throws:
Exception

removeObsoleteTypes

public void removeObsoleteTypes(org.rhq.core.domain.auth.Subject subject,
                                String pluginName,
                                PluginMetadataManager metadataCache)
Specified by:
removeObsoleteTypes in interface ResourceMetadataManagerLocal

getPluginTypes

public void getPluginTypes(org.rhq.core.domain.auth.Subject subject,
                           String pluginName,
                           Set<org.rhq.core.domain.resource.ResourceType> legitTypes,
                           Set<org.rhq.core.domain.resource.ResourceType> obsoleteTypes,
                           PluginMetadataManager metadataCache)
Description copied from interface: ResourceMetadataManagerLocal
Exists only to for transactional boundary reasons. Not for general consumption.

Specified by:
getPluginTypes in interface ResourceMetadataManagerLocal

completeRemoveResourceType

public void completeRemoveResourceType(org.rhq.core.domain.auth.Subject subject,
                                       org.rhq.core.domain.resource.ResourceType existingType)
Description copied from interface: ResourceMetadataManagerLocal
Exists only to for transactional boundary reasons. Not for general consumption.

Specified by:
completeRemoveResourceType in interface ResourceMetadataManagerLocal

updateDriftMetadata

public void updateDriftMetadata(org.rhq.core.domain.resource.ResourceType existingType,
                                org.rhq.core.domain.resource.ResourceType resourceType)
Description copied from interface: ResourceMetadataManagerLocal
TODO: do we want to create a driftMetadataManager SLSB and put this in there

Specified by:
updateDriftMetadata in interface ResourceMetadataManagerLocal

removeObsoleteSubCategories

public void removeObsoleteSubCategories(org.rhq.core.domain.auth.Subject subject,
                                        org.rhq.core.domain.resource.ResourceType newType,
                                        org.rhq.core.domain.resource.ResourceType existingType)
Remove all subcategory definitions that are in the existing type but not in the new type.

Specified by:
removeObsoleteSubCategories in interface ResourceMetadataManagerLocal
Parameters:
newType - new resource type containing updated definitions
existingType - old resource type with existing definitions


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.