lumis.portal.serviceinterfaceinstance
Class ServiceInterfaceInstanceManager

Package class diagram package ServiceInterfaceInstanceManager
java.lang.Object
  extended by lumis.portal.serviceinterfaceinstance.ServiceInterfaceInstanceManager
All Implemented Interfaces:
IServiceInterfaceInstanceManager

public class ServiceInterfaceInstanceManager
extends Object
implements IServiceInterfaceInstanceManager

Class responsible for operations with Service Interface Instances

Since:
4.0.0

Constructor Summary
ServiceInterfaceInstanceManager()
           
 
Method Summary
 String add(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction)
          Add a service interface instance.
protected  void addGenericMenuItemToMenu(SessionConfig sessionConfig, String serviceInterfaceInstanceId, Node itemNode, StringBuilder menu, IServiceInterfaceManager serviceInterfaceManager, ITransaction transaction)
           
protected  void addGroupItemToMenu(SessionConfig sessionConfig, String serviceInterfaceInstanceId, Node groupNode, StringBuilder menu, IServiceInterfaceManager serviceInterfaceManager, ITransaction transaction)
           
protected  String addMenuItemToMenu(SessionConfig sessionConfig, String serviceInterfaceInstanceId, Node itemNode, IServiceInterfaceManager serviceInterfaceManager, ITransaction transaction)
           
 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.
 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
protected  void deleteServiceInterfaceInstance_Internal(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction daoTransaction)
           
 String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node serviceInterfaceInstanceNode, ITransaction transaction)
           
 void deserializeCustomProperties(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node serviceInterfaceInstanceCustomPropertiesNode, ITransaction transaction)
          Deprecated. 
 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> 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.
 String getMenu(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction)
          Returns the XML for the administration menu of the specified interface instance
 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.
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInterfaceInstanceManager

public ServiceInterfaceInstanceManager()
Method Detail

addOrUpdate

public void addOrUpdate(SessionConfig sessionConfig,
                        ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
                        ITransaction transaction)
                 throws ManagerException,
                        PortalException
Service Interface Instance

Specified by:
addOrUpdate in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

get

public ServiceInterfaceInstanceConfig get(SessionConfig sessionConfig,
                                          String serviceInterfaceInstanceId,
                                          ITransaction transaction)
                                   throws ManagerException,
                                          PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get the configuration of the service interface instance.

Specified by:
get in interface IServiceInterfaceInstanceManager
Returns:
a ServiceInterfaceInstanceConfig.
Throws:
ManagerException
PortalException

add

public String add(SessionConfig sessionConfig,
                  ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
                  ITransaction transaction)
           throws ManagerException,
                  PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Add a service interface instance.

Specified by:
add in interface IServiceInterfaceInstanceManager
Returns:
a String.
Throws:
ManagerException
PortalException

update

public void update(SessionConfig sessionConfig,
                   ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
                   ITransaction transaction)
            throws ManagerException,
                   PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Update a service interface instance.

Specified by:
update in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

delete

public void delete(SessionConfig sessionConfig,
                   String serviceInterfaceInstanceId,
                   ITransaction transaction)
            throws ManagerException,
                   PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Delete a service interface instance.

Specified by:
delete in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

copy

public String copy(SessionConfig sessionConfig,
                   String sourceServiceInterfaceInstanceId,
                   String destinationPageId,
                   boolean destinationInterfaceInstanceIsFromTemplate,
                   ITransaction transaction)
            throws ManagerException,
                   PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Creates a copy of the given interface instance to the specified page. All interface instance custom properties are copied to the new interface instance.

Specified by:
copy in interface IServiceInterfaceInstanceManager
Returns:
a String.
Throws:
ManagerException
PortalException

copy

public String copy(SessionConfig sessionConfig,
                   String sourceServiceInterfaceInstanceId,
                   String destinationPageId,
                   Class<? extends IServiceInterfaceInstanceOwner> ownerClass,
                   boolean destinationInterfaceInstanceIsFromTemplate,
                   ITransaction transaction)
            throws PortalException
Copies a Service Interface Instance based on the passed id to a given page or orphan if owner info is passed. Should the new copy of the intefaceInstance be an orphan, the pageId needs to be null and the ownerInfo needs to be filled.

Parameters:
sessionConfig - instance of SessionConfig.
sourceServiceInterfaceInstanceId - source ServiceInterfaceInstanceId
destinationPageId - 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 instance
destinationInterfaceInstanceIsFromTemplate -
transaction - transaction in which the copy should happen
Returns:
the id of the new InterfaceInstance
Throws:
PortalException
Since:
6.0.0

