com.sap.portal.resource.repository.branding

Interface IBrandingLoader


public interface IBrandingLoader

Use to load branding resources stored on the portal system from the active version. Theme-specific resources are loaded, if available.


Method Summary
 URI getResourceURI(String resourcePath)
          Returns the URI of the requested resource.
 void includeResource(String resourcePath, IPortalComponentRequest request, IPortalComponentResponse response)
          Includes the active version of the requested resource in the specified response.
 void includeResource(String resourcePath, String resourceType, IPortalComponentRequest request, IPortalComponentResponse response)
          Includes the active version of the requested resource in the specified response.
 

Method Detail

getResourceURI

URI getResourceURI(String resourcePath)
Returns the URI of the requested resource. The returned URI points to the active version of the requested resource. If a specific copy of this resources is available for the active portal theme, the URI for this copy is returned.

Parameters:
resourcePath - the path to the requested resource
Returns:
The URI of the requested resource

includeResource

void includeResource(String resourcePath,
                     String resourceType,
                     IPortalComponentRequest request,
                     IPortalComponentResponse response)
Includes the active version of the requested resource in the specified response. If a specific copy of this resources is available for the active portal theme, this copy is included.

Parameters:
resourcePath - the path to the requested resource
resourceType - the resource type, defined by IResource
request - the portal component request
response - the portal component response

includeResource

void includeResource(String resourcePath,
                     IPortalComponentRequest request,
                     IPortalComponentResponse response)
Includes the active version of the requested resource in the specified response. The resource type is determined according to the requested resource file extension. If a specific copy of this resources is available for the active portal theme, this copy is included.
Supported file extensions:
  • .css - mapped to IResource.CSS
  • .jpg, .png, .gif - mapped to IResource.IMAGE

    Calling this method for a resource with an unsupported extension causes a RuntimeException

    Parameters:
    resourcePath - the requested resource path
    request - the portal component request
    response - the portal component response
  • Access Rights

    This class can be accessed from:

    
    
    SC DC Public Part ACH
    [sap.com] EP-RUNTIME [sap.com] tc/ep/application/branding/api api EP-PIN


    Copyright 2015 SAP AG Complete Copyright Notice