public interface OnmsResourceType
OnmsResourceType interface.
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()
Provides a human-friendly label for this resource type.
|
String |
getLinkForResource(OnmsResource resource)
getLinkForResource
|
String |
getName()
Provides a unique name for this resource type.
|
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.
|
String getName()
String getLabel()
boolean isResourceTypeOnParent(OnmsResource parent)
List<OnmsResource> getResourcesForParent(OnmsResource parent)
OnmsResource getChildByName(OnmsResource parent, String name)
ObjectRetrievalFailureException
- If any exceptions are thrown while searching for the resourceString getLinkForResource(OnmsResource resource)
getLinkForResource
resource
- a OnmsResource
object.String
object.Copyright © 2017. All rights reserved.