getOrAddServiceInterfaceRunTimeInstance

public ServiceInterfaceInstanceConfig getOrAddServiceInterfaceRunTimeInstance(SessionConfig sessionConfig,
                                                                              String serviceInterfaceId,
                                                                              String serviceInstanceId,
                                                                              String pageId,
                                                                              ITransaction transaction)
                                                                       throws ManagerException,
                                                                              PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get or Add the ServiceInterfaceRunTimeInstance.

Specified by:
getOrAddServiceInterfaceRunTimeInstance in interface IServiceInterfaceInstanceManager
Returns:
a ServiceInterfaceInstanceConfig.
Throws:
ManagerException
PortalException

deleteServiceInterfaceInstance_Internal

protected void deleteServiceInterfaceInstance_Internal(SessionConfig sessionConfig,
                                                       String serviceInterfaceInstanceId,
                                                       ITransaction daoTransaction)
                                                throws ManagerException,
                                                       PortalException
Throws:
ManagerException
PortalException

getIdsByServiceInterfaceId

public Collection<String> getIdsByServiceInterfaceId(SessionConfig sessionConfig,
                                                     String serviceInterfaceId,
                                                     boolean ignoreRuntimeInterfaces,
                                                     ITransaction transaction)
                                              throws ManagerException,
                                                     PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get a list of ids by passing the ids of the service interface.

Specified by:
getIdsByServiceInterfaceId in interface IServiceInterfaceInstanceManager
Returns:
a arrays of Strings.
Throws:
ManagerException
PortalException

getIdsByServiceInterfaceId

public Collection<String> getIdsByServiceInterfaceId(SessionConfig sessionConfig,
                                                     String serviceInterfaceId,
                                                     boolean ignoreRuntimeInterfaces,
                                                     boolean ignorePageTemplates,
                                                     ITransaction transaction)
                                              throws ManagerException,
                                                     PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get a list of ids by passing the ids of the service interface.

Specified by:
getIdsByServiceInterfaceId in interface IServiceInterfaceInstanceManager
ignorePageTemplates - TODO
Returns:
a arrays of Strings.
Throws:
ManagerException
PortalException

getIdsByServiceInstanceId

public Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig,
                                                    String serviceInstanceId,
                                                    ITransaction transaction)
                                             throws ManagerException,
                                                    PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get a list of ids by passing the id of the service instance.

Specified by:
getIdsByServiceInstanceId in interface IServiceInterfaceInstanceManager
Returns:
a array of Strings.
Throws:
ManagerException
PortalException

getIdsByServiceInstanceId

public Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig,
                                                    String serviceInstanceId,
                                                    boolean includeRunTimeInterfaces,
                                                    ITransaction transaction)
                                             throws ManagerException,
                                                    PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get the Ids given the ServiceInstanceId.

Specified by:
getIdsByServiceInstanceId in interface IServiceInterfaceInstanceManager
Returns:
a array of Strings.
Throws:
ManagerException
PortalException

getIdsByServiceInterfaceIdAndServiceInstanceId

public Collection<String> getIdsByServiceInterfaceIdAndServiceInstanceId(SessionConfig sessionConfig,
                                                                         String serviceInterfaceId,
                                                                         String serviceInstanceId,
                                                                         boolean ignoreRuntimeInterfaces,
                                                                         ITransaction transaction)
                                                                  throws ManagerException,
                                                                         PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get a list of ids by passing the ids of service interface and the service instance.

Specified by:
getIdsByServiceInterfaceIdAndServiceInstanceId in interface IServiceInterfaceInstanceManager
Returns:
a array of Strings.
Throws:
ManagerException
PortalException

getIdsByServiceInterfaceIdAndServiceInstanceId

public Collection<String> getIdsByServiceInterfaceIdAndServiceInstanceId(SessionConfig sessionConfig,
                                                                         String serviceInterfaceId,
                                                                         String serviceInstanceId,
                                                                         boolean ignoreRuntimeInterfaces,
                                                                         boolean ignorePageTemplates,
                                                                         ITransaction transaction)
                                                                  throws ManagerException,
                                                                         PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get a list of ids by passing the ids of service interface and the service instance.

Specified by:
getIdsByServiceInterfaceIdAndServiceInstanceId in interface IServiceInterfaceInstanceManager
ignorePageTemplates - TODO
Returns:
a array of Strings.
Throws:
ManagerException
PortalException

