fr.paris.lutece.portal.service.page
Class PageExtendableResourceService

java.lang.Object
  extended by fr.paris.lutece.portal.service.page.PageExtendableResourceService
All Implemented Interfaces:
IExtendableResourceService

public class PageExtendableResourceService
extends Object
implements IExtendableResourceService

PageExtendableResourceService


Constructor Summary
PageExtendableResourceService()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageExtendableResourceService

public PageExtendableResourceService()
Method Detail

isInvoked

public boolean isInvoked(String strResourceType)
Checks if is invoked.

Specified by:
isInvoked in interface IExtendableResourceService
Parameters:
strResourceType - the str resource type
Returns:
true, if is invoked

getResource

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

Specified by:
getResource in interface IExtendableResourceService
Parameters:
strIdResource - the str id resource
strResourceType - the str resource type
Returns:
the resource

getResourceType

public String getResourceType()
Gets the resource type.

Specified by:
getResourceType in interface IExtendableResourceService
Returns:
the resource type.

getResourceTypeDescription

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

Specified by:
getResourceTypeDescription in interface IExtendableResourceService
Parameters:
locale - The locale to use
Returns:
the description of the resource type.

getResourceUrl

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

Specified by:
getResourceUrl in interface IExtendableResourceService
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.