com.sap.portal.admin.editor

Class EditorResource

java.lang.Object
  extended by com.sap.portal.admin.editor.EditorResource

public class EditorResource
extends Object

The class that represents a resource in the editor. A resource type can be any type supported by the PRT. IResource defines the supported resource types.


Constructor Summary
EditorResource(String resourcePath, String resourceType)
          A constructor that sets a path and type for a resource.
 
Method Summary
 String getResurcePath()
          Gets the resource path.
 String getResurceType()
          Gets the resource type.
 String getServiceKey()
          Gets the key for the service in which this resource is located.
 void setResurcePath(String path)
          Sets the resource path.
 void setResurceType(String type)
          Sets a resource type.
 void setServiceKey(String serviceKey)
          Sets a key for the service to which this resource belongs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorResource

public EditorResource(String resourcePath,
                      String resourceType)
A constructor that sets a path and type for a resource.

Parameters:
resourcePath - a resource path
resourceType - a resource type
Method Detail

getResurcePath

public String getResurcePath()
Gets the resource path. For example, scripts/myScript.js.

Returns:
the resource path

getResurceType

public String getResurceType()
Gets the resource type.

Returns:
the resource type

setResurcePath

public void setResurcePath(String path)
Sets the resource path. The path must include the name of the resource. For example, scripts/myScript.js.

Parameters:
path - a resource path

setResurceType

public void setResurceType(String type)
Sets a resource type.

Parameters:
type - a resource type
See Also:
IResource

setServiceKey

public void setServiceKey(String serviceKey)
Sets a key for the service to which this resource belongs. This method can be used only if the resource is not located in the main component PAR file.
Note: For advanced users.

Parameters:
serviceKey - a key for the service

getServiceKey

public String getServiceKey()
Gets the key for the service in which this resource is located.

Returns:
the service key or null if the resource is located in the main component PAR file.
Access Rights

This class can be accessed from:


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


Copyright 2011 SAP AG Complete Copyright Notice