getIdsByPageId

public Collection<String> getIdsByPageId(SessionConfig sessionConfig,
                                         String pageId,
                                         ITransaction transaction)
                                  throws ManagerException,
                                         PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get a list of ids by passing the page's id.

Specified by:
getIdsByPageId in interface IServiceInterfaceInstanceManager
Returns:
a array of strings.
Throws:
ManagerException
PortalException

getIdsByServiceInterfaceStyleId

public Collection<String> getIdsByServiceInterfaceStyleId(SessionConfig sessionConfig,
                                                          String serviceInterfaceStyleId,
                                                          String serviceInterfaceId,
                                                          ITransaction transaction)
                                                   throws ManagerException,
                                                          PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get the Ids given the ServiceInterfaceStyleId.

Specified by:
getIdsByServiceInterfaceStyleId in interface IServiceInterfaceInstanceManager
Returns:
a arrays of Strings.
Throws:
ManagerException
PortalException

getCustomProperty

public String getCustomProperty(SessionConfig sessionConfig,
                                String interfaceInstanceId,
                                String name,
                                ITransaction transaction)
                         throws ManagerException,
                                PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the specified custom property. If the property has not been set earlier, null is returned.

Specified by:
getCustomProperty in interface IServiceInterfaceInstanceManager
Returns:
a String.
Throws:
ManagerException
PortalException

getCustomProperties

public Map<String,String> getCustomProperties(SessionConfig sessionConfig,
                                              String interfaceInstanceId,
                                              ITransaction transaction)
                                       throws ManagerException,
                                              PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns a Map containing all name/value pairs of custom properties from the specified service interface instance.

Specified by:
getCustomProperties in interface IServiceInterfaceInstanceManager
Parameters:
sessionConfig - the user session information.
interfaceInstanceId - the service interface instance id.
transaction - the transaction for persistence access.
Returns:
the map with the properties.
Throws:
ManagerException
PortalException

setCustomProperty

public void setCustomProperty(SessionConfig sessionConfig,
                              String interfaceInstanceId,
                              String name,
                              String value,
                              ITransaction transaction)
                       throws ManagerException,
                              PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Set a custom property for the given interface instance. If the property has been previously set, this method replaces the previous value, else a new property is created for the interface instance.

Specified by:
setCustomProperty in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

setCustomProperties

public void setCustomProperties(SessionConfig sessionConfig,
                                String interfaceInstanceId,
                                Map<String,String> propertiesTable,
                                ITransaction transaction)
                         throws ManagerException,
                                PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Receives a Map with one or more properties to be set for the given interface. If the property has been previously set, this method replaces the previous value, else a new property is created for the interface instance.

Specified by:
setCustomProperties in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

deleteCustomProperty

public void deleteCustomProperty(SessionConfig sessionConfig,
                                 String interfaceInstanceId,
                                 String name,
                                 ITransaction transaction)
                          throws ManagerException,
                                 PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Deletes the interface instance custom property

Specified by:
deleteCustomProperty in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

deleteCustomProperties

public void deleteCustomProperties(SessionConfig sessionConfig,
                                   String interfaceInstanceId,
                                   ITransaction transaction)
                            throws ManagerException,
                                   PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Deletes all the interface instance custom properties

Specified by:
deleteCustomProperties in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

getMenu

public String getMenu(SessionConfig sessionConfig,
                      String serviceInterfaceInstanceId,
                      ITransaction transaction)
               throws ManagerException,
                      PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the XML for the administration menu of the specified interface instance

Specified by:
getMenu in interface IServiceInterfaceInstanceManager
Returns:
a String.
Throws:
ManagerException
PortalException

addGenericMenuItemToMenu

protected void addGenericMenuItemToMenu(SessionConfig sessionConfig,
                                        String serviceInterfaceInstanceId,
                                        Node itemNode,
                                        StringBuilder menu,
                                        IServiceInterfaceManager serviceInterfaceManager,
                                        ITransaction transaction)
                                 throws ManagerException,
                                        PortalException
Throws:
ManagerException
PortalException

addMenuItemToMenu

protected String addMenuItemToMenu(SessionConfig sessionConfig,
                                   String serviceInterfaceInstanceId,
                                   Node itemNode,
                                   IServiceInterfaceManager serviceInterfaceManager,
                                   ITransaction transaction)
                            throws ManagerException,
                                   PortalException
Throws:
ManagerException
PortalException

