|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.netweaver.bc.rf.common.context.AccessContext
Class implementing the access context information the system needs to know, when working on resources.
| Field Summary | |
protected long |
allowedStaleDataTimespan
Time the repository data may not be older than. |
protected java.lang.String |
clientId
Current client identity operating on the resouce. |
static long |
DEFAULT_ALLOWED_STALE_DATA_TIMESPAN
|
protected java.util.Locale |
locale
Locale of current user operating on the resouce. |
protected java.util.Map |
properties
Client defined property map. |
protected com.sap.netweaver.bc.rf.common.context.IUser |
user
Current user operating on the resouce. |
| Constructor Summary | |
AccessContext(java.lang.String clientId,
com.sap.netweaver.bc.rf.common.context.IUser user,
java.util.Locale locale,
long allowedStaleDataTimespan)
Construct instance just with the current user and a locale to be used. |
|
AccessContext(java.lang.String clientId,
com.sap.netweaver.bc.rf.common.context.IUser user,
java.util.Locale locale,
java.util.Map properties,
long allowedStaleDataTimespan)
Construct instance with the current user, a locale to be used and client defined properties. |
|
AccessContext(java.lang.String clientId,
com.sap.netweaver.bc.rf.common.context.IUser user,
long allowedStaleDataTimespan)
Construct instance just with the current user. |
|
AccessContext(java.lang.String clientId,
com.sap.netweaver.bc.rf.common.context.IUser user,
java.util.Map properties,
long allowedStaleDataTimespan)
Construct instance just with the current user and client defined properties. |
|
| Method Summary | |
IAccessContext |
cloneContext()
Clone access context. |
long |
getAllowedStaleDataTimespan()
Get time the repository data may not be older than. |
java.lang.Object |
getClientDefinedProperty(java.lang.String name)
Get a client defined property from the context. |
java.lang.String |
getClientId()
Get id of the current client operating on the resouce. |
java.util.Locale |
getLocale()
Get locale of the current user. |
com.sap.netweaver.bc.rf.common.context.IUser |
getUser()
Get current user operating on the resouce. |
void |
setAllowedStaleDataTimespan(long allowedStaleDataTimespan)
Set time the repository data may not be older than. |
void |
setClientDefinedProperty(java.lang.String name,
java.lang.Object value)
Set a client defined property in the context. |
void |
setClientId(java.lang.String clientId)
Set id of the current client operating on the resouce. |
void |
setLocale(java.util.Locale locale)
Set locale of the current user. |
void |
setUser(com.sap.netweaver.bc.rf.common.context.IUser user)
Set current user operating on the resouce. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static long DEFAULT_ALLOWED_STALE_DATA_TIMESPAN
protected transient java.lang.String clientId
protected transient com.sap.netweaver.bc.rf.common.context.IUser user
protected java.util.Locale locale
protected long allowedStaleDataTimespan
protected java.util.Map properties
| Constructor Detail |
public AccessContext(java.lang.String clientId,
com.sap.netweaver.bc.rf.common.context.IUser user,
long allowedStaleDataTimespan)
clientId - id of the current client operating on the resouceuser - current user operating on the resouceallowedStaleDataTimespan - time the repository data may not be older
than
public AccessContext(java.lang.String clientId,
com.sap.netweaver.bc.rf.common.context.IUser user,
java.util.Map properties,
long allowedStaleDataTimespan)
clientId - id of the current client operating on the resouceuser - current user operating on the resouceallowedStaleDataTimespan - time the repository data may not be older
thanproperties - initial client defined properties to be used or null for
no client defined properties
public AccessContext(java.lang.String clientId,
com.sap.netweaver.bc.rf.common.context.IUser user,
java.util.Locale locale,
long allowedStaleDataTimespan)
clientId - id of the current client operating on the resouceuser - current user operating on the resoucelocale - locale to be associated or null to use user resp. default
localeallowedStaleDataTimespan - time the repository data may not be older
than
public AccessContext(java.lang.String clientId,
com.sap.netweaver.bc.rf.common.context.IUser user,
java.util.Locale locale,
java.util.Map properties,
long allowedStaleDataTimespan)
clientId - id of the current client operating on the resouceuser - current user operating on the resoucelocale - locale to be associated or null to use user resp. default
localeproperties - initial client defined properties to be used or null for
no client defined propertiesallowedStaleDataTimespan - time the repository data may not be older
than| Method Detail |
public java.lang.String getClientId()
getClientId in interface IAccessContextpublic void setClientId(java.lang.String clientId)
setClientId in interface IAccessContextclientId - id of the current client operating on the resoucepublic com.sap.netweaver.bc.rf.common.context.IUser getUser()
getUser in interface IAccessContextpublic void setUser(com.sap.netweaver.bc.rf.common.context.IUser user)
setUser in interface IAccessContextuser - current user operating on the resoucepublic java.util.Locale getLocale()
getLocale in interface IAccessContextpublic void setLocale(java.util.Locale locale)
setLocale in interface IAccessContextlocale - locale of the current userpublic long getAllowedStaleDataTimespan()
getAllowedStaleDataTimespan in interface IAccessContextpublic void setAllowedStaleDataTimespan(long allowedStaleDataTimespan)
setAllowedStaleDataTimespan in interface IAccessContextallowedStaleDataTimespan - time the repository data may not be older
thanpublic java.lang.Object getClientDefinedProperty(java.lang.String name)
getClientDefinedProperty in interface IAccessContextname - name of the client defined property
public void setClientDefinedProperty(java.lang.String name,
java.lang.Object value)
throws RepositoryException
setClientDefinedProperty in interface IAccessContextname - name of the client defined propertyvalue - value of the client defined propertyRepositoryException - Exception raised in failure situationpublic IAccessContext cloneContext()
cloneContext in interface IAccessContext
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||