public final class TimeGuard extends Object
Copyright (c) SAP AG 2002-2004
Constructor and Description |
---|
TimeGuard() |
Modifier and Type | Method and Description |
---|---|
static void |
check(IResourceContext context)
Perform a check if a installed time limit has been exceeded.
|
static ITimeGuard |
getDummy()
Returns a dummy
ITimeGuard instance which never fails any check |
static ITimeGuard |
getInstalled(IResourceContext context)
Retrieve the installed
ITimeGuard from the given context. |
static ITimeGuard |
install(IResourceContext context,
String operation,
RID rid)
Install a new
ITimeGuard in the given context |
static ITimeGuard |
install(String operation,
IResource resource)
Install a new
ITimeGuard in the given context |
public static final String GUARD_KEY
public static ITimeGuard install(IResourceContext context, String operation, RID rid)
ITimeGuard
in the given contextcontext
- to install ITimeGuard
foroperation
- name of operationrid
- on which operation takes placeITimeGuard
instancepublic static ITimeGuard install(String operation, IResource resource) throws ResourceException
ITimeGuard
in the given contextoperation
- name of operationresource
- on which operation takes placeITimeGuard
instanceResourceException
- on general failurepublic static void check(IResourceContext context) throws TimeExceededException
context
- to check inTimeExceededException
- if time limit has been exceeded.public static ITimeGuard getInstalled(IResourceContext context)
ITimeGuard
from the given context.
The method never returns null
. If not guard is installed,
a guard instance which never fails a check is returned.context
- to get guard forITimeGuard
or dummy instancepublic static ITimeGuard getDummy()
ITimeGuard
instance which never fails any checkAccess 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