addGroupItemToMenu

protected void addGroupItemToMenu(SessionConfig sessionConfig,
                                  String serviceInterfaceInstanceId,
                                  Node groupNode,
                                  StringBuilder menu,
                                  IServiceInterfaceManager serviceInterfaceManager,
                                  ITransaction transaction)
                           throws ManagerException,
                                  PortalException
Throws:
ManagerException
PortalException

updateCustomPropertiesFromTemplate

public void updateCustomPropertiesFromTemplate(SessionConfig sessionConfig,
                                               String interfaceInstanceId,
                                               ITransaction transaction)
                                        throws ManagerException,
                                               PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Update the interface instance custom properties from parent interface instance

Specified by:
updateCustomPropertiesFromTemplate in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

getXmlData

public String getXmlData(SessionConfig sessionConfig,
                         String serviceInterfaceInstanceId)
                  throws ManagerException,
                         PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the previously saved XML data for the service interface instance for the given user session

Specified by:
getXmlData in interface IServiceInterfaceInstanceManager
Returns:
a String.
Throws:
ManagerException
PortalException

getPrintable

public boolean getPrintable(SessionConfig sessionConfig,
                            String serviceInterfaceInstanceId,
                            ITransaction transaction)
                     throws ManagerException,
                            PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the printable property of an interface instance. It may be necessary to look at the interface definition

Specified by:
getPrintable in interface IServiceInterfaceInstanceManager
Returns:
true if ServiceInterface is printable and false otherwise.
Throws:
ManagerException
PortalException

getRenderAs

public int getRenderAs(SessionConfig sessionConfig,
                       String serviceInterfaceInstanceId,
                       ITransaction transaction)
                throws ManagerException,
                       PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the renderAs property of an interface instance. It may be necessary to look at the interface definition

Specified by:
getRenderAs in interface IServiceInterfaceInstanceManager
Returns:
a integer.
Throws:
ManagerException
PortalException

getEnableCache

public boolean getEnableCache(SessionConfig sessionConfig,
                              String serviceInterfaceInstanceId,
                              ITransaction transaction)
                       throws ManagerException,
                              PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the enableCache property of an interface instance. It may be necessary to look at the interface definition

Specified by:
getEnableCache in interface IServiceInterfaceInstanceManager
Returns:
true if the Cache is enable.
Throws:
ManagerException
PortalException

getCacheLevel

public int getCacheLevel(SessionConfig sessionConfig,
                         String serviceInterfaceInstanceId,
                         ITransaction transaction)
                  throws ManagerException,
                         PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the cacheLevel property of an interface instance. It may be necessary to look at the interface definition

Specified by:
getCacheLevel in interface IServiceInterfaceInstanceManager
Returns:
an integer.
Throws:
ManagerException
PortalException

getCachePersonalization

public int getCachePersonalization(SessionConfig sessionConfig,
                                   String serviceInterfaceInstanceId,
                                   ITransaction transaction)
                            throws ManagerException,
                                   PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the cachePersonalization property of an interface instance. It may be necessary to look at the interface definition

Specified by:
getCachePersonalization in interface IServiceInterfaceInstanceManager
Returns:
an integer.
Throws:
ManagerException
PortalException

getCacheServerSideInclude

public boolean getCacheServerSideInclude(SessionConfig sessionConfig,
                                         String serviceInterfaceInstanceId,
                                         ITransaction transaction)
                                  throws ManagerException,
                                         PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the cacheServerSideInclude property of an interface instance. It may be necessary to look at the interface definition

Specified by:
getCacheServerSideInclude in interface IServiceInterfaceInstanceManager
Returns:
true if the ... and false otherwise.
Throws:
ManagerException
PortalException

serialize

public void serialize(SessionConfig sessionConfig,
                      String serviceInterfaceInstanceId,
                      OutputStream outputStream,
                      ITransaction transaction)
               throws ManagerException,
                      PortalException
Specified by:
serialize in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

deserialize

public String deserialize(SessionConfig sessionConfig,
                          DeserializationConfig deserializationConfig,
                          Node serviceInterfaceInstanceNode,
                          ITransaction transaction)
                   throws ManagerException,
                          PortalException
Specified by:
deserialize in interface IServiceInterfaceInstanceManager
Returns:
a String.
Throws:
ManagerException
PortalException

serializeCustomProperties

public void serializeCustomProperties(SessionConfig sessionConfig,
                                      String serviceInterfaceInstanceId,
                                      OutputStream outputStream,
                                      ITransaction transaction)
                               throws ManagerException,
                                      PortalException
