Class DatabaseResourceProvider
java.lang.Object
fr.paris.lutece.plugins.resource.service.provider.DatabaseResourceProvider
- All Implemented Interfaces:
IResourceProvider
Provider for database resources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetListResources(String strResourceTypeName) Get the list of resources managed by this provider that have a given resource typegetResource(String strIdResource, String strResourceTypeName) Get a resource.Get the list of resource types managed by this providerbooleanisResourceTypeManaged(String strResourceTypeName) Check if a resource type is managed by this provider
-
Constructor Details
-
DatabaseResourceProvider
public DatabaseResourceProvider()
-
-
Method Details
-
getResourceTypeList
Get the list of resource types managed by this provider- Specified by:
getResourceTypeListin interfaceIResourceProvider- Returns:
- The list of resource types managed by this provider
-
isResourceTypeManaged
Check if a resource type is managed by this provider- Specified by:
isResourceTypeManagedin interfaceIResourceProvider- Parameters:
strResourceTypeName- The resource type- Returns:
- True if the resource type is managed by this provider, false otherwise
-
getResource
Get a resource. The resources is assured to be associated with this provider.- Specified by:
getResourcein interfaceIResourceProvider- Parameters:
strIdResource- The id of the resourcestrResourceTypeName- 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
Get the list of resources managed by this provider that have a given resource type- Specified by:
getListResourcesin interfaceIResourceProvider- Parameters:
strResourceTypeName- The resource type- Returns:
- The list of resources, or an empty list if no resource is associated with the resource type
-