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