public class PreferencesManager extends Object implements IPreferencesManagerSPI
Constructor and Description |
---|
PreferencesManager() |
Modifier and Type | Method and Description |
---|---|
void |
copySharedInterfaceInstancePreferences(String srcInterfaceInstanceId,
String destInterfaceInstanceId)
Copies the shared interface instance preferences from an interface instance to another.
|
void |
delete(SessionConfig sessionConfig,
String resourceId,
int resourceType,
ITransaction transaction)
Deprecated.
|
void |
deletePreferencesByServiceInterfaceInstanceId(String serviceInterfaceInstanceId)
Deletes all non-structure level preferences associated with the specified service interface instance.
|
IPreferences |
getPreferences(SessionConfig sessionConfig,
String resourceId,
int resourceType)
Deprecated.
|
IPreferences |
getServiceInterfaceInstancePreferences(String serviceInterfaceInstanceId,
PreferencesLevel level)
Returns the preferences for a specified resource at the specified level.
|
void |
setSharedInterfaceInstancePreferences(String interfaceInstanceId,
Map<String,String[]> sharedPreferences)
Sets the shared interface instance preferences for the given interface instance identifier.
|
@Deprecated public IPreferences getPreferences(SessionConfig sessionConfig, String resourceId, int resourceType) throws PortalException
IPreferencesManager
getPreferences
in interface IPreferencesManager
sessionConfig
- the user session information.resourceId
- the resource id.resourceType
- the resource type.PortalException
public IPreferences getServiceInterfaceInstancePreferences(String serviceInterfaceInstanceId, PreferencesLevel level) throws PortalException
IPreferencesManager
getServiceInterfaceInstancePreferences
in interface IPreferencesManager
serviceInterfaceInstanceId
- the service interface instance identifier.level
- the storage level of the preferences to be returned. For user level, the user of the
current session
is used.PortalException
@Deprecated public void delete(SessionConfig sessionConfig, String resourceId, int resourceType, ITransaction transaction) throws PortalException
IPreferencesManager
delete
in interface IPreferencesManager
sessionConfig
- the user session information.resourceId
- the resource id.resourceType
- the resource type. One of the IPreferences
constants.transaction
- transaction for persistence access.PortalException
public void deletePreferencesByServiceInterfaceInstanceId(String serviceInterfaceInstanceId) throws PortalException
IPreferencesManager
deletePreferencesByServiceInterfaceInstanceId
in interface IPreferencesManager
serviceInterfaceInstanceId
- the service interface instance identifier.PortalException
public void copySharedInterfaceInstancePreferences(String srcInterfaceInstanceId, String destInterfaceInstanceId) throws PortalException
IPreferencesManagerSPI
copySharedInterfaceInstancePreferences
in interface IPreferencesManagerSPI
srcInterfaceInstanceId
- the source interface instance identifier.destInterfaceInstanceId
- the destination interface instance identifier.PortalException
public void setSharedInterfaceInstancePreferences(String interfaceInstanceId, Map<String,String[]> sharedPreferences) throws PortalException
IPreferencesManagerSPI
setSharedInterfaceInstancePreferences
in interface IPreferencesManagerSPI
interfaceInstanceId
- the interface instance for which to set shared preferencessharedPreferences
- the shared preferencesPortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.