public abstract class AbstractTopLevelResourceType extends Object implements OnmsResourceType
Constructor and Description |
---|
AbstractTopLevelResourceType() |
Modifier and Type | Method and Description |
---|---|
OnmsResource |
getChildByName(OnmsResource parent,
String name)
Retrieves a child resource with the given name from the parent.
|
abstract OnmsResource |
getResourceByName(String name) |
List<OnmsResource> |
getResourcesForParent(OnmsResource parent)
Returns the set of resources that are available on the given
parent.
|
abstract List<OnmsResource> |
getTopLevelResources() |
boolean |
isResourceTypeOnParent(OnmsResource parent)
Returns true if one on more instances of the resource type
are present on the parent resource.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabel, getLinkForResource, getName
public boolean isResourceTypeOnParent(OnmsResource parent)
OnmsResourceType
isResourceTypeOnParent
in interface OnmsResourceType
public List<OnmsResource> getResourcesForParent(OnmsResource parent)
OnmsResourceType
getResourcesForParent
in interface OnmsResourceType
public OnmsResource getChildByName(OnmsResource parent, String name)
OnmsResourceType
getChildByName
in interface OnmsResourceType
public abstract List<OnmsResource> getTopLevelResources()
public abstract OnmsResource getResourceByName(String name)
Copyright © 2017. All rights reserved.