|
SAP NetWeaver 7.30 SP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResource
The IResource interface is an abstract view of resources.
These resources can either be basic resources like applets, scripts, images,
static pages or more complex resources like xml files or java properties file.
The main purpose of the IResource interface is to provide a uniform way to
access to component and service resources.
The component can fetch a resource from the IPortalComponentRequest interface and add
it to the response calling the IPortalComponentResponse.addResource(IResource) method.
IPropertiesResource,
IResourceInformation,
IPortalComponentRequest.getResource(String, String, String),
IPortalComponentResponse.addResource(IResource)| Field Summary | |
|---|---|
static String |
APPLET
The applet resource type Default scope: public Default extension: none |
static String |
CSS
The CSS resource type Default scope: public Default extension: .css |
static String |
IMAGE
The IMAGE resource type Default scope: public Default extension: .gif |
static String |
JSP
The JSP resource types Default scope: private Default extension: .jsp |
static String |
PAGELET
|
static String |
PRIVATE_SCOPE
private scope constant |
static String |
PROFILE
The PROFILE resource type Default scope: private Default extension: .properties |
static String |
PROPERTY
The PROPERTY resource type for java property files Default scope: private Default extension: .properties |
static String |
PUBLIC_SCOPE
public scope constant |
static String |
SCOPE_SEPARATOR
scope separator |
static String |
SCRIPT
The SCRIPT resource type for javascript code Default scope: public Default extension: .js |
static String |
STATIC_PAGE
The STATIC PAGE resource type for static HTML pages Default scope: public Default extension: .html |
static String |
SYSTEM_RESOURCE
Internal constant for system resources. |
static String |
XML
The XML resource type Default scope: private Default extension: .xml |
| Method Summary | |
|---|---|
IResourceInformation |
getResourceInformation()
Returns the IResourceInformation object attached to this resource |
void |
init(IResourceInformation resourceInformation)
All resources have to provide an init method which is called by the ResourceManager just after the creation of new instance of the resource. |
boolean |
isAvailable()
Checks whether the resource exists or not. |
| Field Detail |
|---|
static final String SYSTEM_RESOURCE
static final String PUBLIC_SCOPE
static final String PRIVATE_SCOPE
static final String SCOPE_SEPARATOR
static final String APPLET
Default scope: public
Default extension: none
static final String CSS
Default scope: public
Default extension: .css
static final String IMAGE
Default scope: public
Default extension: .gif
static final String JSP
Default scope: private
Default extension: .jsp
static final String PAGELET
static final String STATIC_PAGE
Default scope: public
Default extension: .html
static final String SCRIPT
Default scope: public
Default extension: .js
static final String PROFILE
Default scope: private
Default extension: .properties
static final String PROPERTY
Default scope: private
Default extension: .properties
static final String XML
Default scope: private
Default extension: .xml
| Method Detail |
|---|
IResourceInformation getResourceInformation()
IResourceInformation object attached to this resource
IResourceInformation object attached to this
resource.void init(IResourceInformation resourceInformation)
resourceInformation - the IResourceInformation object
attached to this resource.boolean isAvailable()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
|
SAP NetWeaver 7.30 SP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||