org.opennms.netmgt.dao.support
Class GenericIndexResourceType

java.lang.Object
  extended by org.opennms.netmgt.dao.support.GenericIndexResourceType
All Implemented Interfaces:
OnmsResourceType

public class GenericIndexResourceType
extends Object
implements OnmsResourceType


Nested Class Summary
 class GenericIndexResourceType.AttributeLoader
           
 
Constructor Summary
GenericIndexResourceType(ResourceDao resourceDao, String name, String label, String resourceLabelExpression, StorageStrategy storageStrategy)
           
 
Method Summary
 String getLabel()
           
 String getLinkForResource(OnmsResource resource)
           
 String getName()
           
 List<String> getQueryableIndexesForNode(int nodeId)
           
 String getRelativePathForResource(int nodeId, String index)
           
 OnmsResource getResourceByNodeAndIndex(int nodeId, String index)
           
 List<OnmsResource> getResourcesForDomain(String domain)
           
 List<OnmsResource> getResourcesForNode(int nodeId)
           
 StorageStrategy getStorageStrategy()
           
 boolean isResourceTypeOnDomain(String domain)
          This resource type is never available for domains.
 boolean isResourceTypeOnNode(int nodeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericIndexResourceType

public GenericIndexResourceType(ResourceDao resourceDao,
                                String name,
                                String label,
                                String resourceLabelExpression,
                                StorageStrategy storageStrategy)
Method Detail

getName

public String getName()
Specified by:
getName in interface OnmsResourceType

getLabel

public String getLabel()
Specified by:
getLabel in interface OnmsResourceType

getStorageStrategy

public StorageStrategy getStorageStrategy()

isResourceTypeOnNode

public boolean isResourceTypeOnNode(int nodeId)
Specified by:
isResourceTypeOnNode in interface OnmsResourceType

getResourcesForNode

public List<OnmsResource> getResourcesForNode(int nodeId)
Specified by:
getResourcesForNode in interface OnmsResourceType

getQueryableIndexesForNode

public List<String> getQueryableIndexesForNode(int nodeId)

getResourceByNodeAndIndex

public OnmsResource getResourceByNodeAndIndex(int nodeId,
                                              String index)

getRelativePathForResource

public String getRelativePathForResource(int nodeId,
                                         String index)

isResourceTypeOnDomain

public boolean isResourceTypeOnDomain(String domain)
This resource type is never available for domains. Only the interface resource type is available for domains.

Specified by:
isResourceTypeOnDomain in interface OnmsResourceType

getResourcesForDomain

public List<OnmsResource> getResourcesForDomain(String domain)
Specified by:
getResourcesForDomain in interface OnmsResourceType

getLinkForResource

public String getLinkForResource(OnmsResource resource)
Specified by:
getLinkForResource in interface OnmsResourceType


Copyright © 2009. All Rights Reserved.