public class ServiceInterfaceInstanceManager extends Object implements IServiceInterfaceInstanceManagerSPI
Modifier and Type | Field and Description |
---|---|
static String |
KEY_CACHE_SELECTION
Key to store/retrieve the selected BusinessContext items to be used in service interface instance caching.
|
static String |
KEY_CACHE_TIMEOUT
Key to store/retrieve the selected expiration items to be used in service interface instance caching.
|
static String |
KEY_CUSTOM_PROPERTY_CACHE_KEY_BUSINESS_CONTEXT
Constant indicating that the value stored in the cache key generation custom property uses BusinessContext.
|
static String |
KEY_CUSTOM_PROPERTY_CACHE_KEY_CLASS
Constant indicating that the value stored in the cache key generation custom property uses a configured class.
|
static String |
KEY_CUSTOM_PROPERTY_CACHE_KEY_DEFAULT_CONFIGURATION
Constant indicating that the value stored in the cache key generation custom property uses the default values.
|
Constructor and Description |
---|
ServiceInterfaceInstanceManager() |
Modifier and Type | Method and Description |
---|---|
String |
add(SessionConfig sessionConfig,
ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
ITransaction transaction)
Add a service interface instance.
|
void |
addOrUpdate(SessionConfig sessionConfig,
ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
ITransaction transaction)
Service Interface Instance
|
void |
clearCache(ITransaction transaction)
Clears all cache stored in this manager.
|
void |
clearCache(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Clears the caches of a service interface instance.
|
void |
clearHtmlCache(String serviceInterfaceInstanceId)
Clears the HTML cache of a service interface instance.
|
void |
clearInterfaceInstanceCacheKeyProviderCache()
Clears the cache for interface instance cache key provider classes.
|
void |
clearTimeoutCache(String serviceInterfaceInstanceId,
ITransaction transaction)
Clears the cache for the timeout cache value.
|
String |
copy(SessionConfig sessionConfig,
String sourceServiceInterfaceInstanceId,
String destinationPageId,
boolean destinationInterfaceInstanceIsFromTemplate,
ITransaction transaction)
Creates a copy of the given interface instance to the specified page.
|
String |
copy(SessionConfig sessionConfig,
String sourceServiceInterfaceInstanceId,
String destinationPageId,
Class<? extends IServiceInterfaceInstanceOwner> ownerClass,
boolean destinationInterfaceInstanceIsFromTemplate,
ITransaction transaction)
Copies a Service Interface Instance based on the passed id to a given page or orphan if owner info is passed.
|
void |
delete(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Delete a service interface instance.
|
void |
deleteCustomProperties(SessionConfig sessionConfig,
String interfaceInstanceId,
ITransaction transaction)
Deletes all the interface instance custom properties
|
void |
deleteCustomProperty(SessionConfig sessionConfig,
String interfaceInstanceId,
String name,
ITransaction transaction)
Deletes the interface instance custom property
|
String |
deserialize(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node serviceInterfaceInstanceNode,
ITransaction transaction) |
void |
deserializeCustomProperties(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node serviceInterfaceInstanceCustomPropertiesNode,
ITransaction transaction)
Deprecated.
|
String |
generateMenu(Node menuDefinition,
IMenuItemParser menuItemParser,
Element defaultMenu)
Generates a configuration menu XML definition for use by Portal Studio.
|
ServiceInterfaceInstanceConfig |
get(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Get the configuration of the service interface instance.
|
int |
getCacheLevel(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Returns the cacheLevel property of an interface instance.
|
int |
getCachePersonalization(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Returns the cachePersonalization property of an interface instance.
|
boolean |
getCacheServerSideInclude(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Returns the cacheServerSideInclude property of an interface instance.
|
Map<String,String> |
getCustomProperties(SessionConfig sessionConfig,
String interfaceInstanceId,
ITransaction transaction)
Returns a Map containing all name/value pairs of custom properties
from the specified service interface instance.
|
String |
getCustomProperty(SessionConfig sessionConfig,
String interfaceInstanceId,
String name,
ITransaction transaction)
Returns the specified custom property.
|
String |
getDisplayName(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
ITransaction transaction)
Returns the display name for a service interface instance.
|
boolean |
getEnableCache(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Returns the enableCache property of an interface instance.
|
Collection<String> |
getIdsByBaseServiceInterfaceInstance(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Returns the identifiers of derived interface instances that derives from the interface instance with the given identifier.
|
Collection<String> |
getIdsByPageId(SessionConfig sessionConfig,
String pageId,
ITransaction transaction)
Get a list of ids by passing the page's id.
|
Collection<String> |
getIdsByServiceInstanceId(SessionConfig sessionConfig,
String serviceInstanceId,
boolean includeRunTimeInterfaces,
ITransaction transaction)
Get the Ids given the ServiceInstanceId.
|
Collection<String> |
getIdsByServiceInstanceId(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Get a list of ids by passing the id of the service instance.
|
Collection<String> |
getIdsByServiceInterfaceId(SessionConfig sessionConfig,
String serviceInterfaceId,
boolean ignoreRuntimeInterfaces,
boolean ignorePageTemplates,
ITransaction transaction)
Get a list of ids by passing the ids of the service interface.
|
Collection<String> |
getIdsByServiceInterfaceId(SessionConfig sessionConfig,
String serviceInterfaceId,
boolean ignoreRuntimeInterfaces,
ITransaction transaction)
Get a list of ids by passing the ids of the service interface.
|
Collection<String> |
getIdsByServiceInterfaceIdAndServiceInstanceId(SessionConfig sessionConfig,
String serviceInterfaceId,
String serviceInstanceId,
boolean ignoreRuntimeInterfaces,
boolean ignorePageTemplates,
ITransaction transaction)
Get a list of ids by passing the ids of service interface and the service
instance.
|
Collection<String> |
getIdsByServiceInterfaceIdAndServiceInstanceId(SessionConfig sessionConfig,
String serviceInterfaceId,
String serviceInstanceId,
boolean ignoreRuntimeInterfaces,
ITransaction transaction)
Get a list of ids by passing the ids of service interface and the service
instance.
|
Collection<String> |
getIdsByServiceInterfaceStyleId(SessionConfig sessionConfig,
String serviceInterfaceStyleId,
String serviceInterfaceId,
ITransaction transaction)
Get the Ids given the ServiceInterfaceStyleId.
|
String |
getInterfaceInstanceHtmlCache(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
Locale locale,
ITransaction transaction)
Get the HTML Cache of the Interface Instance.
|
ServiceInterfaceInstanceCacheEntry |
getInterfaceInstanceHtmlCache(String serviceInterfaceInstanceId,
IServiceInterfaceRenderRequest request,
ITransaction transaction)
Get the HTML Cache of the Interface Instance.
|
String |
getMenu(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Deprecated.
|
String |
getMenuItemXml(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ServiceInterfaceMenuLevel menuLevel,
String menuItemId,
ITransaction transaction)
Returns the XML for the menu item in the specified service interface instance and menu level.
|
String |
getMenuXml(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ServiceInterfaceMenuLevel menuLevel,
ITransaction transaction)
Returns the XML for the menu for the specified service interface instance and menu level.
|
ServiceInterfaceInstanceConfig |
getOrAddServiceInterfaceRunTimeInstance(SessionConfig sessionConfig,
String serviceInterfaceId,
String serviceInstanceId,
String pageId,
ITransaction transaction)
Get or Add the ServiceInterfaceRunTimeInstance.
|
boolean |
getPrintable(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Returns the printable property of an interface instance.
|
int |
getRenderAs(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Returns the renderAs property of an interface instance.
|
IConfigKeyChecker |
getServiceInterfaceInstanceStyleConfigKeyChecker() |
String |
getTitle(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
ITransaction transaction)
Returns the title for a service interface instance.
|
String |
getXmlData(SessionConfig sessionConfig,
String serviceInterfaceInstanceId)
Returns the previously saved XML data for the service interface instance
for the given user session
|
boolean |
isDerivedFromTemplate(SessionConfig sessionConfig,
ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
ITransaction transaction)
Verify whether service interface instance is derived from a channel template or page template.
|
boolean |
keyExists(SessionConfig sessionConfig,
Object configKey,
Object config,
ITransaction transaction)
Checks if configId matches an already persisted object
|
void |
serialize(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
OutputStream outputStream,
ITransaction transaction) |
void |
serializeCustomProperties(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
OutputStream outputStream,
ITransaction transaction) |
void |
setCustomProperties(SessionConfig sessionConfig,
String interfaceInstanceId,
Map<String,String> propertiesTable,
ITransaction transaction)
Receives a Map with one or more properties to be set for the given
interface.
|
void |
setCustomProperty(SessionConfig sessionConfig,
String interfaceInstanceId,
String name,
String value,
ITransaction transaction)
Set a custom property for the given interface instance.
|
void |
setInterfaceInstanceHtmlCache(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
Locale locale,
String serviceInterfaceInstanceHtml,
ITransaction transaction)
Get the HTML Cache of the Interface Instance.
|
void |
setInterfaceInstanceHtmlCache(String serviceInterfaceInstanceId,
IServiceInterfaceRenderRequest request,
String serviceInterfaceInstanceHtml,
Map<PortalPrintWriter.WritePosition,LinkedHashMap<String,String>> headWrites,
ITransaction transaction)
Set the HTML Cache of the Interface Instance.
|
void |
update(SessionConfig sessionConfig,
ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
ITransaction transaction)
Update a service interface instance.
|
void |
updateCustomPropertiesFromTemplate(SessionConfig sessionConfig,
String interfaceInstanceId,
ITransaction transaction)
Update the interface instance custom properties from parent interface
instance
|
void |
updatePropertiesFromTemplate(SessionConfig sessionConfig,
String interfaceInstanceId,
ITransaction transaction)
Update the properties of from the template.
|
public static final String KEY_CUSTOM_PROPERTY_CACHE_KEY_BUSINESS_CONTEXT
public static final String KEY_CUSTOM_PROPERTY_CACHE_KEY_CLASS
public static final String KEY_CUSTOM_PROPERTY_CACHE_KEY_DEFAULT_CONFIGURATION
public static final String KEY_CACHE_SELECTION
public static final String KEY_CACHE_TIMEOUT
public void addOrUpdate(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction) throws ManagerException, PortalException
addOrUpdate
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public ServiceInterfaceInstanceConfig get(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
get
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public String add(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
add
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public void update(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
update
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public void delete(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
delete
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public String copy(SessionConfig sessionConfig, String sourceServiceInterfaceInstanceId, String destinationPageId, boolean destinationInterfaceInstanceIsFromTemplate, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
copy
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public String copy(SessionConfig sessionConfig, String sourceServiceInterfaceInstanceId, String destinationPageId, Class<? extends IServiceInterfaceInstanceOwner> ownerClass, boolean destinationInterfaceInstanceIsFromTemplate, ITransaction transaction) throws PortalException
sessionConfig
- instance of SessionConfig.sourceServiceInterfaceInstanceId
- source ServiceInterfaceInstanceIddestinationPageId
- the page id where the new interfaceInstance should appear. In case of an orphan interfaceInstance, null should be passed.ownerClass
- the owner class of interface instancedestinationInterfaceInstanceIsFromTemplate
- transaction
- transaction in which the copy should happenPortalException
public ServiceInterfaceInstanceConfig getOrAddServiceInterfaceRunTimeInstance(SessionConfig sessionConfig, String serviceInterfaceId, String serviceInstanceId, String pageId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getOrAddServiceInterfaceRunTimeInstance
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public Collection<String> getIdsByServiceInterfaceId(SessionConfig sessionConfig, String serviceInterfaceId, boolean ignoreRuntimeInterfaces, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getIdsByServiceInterfaceId
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public Collection<String> getIdsByServiceInterfaceId(SessionConfig sessionConfig, String serviceInterfaceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getIdsByServiceInterfaceId
in interface IServiceInterfaceInstanceManager
ignorePageTemplates
- TODOManagerException
PortalException
public Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getIdsByServiceInstanceId
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig, String serviceInstanceId, boolean includeRunTimeInterfaces, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getIdsByServiceInstanceId
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public Collection<String> getIdsByServiceInterfaceIdAndServiceInstanceId(SessionConfig sessionConfig, String serviceInterfaceId, String serviceInstanceId, boolean ignoreRuntimeInterfaces, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getIdsByServiceInterfaceIdAndServiceInstanceId
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public Collection<String> getIdsByServiceInterfaceIdAndServiceInstanceId(SessionConfig sessionConfig, String serviceInterfaceId, String serviceInstanceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getIdsByServiceInterfaceIdAndServiceInstanceId
in interface IServiceInterfaceInstanceManager
ignorePageTemplates
- TODOManagerException
PortalException
public Collection<String> getIdsByPageId(SessionConfig sessionConfig, String pageId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getIdsByPageId
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public Collection<String> getIdsByServiceInterfaceStyleId(SessionConfig sessionConfig, String serviceInterfaceStyleId, String serviceInterfaceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getIdsByServiceInterfaceStyleId
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public Collection<String> getIdsByBaseServiceInterfaceInstance(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManagerSPI
getIdsByBaseServiceInterfaceInstance
in interface IServiceInterfaceInstanceManagerSPI
sessionConfig
- the user session.serviceInterfaceInstanceId
- the base interface instance identifier.transaction
- the transaction.PortalException
public String getCustomProperty(SessionConfig sessionConfig, String interfaceInstanceId, String name, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getCustomProperty
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public Map<String,String> getCustomProperties(SessionConfig sessionConfig, String interfaceInstanceId, ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManager
getCustomProperties
in interface IServiceInterfaceInstanceManager
sessionConfig
- the user session information.interfaceInstanceId
- the service interface instance id.transaction
- the transaction for persistence access.ManagerException
PortalException
public void setCustomProperty(SessionConfig sessionConfig, String interfaceInstanceId, String name, String value, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
setCustomProperty
in interface IServiceInterfaceInstanceManager
sessionConfig
- the user session information.interfaceInstanceId
- the service interface instance id.name
- the property name.value
- the property value.transaction
- the transaction for persistence access.ManagerException
PortalException
public void setCustomProperties(SessionConfig sessionConfig, String interfaceInstanceId, Map<String,String> propertiesTable, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
setCustomProperties
in interface IServiceInterfaceInstanceManager
sessionConfig
- the user session information.interfaceInstanceId
- the service interface instance id.propertiesTable
- the map with the properties.transaction
- the transaction for persistence access.ManagerException
PortalException
public void deleteCustomProperty(SessionConfig sessionConfig, String interfaceInstanceId, String name, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
deleteCustomProperty
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public void deleteCustomProperties(SessionConfig sessionConfig, String interfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
deleteCustomProperties
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
@Deprecated public String getMenu(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManager
getMenu
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public String getMenuXml(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ServiceInterfaceMenuLevel menuLevel, ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManager
getMenuXml
in interface IServiceInterfaceInstanceManager
sessionConfig
- the user session information.serviceInterfaceInstanceId
- the identifier of the service interface instance.menuLevel
- the menu level.transaction
- transaction for persistence access.PortalException
public String getMenuItemXml(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ServiceInterfaceMenuLevel menuLevel, String menuItemId, ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManagerSPI
getMenuItemXml
in interface IServiceInterfaceInstanceManagerSPI
sessionConfig
- the user session information.serviceInterfaceInstanceId
- the identifier of the service interface instance.menuLevel
- the menu level.menuItemId
- the menu item identifier.transaction
- transaction for persistence access.PortalException
public String generateMenu(Node menuDefinition, IMenuItemParser menuItemParser, Element defaultMenu) throws PortalException
IServiceInterfaceInstanceManagerSPI
generateMenu
in interface IServiceInterfaceInstanceManagerSPI
menuDefinition
- the menu to be included.menuItemParser
- the parser is able to process menu items.defaultMenu
- the default menu definition.PortalException
- if the menu cannot be generated.public void updateCustomPropertiesFromTemplate(SessionConfig sessionConfig, String interfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
updateCustomPropertiesFromTemplate
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public String getXmlData(SessionConfig sessionConfig, String serviceInterfaceInstanceId) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getXmlData
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public boolean getPrintable(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getPrintable
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public int getRenderAs(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getRenderAs
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public boolean getEnableCache(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getEnableCache
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public int getCacheLevel(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getCacheLevel
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public int getCachePersonalization(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getCachePersonalization
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public boolean getCacheServerSideInclude(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getCacheServerSideInclude
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public void serialize(SessionConfig sessionConfig, String serviceInterfaceInstanceId, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
serialize
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node serviceInterfaceInstanceNode, ITransaction transaction) throws ManagerException, PortalException
deserialize
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public void serializeCustomProperties(SessionConfig sessionConfig, String serviceInterfaceInstanceId, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
serializeCustomProperties
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
@Deprecated public void deserializeCustomProperties(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node serviceInterfaceInstanceCustomPropertiesNode, ITransaction transaction) throws ManagerException, PortalException
deserializeCustomProperties
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public void clearCache(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
Clears service interface instance related information, cached in this manager, including HTML cache, and its XSL cache.
clearCache
in interface IServiceInterfaceInstanceManager
sessionConfig
- the user session information.serviceInterfaceInstanceId
- the service interface instance identifier.transaction
- the transaction for persistence access.ManagerException
PortalException
public void clearHtmlCache(String serviceInterfaceInstanceId) throws PortalException
IServiceInterfaceInstanceManagerSPI
clearHtmlCache
in interface IServiceInterfaceInstanceManagerSPI
serviceInterfaceInstanceId
- the service interface instance identifier.PortalException
public void clearCache(ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManager
clearCache
in interface IServiceInterfaceInstanceManager
transaction
- the transaction for persistence access. If null,
the cache is just cleared, else it is cleared as a transactional
operation as specified in PortalCache.clear(ITransaction)
.PortalException
public void setInterfaceInstanceHtmlCache(SessionConfig sessionConfig, String serviceInterfaceInstanceId, Locale locale, String serviceInterfaceInstanceHtml, ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManager
setInterfaceInstanceHtmlCache
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public String getInterfaceInstanceHtmlCache(SessionConfig sessionConfig, String serviceInterfaceInstanceId, Locale locale, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
getInterfaceInstanceHtmlCache
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public void updatePropertiesFromTemplate(SessionConfig sessionConfig, String interfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IServiceInterfaceInstanceManager
updatePropertiesFromTemplate
in interface IServiceInterfaceInstanceManager
ManagerException
PortalException
public IConfigKeyChecker getServiceInterfaceInstanceStyleConfigKeyChecker()
getServiceInterfaceInstanceStyleConfigKeyChecker
in interface IServiceInterfaceInstanceManager
public String getTitle(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManager
getTitle
in interface IServiceInterfaceInstanceManager
serviceInterfaceInstanceConfig
- the service interface instance.transaction
- the transaction for persistence access.PortalException
public String getDisplayName(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction) throws PortalException
IServiceInterfaceInstanceManager
getDisplayName
in interface IServiceInterfaceInstanceManager
serviceInterfaceInstanceConfig
- the service interface instance.transaction
- the transaction for persistence access.PortalException
public boolean isDerivedFromTemplate(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- session config of the user request.serviceInterfaceInstanceConfig
- instance to be checked.transaction
- transaction used to get information from database.ManagerException
- if an error occurs during the communication with database.PortalException
- if an other error occurs during the process.public void setInterfaceInstanceHtmlCache(String serviceInterfaceInstanceId, IServiceInterfaceRenderRequest request, String serviceInterfaceInstanceHtml, Map<PortalPrintWriter.WritePosition,LinkedHashMap<String,String>> headWrites, ITransaction transaction) throws BusinessContextNotEnabledForCurrentChannelException, BusinessContextPropertyNotFoundException, CacheKeyProviderClassNotFoundException, PortalException
IServiceInterfaceInstanceManagerSPI
setInterfaceInstanceHtmlCache
in interface IServiceInterfaceInstanceManagerSPI
serviceInterfaceInstanceId
- the id of the cache that should be used.request
- the request from which the cache key will be extracted.serviceInterfaceInstanceHtml
- html to cache.headWrites
- the head before writes to be cached.transaction
- in which the method should participate.BusinessContextNotEnabledForCurrentChannelException
- if the business context has not been enabled/selected in the serviceInterfaceInstance channel.BusinessContextPropertyNotFoundException
- if the property to use as cache was not found in the current BusinessContext.CacheKeyProviderClassNotFoundException
- if IInterfaceInstanceCacheKeyProvider
implementation class is not available during runtime.PortalException
public ServiceInterfaceInstanceCacheEntry getInterfaceInstanceHtmlCache(String serviceInterfaceInstanceId, IServiceInterfaceRenderRequest request, ITransaction transaction) throws BusinessContextNotEnabledForCurrentChannelException, BusinessContextPropertyNotFoundException, CacheKeyProviderClassNotFoundException, PortalException
IServiceInterfaceInstanceManagerSPI
getInterfaceInstanceHtmlCache
in interface IServiceInterfaceInstanceManagerSPI
serviceInterfaceInstanceId
- the id of the cache that should be used.request
- the request from which the cache key will be extracted.transaction
- in which the method should participate.BusinessContextNotEnabledForCurrentChannelException
- if the business context has not been enabled/selected in the serviceInterfaceInstance channel.BusinessContextPropertyNotFoundException
- if the property to use as cache was not found in the current BusinessContext.CacheKeyProviderClassNotFoundException
- if IInterfaceInstanceCacheKeyProvider
implementation class is not available during runtime.PortalException
public void clearTimeoutCache(String serviceInterfaceInstanceId, ITransaction transaction) throws CacheKeyProviderClassNotFoundException, PortalException
IServiceInterfaceInstanceManagerSPI
clearTimeoutCache
in interface IServiceInterfaceInstanceManagerSPI
serviceInterfaceInstanceId
- of which the timeout has changed.transaction
- in which the method should participate.PortalException
CacheKeyProviderClassNotFoundException
public void clearInterfaceInstanceCacheKeyProviderCache()
IServiceInterfaceInstanceManagerSPI
clearInterfaceInstanceCacheKeyProviderCache
in interface IServiceInterfaceInstanceManagerSPI
public boolean keyExists(SessionConfig sessionConfig, Object configKey, Object config, ITransaction transaction)
IConfigKeyChecker
keyExists
in interface IConfigKeyChecker
config
- Optional, allows a checker to read aditional fields to check composed keysLumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.