public class Preferences extends Object implements Serializable
moduleId, preferencesId and a PreferencesScope
where depending on the PreferencesScope partitionId, realmId and userId are also used.| Constructor and Description |
|---|
Preferences(PreferenceScope scope,
String moduleId,
String preferencesId,
Map<String,Serializable> preferences) |
| Modifier and Type | Method and Description |
|---|---|
String |
getModuleId()
The moduleId used as a first identifier for the preferences.
|
String |
getPartitionId() |
org.eclipse.stardust.engine.core.preferences.PreferenceCacheHint |
getPreferenceCacheHint()
Holds information for cache synchronization.
|
Map<String,Serializable> |
getPreferences()
Retrieves the map of preferences.
|
String |
getPreferencesId()
The preferencesId is used as second identifier for the preferences.
|
String |
getRealmId()
Returns the realmId if valid for the PreferencesScope.
|
PreferenceScope |
getScope()
The scope the preferences are stored in.
|
String |
getUserId()
Returns the userId if valid for the PreferencesScope.
|
void |
setModuleId(String moduleId)
The moduleId used as a first identifier for the preferences.
|
void |
setPartitionId(String partitionId)
This value cannot be changed from client-side, it is only set on server-side.
|
void |
setPreferenceCacheHint(org.eclipse.stardust.engine.core.preferences.PreferenceCacheHint preferenceCacheHint)
Internally used.
|
void |
setPreferences(Map<String,Serializable> preferences)
Sets the map of preferences.
|
void |
setPreferencesId(String preferencesId)
The preferencesId is used as second identifier for the preferences.
|
void |
setRealmId(String realmId)
Sets the realmId.
|
void |
setScope(PreferenceScope scope)
The scope the preferences are stored in.
|
void |
setUserId(String userId)
Sets the userId.
|
public Preferences(PreferenceScope scope, String moduleId, String preferencesId, Map<String,Serializable> preferences)
public Map<String,Serializable> getPreferences()
public void setPreferences(Map<String,Serializable> preferences)
preferences - The map of preferences.public String getModuleId()
public void setModuleId(String moduleId)
null.moduleId - The moduleId.public String getPreferencesId()
public void setPreferencesId(String preferencesId)
null.preferencesId - The preferencesId.public PreferenceScope getScope()
public void setScope(PreferenceScope scope)
scope - The PreferencesScope.public String getPartitionId()
public void setPartitionId(String partitionId)
partitionId - The partitionId.public String getRealmId()
public void setRealmId(String realmId)
realmId - The realmId of the preferences.public String getUserId()
public void setUserId(String userId)
userId - public org.eclipse.stardust.engine.core.preferences.PreferenceCacheHint getPreferenceCacheHint()
public void setPreferenceCacheHint(org.eclipse.stardust.engine.core.preferences.PreferenceCacheHint preferenceCacheHint)
preferenceCacheHint - Copyright © 2016 Eclipse Stardust. All Rights Reserved.