Class AbstractTopLevelResourceType

    • Constructor Detail

      • AbstractTopLevelResourceType

        public AbstractTopLevelResourceType()
    • Method Detail

      • isResourceTypeOnParent

        public boolean isResourceTypeOnParent​(OnmsResource parent)
        Description copied from interface: OnmsResourceType
        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.
        Specified by:
        isResourceTypeOnParent in interface OnmsResourceType
      • getResourcesForParent

        public List<OnmsResource> getResourcesForParent​(OnmsResource parent)
        Description copied from interface: OnmsResourceType
        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.
        Specified by:
        getResourcesForParent in interface OnmsResourceType
      • getTopLevelResources

        public abstract List<OnmsResource> getTopLevelResources()