public interface IAccessContext
Modifier and Type | Field and Description |
---|---|
static String |
TRANSPORT_EXPORT
The framework will set this parameter as a flag (returned value is not
null ) to indicate to a repository that
the readXXX() method is used to read and deserialize aresource as part of an export of the transport service. |
static String |
TRANSPORT_IMPORT
The framework will set this parameter as a flag (returned value is not
null ) to indicate to a repository that
the createXXX() method is used to create a deserialized resource as part of a import of the transport service. |
Modifier and Type | Method and Description |
---|---|
IAccessContext |
cloneContext()
Clone access context.
|
long |
getAllowedStaleDataTimespan()
Get time the repository data may not be older than.
|
Map |
getClientDefinedProperties()
Returns a map containing all client defined properties
|
Object |
getClientDefinedProperty(String name)
Get a client defined property from the context.
|
String |
getClientId()
Get id of the current client operating on the resouce.
|
Locale |
getLocale()
Get locale of the current user.
|
String |
getTuccId()
Returns the TUCC transaction identifier - can be
null . |
IUser |
getUser()
Get current user operating on the resouce.
|
Map |
getVariantContext()
Returns a map of context properties used for variant handling - may be
null . |
void |
setAllowedStaleDataTimespan(long allowedStaleDataTimespan)
Set time the repository data may not be older than.
|
void |
setClientDefinedProperty(String name,
Object value)
Set a client defined property in the context.
|
void |
setClientId(String clientId)
Set id of the current client operating on the resouce.
|
void |
setLocale(Locale locale)
Set locale of the current user.
|
void |
setUser(IUser user)
Set current user operating on the resouce.
|
static final String TRANSPORT_IMPORT
null
) to indicate to a repository that
the createXXX() method is used to create a deserialized resource as part of a import of the transport service.static final String TRANSPORT_EXPORT
null
) to indicate to a repository that
the readXXX() method is used to read and deserialize aresource as part of an export of the transport service.
see IResourceContext for parallel usageString getClientId()
void setClientId(String clientId)
clientId
- id of the current client operating on the resouceIUser getUser()
void setUser(IUser user)
user
- current user operating on the resouceLocale getLocale()
void setLocale(Locale locale)
locale
- locale of the current userlong getAllowedStaleDataTimespan()
void setAllowedStaleDataTimespan(long allowedStaleDataTimespan)
allowedStaleDataTimespan
- The new allowedStaleDataTimespan valueMap getClientDefinedProperties()
Object getClientDefinedProperty(String name)
name
- name of the client defined propertyvoid setClientDefinedProperty(String name, Object value) throws RepositoryException
name
- name of the client defined propertyvalue
- value of the client defined propertyRepositoryException
- Exception raised in failure situationIAccessContext cloneContext()
Map getVariantContext()
null
.null
.String getTuccId()
null
.null
.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