fr.paris.lutece.portal.service.resource
Interface IExtendableResourceService

All Known Implementing Classes:
PageExtendableResourceService

public interface IExtendableResourceService

This interface is used to fetch the IExtendableResource. The implementations are developed in each plugins that have a IExtendableResource.


Method Summary
 IExtendableResource getResource(String strIdResource, String strResourceType)
          Gets the resource.
 String getResourceType()
          Gets the resource type.
 String getResourceTypeDescription(Locale locale)
          Gets the description of the resource type.
 String getResourceUrl(String strIdResource, String strResourceType)
          Get the main URL to access a resource
 boolean isInvoked(String strResourceType)
          Checks if is invoked.
 

Method Detail

isInvoked

boolean isInvoked(String strResourceType)
Checks if is invoked.

Parameters:
strResourceType - the str resource type
Returns:
true, if is invoked

getResource

IExtendableResource getResource(String strIdResource,
                                String strResourceType)
Gets the resource.

Parameters:
strIdResource - the str id resource
strResourceType - the str resource type
Returns:
the resource

getResourceType

String getResourceType()
Gets the resource type.

Returns:
the resource type.

getResourceTypeDescription

String getResourceTypeDescription(Locale locale)
Gets the description of the resource type.

Parameters:
locale - The locale to use
Returns:
the description of the resource type.

getResourceUrl

String getResourceUrl(String strIdResource,
                      String strResourceType)
Get the main URL to access a resource

Parameters:
strIdResource - The id of the resource
strResourceType - The type of a resource
Returns:
The main URL to access a resource, or null if the resource has no main URL


Copyright © 2014 Mairie de Paris. All Rights Reserved.