|
SAP NetWeaver 7.30 SP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IServiceContext
A service context allows to contact other resources in the portal. It represents the context in which an IService is executed.
| Method Summary | |
|---|---|
String |
getApplicationName()
Gets the portal application name |
ILogger |
getClassLogger(Class aClass)
Returns the logger associated to aClass's package. |
ILogger |
getLogger()
get the default log handler |
ILogger |
getLogger(String aLoggerName)
get the log handler |
String |
getPrivateResourceHome()
Gets the home path for private resources |
String |
getPrivateServicePath()
Returns the full path to access private resources of the current service. |
String |
getPropertyValue(String propertyName)
Gets a property value form the service config |
String |
getPublicServicePath()
Returns the full path to access public resources of the current service. |
IResource |
getResource(String resourceType,
File file)
Gets an IResource object referring to the file specified. |
IResource |
getResource(String resourceType,
String fileName)
Gets an IResource object that belongs to the current service. |
IResource |
getResource(String serviceName,
String resourceType,
String fileName)
Gets an IResource object that belongs to the service. |
IService |
getService(String aService)
get a service by its name |
IService |
getService(String aService,
IServiceConfiguration aServiceConfiguration)
Deprecated. Do not use anymore. |
IService |
getService(String aService,
IServiceId aServiceUserId)
Deprecated. Do not use anymore. |
IServiceConfig |
getServiceConfig()
Gets the service config |
String |
getServiceName()
Gets the portal service name |
IServiceProfile |
getServiceProfile()
Gets the service profile |
String |
getWebResourcePath(String applicationName)
Gets a URL to access to web resources that belong to the application. |
String |
getWorkplaceProperty(String key,
String lDefault)
returns the system property corresponding to the key specified. |
| Method Detail |
|---|
IResource getResource(String serviceName,
String resourceType,
String fileName)
The IResource interface defines string constants for standard resource
types.
serviceName - the name of the serviceresourceType - the type of the resourcefileName - the file name
getResource(String, String)
IResource getResource(String resourceType,
String fileName)
The IResource interface defines string constants for standard resource
types.
resourceType - the type of the resourcefileName - the file name
IResource getResource(String resourceType,
File file)
The IResource interface defines string constants for standard resource
types.
resourceType - the type of the resourcefile - a File object referring to the resource
String getWorkplaceProperty(String key,
String lDefault)
key - lDefault - String getPrivateResourceHome()
String getPrivateServicePath()
String getPublicServicePath()
ILogger getLogger()
ILogger getLogger(String aLoggerName)
aLoggerName - ILogger getClassLogger(Class aClass)
aClass's package.
aClass - The class which is calling the logger.
aClass's package.
IService getService(String aService,
IServiceId aServiceUserId)
throws ServiceException
aService - the service to getaServiceUserId - the Id of the user requesting the service
null otherwise.
ServiceExceptionIService
IService getService(String aService,
IServiceConfiguration aServiceConfiguration)
throws ServiceException
aService - the service to getaServiceConfiguration -
null otherwise.
ServiceExceptionIService
IService getService(String aService)
throws ServiceException
aService - the service name to get
null otherwise.
ServiceExceptionIServiceString getPropertyValue(String propertyName)
String getApplicationName()
String getServiceName()
IServiceConfig getServiceConfig()
IServiceProfile getServiceProfile()
String getWebResourcePath(String applicationName)
applicationName - The name of the application.
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 SP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||