com.sap.portal.admin.editor
Class EditorResource
java.lang.Object
|
+--com.sap.portal.admin.editor.EditorResource
- public class EditorResource
- extends java.lang.Object
EditorResource
represent a resource in the editor.
Can be java script or CSS for example
The type of the resource can be one of the types that the PRT supports.
|
Constructor Summary |
EditorResource(java.lang.String resourcePath,
java.lang.String resourceType)
|
|
Method Summary |
java.lang.String |
getResurcePath()
|
java.lang.String |
getResurceType()
|
java.lang.String |
getServiceKey()
Get the service key that this resource is located in. |
void |
setResurcePath(java.lang.String path)
Set the patch of the resource. |
void |
setResurceType(java.lang.String type)
Set the type of that resource.
|
void |
setServiceKey(java.lang.String serviceKey)
ADVANCED:
set a key of a service that this resource belongs to.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorResource
public EditorResource(java.lang.String resourcePath,
java.lang.String resourceType)
getResurcePath
public java.lang.String getResurcePath()
- Returns:
- get the resource path of this resource.
The path can be for example "scripts/myScript.js"
getResurceType
public java.lang.String getResurceType()
- Returns:
- the type of the resource.
setResurcePath
public void setResurcePath(java.lang.String path)
- Set the patch of the resource. The path must include the name of the resource
- Parameters:
path - the path of the resource for example: "scripts/myScript.js"
setResurceType
public void setResurceType(java.lang.String type)
- Set the type of that resource.
The type can be on of the PRT types.
for example: com.sapportals.portal.prt.resource.IResource.SCRIPT
See also @link com.sapportals.portal.prt.resource.IResource
- Parameters:
type - the string representing the type of that resource
setServiceKey
public void setServiceKey(java.lang.String serviceKey)
- ADVANCED:
set a key of a service that this resource belongs to.
This must be use if and only if the resource is located in a different PAR
than the main component.
- Parameters:
serviceKey -
getServiceKey
public java.lang.String getServiceKey()
- Get the service key that this resource is located in.
- Returns:
- the service key or null if the resource is located in the main component PAR