Class PageExtendableResourceService
- java.lang.Object
-
- fr.paris.lutece.portal.service.page.PageExtendableResourceService
-
- All Implemented Interfaces:
IExtendableResourceService
public class PageExtendableResourceService extends Object implements IExtendableResourceService
PageExtendableResourceService
-
-
Constructor Summary
Constructors Constructor Description PageExtendableResourceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IExtendableResourcegetResource(String strIdResource, String strResourceType)Gets the resource.StringgetResourceType()Gets the resource type.StringgetResourceTypeDescription(Locale locale)Gets the description of the resource type.StringgetResourceUrl(String strIdResource, String strResourceType)Get the main URL to access a resourcebooleanisInvoked(String strResourceType)Checks if is invoked.
-
-
-
Method Detail
-
isInvoked
public boolean isInvoked(String strResourceType)
Checks if is invoked.- Specified by:
isInvokedin interfaceIExtendableResourceService- Parameters:
strResourceType- the str resource type- Returns:
- true, if is invoked
-
getResource
public IExtendableResource getResource(String strIdResource, String strResourceType)
Gets the resource.- Specified by:
getResourcein interfaceIExtendableResourceService- Parameters:
strIdResource- the str id resourcestrResourceType- the str resource type- Returns:
- the resource
-
getResourceType
public String getResourceType()
Gets the resource type.- Specified by:
getResourceTypein interfaceIExtendableResourceService- Returns:
- the resource type.
-
getResourceTypeDescription
public String getResourceTypeDescription(Locale locale)
Gets the description of the resource type.- Specified by:
getResourceTypeDescriptionin interfaceIExtendableResourceService- 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:
getResourceUrlin interfaceIExtendableResourceService- Parameters:
strIdResource- The id of the resourcestrResourceType- The type of a resource- Returns:
- The main URL to access a resource, or null if the resource has no main URL
-
-