public abstract class GenericService extends Object implements com.sapportals.portal.prt.service.IService
To implement an GenericService, the programmer needs only to extend this class and provide implementation for the registerClassLoader() method.
The service key can be specified overriding the service_key attribute, in this case the service key specified in configuration is ignored. At least one of the service key must be present otherwise a ServiceException is thrown.
This is an example of the service profile that needs to be present in portalapps.xml
Modifier and Type | Field and Description |
---|---|
protected String |
applKey |
protected boolean |
registerClassloader |
protected boolean |
registerSemanticObjects |
protected String |
service_key |
Constructor and Description |
---|
GenericService()
Constructor for GenericService.
|
Modifier and Type | Method and Description |
---|---|
void |
afterInit() |
void |
configure(com.sapportals.portal.prt.service.IServiceConfiguration arg0) |
void |
destroy() |
com.sapportals.portal.prt.service.IServiceContext |
getContext() |
String |
getKey() |
void |
init(com.sapportals.portal.prt.service.IServiceContext ctxt) |
ClassLoader |
registerClassLoader() |
void |
release() |
protected String service_key
protected boolean registerClassloader
protected boolean registerSemanticObjects
protected String applKey
public void init(com.sapportals.portal.prt.service.IServiceContext ctxt)
init
in interface com.sapportals.portal.prt.service.IService
public ClassLoader registerClassLoader()
public void configure(com.sapportals.portal.prt.service.IServiceConfiguration arg0)
configure
in interface com.sapportals.portal.prt.service.IService
public void destroy()
destroy
in interface com.sapportals.portal.prt.service.IService
public com.sapportals.portal.prt.service.IServiceContext getContext()
getContext
in interface com.sapportals.portal.prt.service.IService
public String getKey()
getKey
in interface com.sapportals.portal.prt.service.IService
public void release()
release
in interface com.sapportals.portal.prt.service.IService
public void afterInit()
afterInit
in interface com.sapportals.portal.prt.service.IService
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-COLL
|
[sap.com] tc/kmc/coll/util
|
api
|
EP-KM-COL
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice