|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.dao.support.GenericIndexResourceType
public class GenericIndexResourceType
GenericIndexResourceType class.
| Nested Class Summary | |
|---|---|
class |
GenericIndexResourceType.AttributeLoader
|
| Constructor Summary | |
|---|---|
GenericIndexResourceType(ResourceDao resourceDao,
String name,
String label,
String resourceLabelExpression,
StorageStrategy storageStrategy)
Constructor for GenericIndexResourceType. |
|
| Method Summary | |
|---|---|
String |
getLabel()
getLabel |
String |
getLinkForResource(OnmsResource resource)
getLinkForResource |
String |
getName()
getName |
List<String> |
getQueryableIndexesForNode(int nodeId)
getQueryableIndexesForNode |
String |
getRelativePathForResource(int nodeId,
String index)
getRelativePathForResource |
OnmsResource |
getResourceByNodeAndIndex(int nodeId,
String index)
getResourceByNodeAndIndex |
List<OnmsResource> |
getResourcesForDomain(String domain)
Gets a list of resources on a specific domain. |
List<OnmsResource> |
getResourcesForNode(int nodeId)
Gets a list of resources on a specific node. |
StorageStrategy |
getStorageStrategy()
getStorageStrategy |
boolean |
isResourceTypeOnDomain(String domain)
Checks whether this resource type is on a specific domain. |
boolean |
isResourceTypeOnNode(int nodeId)
Checks whether this resource type is on a specific node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericIndexResourceType(ResourceDao resourceDao,
String name,
String label,
String resourceLabelExpression,
StorageStrategy storageStrategy)
Constructor for GenericIndexResourceType.
resourceDao - a ResourceDao object.name - a String object.label - a String object.resourceLabelExpression - a String object.storageStrategy - a StorageStrategy object.| Method Detail |
|---|
public String getName()
getName
getName in interface OnmsResourceTypeString object.public String getLabel()
getLabel
getLabel in interface OnmsResourceTypeString object.public StorageStrategy getStorageStrategy()
getStorageStrategy
StorageStrategy object.public boolean isResourceTypeOnNode(int nodeId)
isResourceTypeOnNode in interface OnmsResourceTypenodeId - node ID to check
public List<OnmsResource> getResourcesForNode(int nodeId)
getResourcesForNode in interface OnmsResourceTypenodeId - node ID for which to get resources
public List<String> getQueryableIndexesForNode(int nodeId)
getQueryableIndexesForNode
nodeId - a int.
List object.
public OnmsResource getResourceByNodeAndIndex(int nodeId,
String index)
getResourceByNodeAndIndex
nodeId - a int.index - a String object.
OnmsResource object.
public String getRelativePathForResource(int nodeId,
String index)
getRelativePathForResource
nodeId - a int.index - a String object.
String object.public boolean isResourceTypeOnDomain(String domain)
isResourceTypeOnDomain in interface OnmsResourceTypedomain - domain to check
public List<OnmsResource> getResourcesForDomain(String domain)
getResourcesForDomain in interface OnmsResourceTypedomain - domain for which to get resources
public String getLinkForResource(OnmsResource resource)
getLinkForResource
getLinkForResource in interface OnmsResourceTyperesource - a OnmsResource object.
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||