com.sap.portal.resource.repository.branding

Interface IBrandingImporter


public interface IBrandingImporter

Imports application branding resource into the portal. These resources can later be consumed at runtime by using IBrandingLoader


Method Summary
 void importIfModified(String applicationName)
          Imports the branding resources of the specified application to make them available for branding.
 void importIfModified(String namespace, String applicationName)
          Imports the branding resources of the specified application to make them available for branding.
 

Method Detail

importIfModified

void importIfModified(String applicationName)
Imports the branding resources of the specified application to make them available for branding. The import process takes place only if at least one of the application's resources was modified. In this case, all resources will be imported into a new version folder in the Web Resource Repository. If no resources were modified, this method does nothing.

The import process starts from a folder named 'themes' under the specified application's root. This folder must contain a subfolder named 'default' containing the default branding resources. If the 'themes' or 'default' folder does not exist under the specified application, a BrandingException is thrown.

Parameters:
applicationName - the name of the application whose resources to import

importIfModified

void importIfModified(String namespace,
                      String applicationName)
Imports the branding resources of the specified application to make them available for branding. You can specify a namespace for the application. The import process takes place only if at least one of the application's resources was modified. In this case, all resources will be imported into a new version folder in the Web Resource Repository. If no resources were modified, this method does nothing.

The import process starts from a folder named 'themes' under the specified application's root. This folder must contain a subfolder named 'default' containing the default branding resources. If the 'themes' or 'default' folder does not exist under the specified application, a BrandingException is thrown.

Parameters:
namespace - the location in the Web Resource Repository where the resources will be stored. In a hierarchical namespace, use '/' to separate between levels, for example: name1/name2. The total path length of each resource must not exceed 255 characters.
applicationName - the name of the application whose resources to import
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