lumis.portal.serialization
Class SerializationContext

Package class diagram package SerializationContext
java.lang.Object
  extended by lumis.portal.serialization.BaseSerializationContext
      extended by lumis.portal.serialization.SerializationContext

public class SerializationContext
extends BaseSerializationContext

Context class for portal objects serialization

Since:
4.0.7

Constructor Summary
SerializationContext(SessionConfig sessionConfig, ITransaction transaction, String rootChannelId, IDirectory directory, boolean progressEnabled, boolean includeContent)
           
 
Method Summary
 void addReferencedServiceInterface(String serviceId, String serviceInterfaceId)
           
 Set<String> getChannelIds()
           
 List<Dependency> getExternalDependencies()
           
 Map<String,Dependency> getExternalServiceInstanceDependencies()
           
 boolean getIncludeUserMembership()
          Indicates if information about users being member of a group being exported is to be included.
 Set<String> getReferencedCssIds()
           
 Map<String,Set<String>> getReferencedServiceInterfaceIds()
           
 Set<String> getReferencedServiceInterfaceStyleIds()
           
 ServiceInstanceSerializationContext getServiceInstanceSerializationContext()
           
 boolean getShowExternalDependencyWarnings()
           
 void setIncludeUserMembership(boolean include)
          Sets if information about users being member of a group being exported is to be included.
 void setShallowSerialization(boolean shallowSerialization)
          Sets whether the serialization will serialize the structure recursively or not.
 void setShowExternalDependencyWarnings(boolean showExternalDependencyWarnings)
           
 void setTransaction(ITransaction transaction)
           
 
Methods inherited from class lumis.portal.serialization.BaseSerializationContext
getCurrentChannelPath, getDefaultSerializer, getDirectory, getGlobalGroups, getIncludeContent, getItemProgressMax, getItemProgressValue, getOverallProgressMax, getOverallProgressValue, getProcessId, getProgressEnabled, getResource, getRootChannelId, getSerializationSettings, getSessionConfig, getStartTime, getTransaction, incrementItemProgressValue, incrementOverallProgressValue, isShallowSerialization, logDebug, logDebug, logDebug, sendProgressFinalNotification, sendProgressNotification, sendProgressNotification, setCurrentChannelPath, setDefaultSerializer, setDirectory, setItemProgressMax, setItemProgressValue, setOverallProgressMax, setOverallProgressValue, setProcessId, setRootChannelId, setSerializationSettings, setStartTime, updateProgressBar, updateProgressBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationContext

public SerializationContext(SessionConfig sessionConfig,
                            ITransaction transaction,
                            String rootChannelId,
                            IDirectory directory,
                            boolean progressEnabled,
                            boolean includeContent)
                     throws PortalException
Throws:
PortalException
Method Detail

getReferencedServiceInterfaceStyleIds

public Set<String> getReferencedServiceInterfaceStyleIds()

getReferencedCssIds

public Set<String> getReferencedCssIds()

getReferencedServiceInterfaceIds

public Map<String,Set<String>> getReferencedServiceInterfaceIds()

addReferencedServiceInterface

public void addReferencedServiceInterface(String serviceId,
                                          String serviceInterfaceId)

getExternalDependencies

public List<Dependency> getExternalDependencies()

getExternalServiceInstanceDependencies

public Map<String,Dependency> getExternalServiceInstanceDependencies()

getChannelIds

public Set<String> getChannelIds()

getServiceInstanceSerializationContext

public ServiceInstanceSerializationContext getServiceInstanceSerializationContext()

getShowExternalDependencyWarnings

public boolean getShowExternalDependencyWarnings()

setShowExternalDependencyWarnings

public void setShowExternalDependencyWarnings(boolean showExternalDependencyWarnings)

setTransaction

public void setTransaction(ITransaction transaction)
Overrides:
setTransaction in class BaseSerializationContext

setShallowSerialization

public void setShallowSerialization(boolean shallowSerialization)
Sets whether the serialization will serialize the structure recursively or not. See BaseSerializationContext.isShallowSerialization() for more details on recursion implications.

Overrides:
setShallowSerialization in class BaseSerializationContext
Parameters:
shallowSerialization - the shallow serialization value.
Since:
5.0.0

getIncludeUserMembership

public boolean getIncludeUserMembership()
Indicates if information about users being member of a group being exported is to be included.

Note that this refers only to members that are users, this does not affect members that are groups.

Returns:
if true, information about users being member of a group being exported is to be included; if false such information must not be included.
Since:
4.2.1

setIncludeUserMembership

public void setIncludeUserMembership(boolean include)
Sets if information about users being member of a group being exported is to be included.

Note that this refers only to members that are users, this does not affect members that are groups.

Parameters:
include - true to be included, false otherwise.
Since:
4.2.1


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.