public final class NodeSnmpResourceType extends Object implements OnmsResourceType
Constructor and Description |
---|
NodeSnmpResourceType(ResourceStorageDao resourceStorageDao)
Constructor for NodeSnmpResourceType.
|
Modifier and Type | Method and Description |
---|---|
OnmsResource |
getChildByName(OnmsResource parent,
String name)
Retrieves a child resource with the given name from the parent.
|
String |
getLabel()
getLabel
|
String |
getLinkForResource(OnmsResource resource)
getLinkForResource
|
String |
getName()
getName
|
List<OnmsResource> |
getResourcesForParent(OnmsResource parent)
Returns the set of resources that are available on the given
parent.
|
boolean |
isResourceTypeOnParent(OnmsResource parent)
Returns true if one on more instances of the resource type
are present on the parent resource.
|
public NodeSnmpResourceType(ResourceStorageDao resourceStorageDao)
Constructor for NodeSnmpResourceType.
resourceStorageDao
- a ResourceStorageDao
object.public String getName()
getName
getName
in interface OnmsResourceType
String
object.public String getLabel()
getLabel
getLabel
in interface OnmsResourceType
String
object.public String getLinkForResource(OnmsResource resource)
OnmsResourceType
getLinkForResource
getLinkForResource
in interface OnmsResourceType
resource
- a OnmsResource
object.String
object.public boolean isResourceTypeOnParent(OnmsResource parent)
isResourceTypeOnParent
in interface OnmsResourceType
public List<OnmsResource> getResourcesForParent(OnmsResource parent)
getResourcesForParent
in interface OnmsResourceType
public OnmsResource getChildByName(OnmsResource parent, String name)
getChildByName
in interface OnmsResourceType
Copyright © 2020. All rights reserved.