Class DatabaseResourceProvider

  • All Implemented Interfaces:
    IResourceProvider

    public class DatabaseResourceProvider
    extends java.lang.Object
    implements IResourceProvider
    Provider for database resources
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<IResource> getListResources​(java.lang.String strResourceTypeName)
      Get the list of resources managed by this provider that have a given resource type
      IResource getResource​(java.lang.String strIdResource, java.lang.String strResourceTypeName)
      Get a resource.
      java.util.List<IResourceType> getResourceTypeList()
      Get the list of resource types managed by this provider
      boolean isResourceTypeManaged​(java.lang.String strResourceTypeName)
      Check if a resource type is managed by this provider
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatabaseResourceProvider

        public DatabaseResourceProvider()
    • Method Detail

      • getResourceTypeList

        public java.util.List<IResourceType> getResourceTypeList()
        Get the list of resource types managed by this provider
        Specified by:
        getResourceTypeList in interface IResourceProvider
        Returns:
        The list of resource types managed by this provider
      • isResourceTypeManaged

        public boolean isResourceTypeManaged​(java.lang.String strResourceTypeName)
        Check if a resource type is managed by this provider
        Specified by:
        isResourceTypeManaged in interface IResourceProvider
        Parameters:
        strResourceTypeName - The resource type
        Returns:
        True if the resource type is managed by this provider, false otherwise
      • getResource

        public IResource getResource​(java.lang.String strIdResource,
                                     java.lang.String strResourceTypeName)
        Get a resource. The resources is assured to be associated with this provider.
        Specified by:
        getResource in interface IResourceProvider
        Parameters:
        strIdResource - The id of the resource
        strResourceTypeName - the resource type
        Returns:
        The resource, or null if no resource is associated with the given resource id and resource type for this provider
      • getListResources

        public java.util.List<IResource> getListResources​(java.lang.String strResourceTypeName)
        Get the list of resources managed by this provider that have a given resource type
        Specified by:
        getListResources in interface IResourceProvider
        Parameters:
        strResourceTypeName - The resource type
        Returns:
        The list of resources, or an empty list if no resource is associated with the resource type