|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.ModelPersistenceContext
public final class ModelPersistenceContext
Describes the context within which a persister should execute. The object principally stores the user id which may eventually be used by our store implementations to check for user rights against the accessed object. The object also describes the web framework's currently bound repository store id and web application id (to support Alfresco web projects). The object may also eventually store role and rights information regarding who they are in the end application.
Field Summary | |
---|---|
static String |
REPO_STOREID
|
static String |
REPO_WEBAPPID
|
Constructor Summary | |
---|---|
ModelPersistenceContext(String userId)
Instantiates a new persister context. |
Method Summary | |
---|---|
String |
getStoreId()
Gets the store id. |
String |
getUserId()
Gets the user id. |
Object |
getValue(String key)
Returns the stored value with the given key |
String |
getWebappId()
Gets the webapp id. |
Set<String> |
keys()
Returns the set of keys |
void |
putValue(String key,
Object value)
Stores a value with the given key |
void |
setStoreId(String storeId)
Sets the store id. |
void |
setWebappId(String webappId)
Sets the webapp id. |
String |
toString()
|
Collection<Object> |
values()
Returns the collection of values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String REPO_STOREID
public static String REPO_WEBAPPID
Constructor Detail |
---|
public ModelPersistenceContext(String userId)
userId
- the user idMethod Detail |
---|
public String getUserId()
public Object getValue(String key)
key
- the key
public void putValue(String key, Object value)
key
- the keyvalue
- the valuepublic Set<String> keys()
public Collection<Object> values()
public void setStoreId(String storeId)
storeId
- the new store idpublic String getStoreId()
public void setWebappId(String webappId)
webappId
- the new webapp idpublic String getWebappId()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |