|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A service context allows to contact other resources in the portal. It represents the context in which an IService is executed.
| Method Summary | |
java.lang.String |
getApplicationName()
Gets the portal application name |
ILogger |
getClassLogger(java.lang.Class aClass)
Returns the logger associated to aClass's package. |
ILogger |
getLogger()
get the default log handler |
ILogger |
getLogger(java.lang.String aLoggerName)
get the log handler |
java.lang.String |
getPrivateResourceHome()
Gets the home path for private resources |
java.lang.String |
getPrivateServicePath()
Returns the full path to access private resources of the current service. |
java.lang.String |
getPropertyValue(java.lang.String propertyName)
Gets a property value form the service config |
java.lang.String |
getPublicServicePath()
Returns the full path to access public resources of the current service. |
IResource |
getResource(java.lang.String resourceType,
java.io.File file)
Gets an IResource object referring to the file specified. |
IResource |
getResource(java.lang.String resourceType,
java.lang.String fileName)
Gets an IResource object that belongs to the current service. |
IResource |
getResource(java.lang.String serviceName,
java.lang.String resourceType,
java.lang.String fileName)
Gets an IResource object that belongs to the service. |
IService |
getService(java.lang.String aService)
get a service by its name |
IService |
getService(java.lang.String aService,
IServiceConfiguration aServiceConfiguration)
Deprecated. Do not use anymore. |
IService |
getService(java.lang.String aService,
IServiceId aServiceUserId)
Deprecated. Do not use anymore. |
IServiceConfig |
getServiceConfig()
Gets the service config |
java.lang.String |
getServiceName()
Gets the portal service name |
IServiceProfile |
getServiceProfile()
Gets the service profile |
java.lang.String |
getWorkplaceProperty(java.lang.String key,
java.lang.String lDefault)
returns the system property corresponding to the key specified. |
| Method Detail |
public IResource getResource(java.lang.String serviceName,
java.lang.String resourceType,
java.lang.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 namegetResource(String, String)
public IResource getResource(java.lang.String resourceType,
java.lang.String fileName)
The IResource interface defines string constants for standard resource
types.
resourceType - the type of the resourcefileName - the file name
public IResource getResource(java.lang.String resourceType,
java.io.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
public java.lang.String getWorkplaceProperty(java.lang.String key,
java.lang.String lDefault)
key - lDefault - public java.lang.String getPrivateResourceHome()
public java.lang.String getPrivateServicePath()
public java.lang.String getPublicServicePath()
public ILogger getLogger()
public ILogger getLogger(java.lang.String aLoggerName)
aLoggerName - public ILogger getClassLogger(java.lang.Class aClass)
aClass's package.aClass - The class which is calling the logger.aClass's package.
public IService getService(java.lang.String aService,
IServiceId aServiceUserId)
throws ServiceException
aService - the service to getaServiceUserId - the Id of the user requesting the servicenull otherwise.ServiceException - IService
public IService getService(java.lang.String aService,
IServiceConfiguration aServiceConfiguration)
throws ServiceException
aService - the service to getaServiceUserId - the configuration for the serviceaServiceConfiguration - null otherwise.ServiceException - IService
public IService getService(java.lang.String aService)
throws ServiceException
aService - the service name to getnull otherwise.ServiceException - IServicepublic java.lang.String getPropertyValue(java.lang.String propertyName)
public java.lang.String getApplicationName()
public java.lang.String getServiceName()
public IServiceConfig getServiceConfig()
public IServiceProfile getServiceProfile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||