Specified by:
serializeCustomProperties in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

deserializeCustomProperties

@Deprecated
public void deserializeCustomProperties(SessionConfig sessionConfig,
                                                   DeserializationConfig deserializationConfig,
                                                   Node serviceInterfaceInstanceCustomPropertiesNode,
                                                   ITransaction transaction)
                                 throws ManagerException,
                                        PortalException
Deprecated. 

Specified by:
deserializeCustomProperties in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

clearCache

public void clearCache(SessionConfig sessionConfig,
                       String serviceInterfaceInstanceId,
                       ITransaction transaction)
                throws ManagerException,
                       PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Clears the caches of a service interface instance.

Clears service interface instance related information, cached in this manager, including HTML cache, and its XSL cache.

Specified by:
clearCache in interface IServiceInterfaceInstanceManager
Parameters:
sessionConfig - the user session information.
serviceInterfaceInstanceId - the service interface instance identifier.
transaction - the transaction for persistence access.
Throws:
ManagerException
PortalException

clearCache

public void clearCache(ITransaction transaction)
                throws PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Clears all cache stored in this manager.

Specified by:
clearCache in interface IServiceInterfaceInstanceManager
Parameters:
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).
Throws:
PortalException

setInterfaceInstanceHtmlCache

public void setInterfaceInstanceHtmlCache(SessionConfig sessionConfig,
                                          String serviceInterfaceInstanceId,
                                          Locale locale,
                                          String serviceInterfaceInstanceHtml,
                                          ITransaction transaction)
                                   throws ManagerException,
                                          PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get the HTML Cache of the Interface Instance.

Specified by:
setInterfaceInstanceHtmlCache in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

getInterfaceInstanceHtmlCache

public String getInterfaceInstanceHtmlCache(SessionConfig sessionConfig,
                                            String serviceInterfaceInstanceId,
                                            Locale locale,
                                            ITransaction transaction)
                                     throws ManagerException,
                                            PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Get the HTML Cache of the Interface Instance.

Specified by:
getInterfaceInstanceHtmlCache in interface IServiceInterfaceInstanceManager
Returns:
Throws:
ManagerException
PortalException

updatePropertiesFromTemplate

public void updatePropertiesFromTemplate(SessionConfig sessionConfig,
                                         String interfaceInstanceId,
                                         ITransaction transaction)
                                  throws ManagerException,
                                         PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Update the properties of from the template.

Specified by:
updatePropertiesFromTemplate in interface IServiceInterfaceInstanceManager
Throws:
ManagerException
PortalException

getServiceInterfaceInstanceStyleConfigKeyChecker

public IConfigKeyChecker getServiceInterfaceInstanceStyleConfigKeyChecker()
Specified by:
getServiceInterfaceInstanceStyleConfigKeyChecker in interface IServiceInterfaceInstanceManager

getTitle

public String getTitle(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
                       ITransaction transaction)
                throws PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the title for a service interface instance. The title is calculated from the service interface instance and the service interface properties/definitions.

Specified by:
getTitle in interface IServiceInterfaceInstanceManager
Parameters:
serviceInterfaceInstanceConfig - the service interface instance.
transaction - the transaction for persistence access.
Returns:
the title. May be a localizable string.
Throws:
PortalException

getDisplayName

public String getDisplayName(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
                             ITransaction transaction)
                      throws PortalException
Description copied from interface: IServiceInterfaceInstanceManager
Returns the display name for a service interface instance. The display name is calculated from the service interface instance and the service interface properties/definitions.

Specified by:
getDisplayName in interface IServiceInterfaceInstanceManager
Parameters:
serviceInterfaceInstanceConfig - the service interface instance.
transaction - the transaction for persistence access.
Returns:
the display name. May be a localizable string.
Throws:
PortalException

isDerivedFromTemplate

public boolean isDerivedFromTemplate(SessionConfig sessionConfig,
                                     ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
                                     ITransaction transaction)
                              throws ManagerException,
                                     PortalException
Verify whether service interface instance is derived from a channel template or page template.

Parameters:
sessionConfig - session config of the user request.
serviceInterfaceInstanceConfig - instance to be checked.
transaction - transaction used to get information from database.
Returns:
true if the the instance is derived from a template, otherwise false.
Throws:
ManagerException - if an error occurs during the communication with database.
PortalException - if an other error occurs during the process.
Since:
6.2.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.