public class ControlStatusService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CACHE |
static String |
CSS |
static int |
MAX_SIZE |
Modifier and Type | Method and Description |
---|---|
String |
addControlStatus(IControlStatus status)
adds the given object and returns the key to retrieve the object again
through the
getControlStatus method. |
boolean |
deleteControlStatus(String key)
deletes an
IControlStatus object with the given key from the
service's persistence. |
List |
getCacheEntries(Locale locale) |
IControlStatus |
getControlStatus(String key)
returns the
IControlStatus that has been saved with this key. |
static ControlStatusService |
getInstance()
returns the singleton instance of this service.
|
public static final String CSS
public static final String CACHE
public static final int MAX_SIZE
public static ControlStatusService getInstance()
CacheFactory
. If no
configuration can be found or the configuration is invalid, the service
will use a simple HashMap
to store IControlStatus
elements. This mode is unsafe and error messages will be provided in the
log files.public IControlStatus getControlStatus(String key) throws ControlStatusException
IControlStatus
that has been saved with this key.key
- TBD: Description of the incoming method parameterIControlStatus
object or null
.ControlStatusException
- if an exception in the persistence layer
occurs. The original exception is nested within the thrown exception.public String addControlStatus(IControlStatus status) throws ControlStatusException
getControlStatus
method. This method is
synchronized because execution of this method might change the structure of
the underlying persistence. The returned key is also added as an attribute
to the status.status
- the object to storeControlStatusException
- if an exception in the persistence layer
occurs. The original exception is nested within the thrown exception.public boolean deleteControlStatus(String key) throws ControlStatusException
IControlStatus
object with the given key from the
service's persistence.key
- the key of the object to deletetrue
) or if no element could be found (false
).ControlStatusException
- if an exception in the persistence layer
occurs. The original exception is nested within the thrown exception.
If the exception is thrown, it is unknown, if the object has been
deleted or not.Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice