Interface OnmsResourceType

    • Method Detail

      • getName

        String getName()
        Provides a unique name for this resource type.
        Returns:
        unique name
      • getLabel

        String getLabel()
        Provides a human-friendly label for this resource type. It is particularly used in the webUI to describe this resource type.
        Returns:
        human-friendly label
      • isResourceTypeOnParent

        boolean isResourceTypeOnParent​(OnmsResource parent)
        Returns true if one on more instances of the resource type are present on the parent resource. Top-level resource types should always return false.
      • getResourcesForParent

        List<OnmsResource> getResourcesForParent​(OnmsResource parent)
        Returns the set of resources that are available on the given parent. If none are available, i.e. isResourceTypeOnParent() would return false, then an empty list should be returned. Top-level resource types should return the set of top-level resources when parent is null.
      • getChildByName

        OnmsResource getChildByName​(OnmsResource parent,
                                    String name)
        Retrieves a child resource with the given name from the parent.
        Returns:
        null if no resource with the given name was found
        Throws:
        ObjectRetrievalFailureException - If any exceptions are thrown while searching for the resource