Package lumis.portal.serialization
Class SerializationContext
- java.lang.Object
-
- lumis.portal.serialization.BaseSerializationContext
-
- lumis.portal.serialization.SerializationContext
-
public class SerializationContext extends BaseSerializationContext
Context class for portal objects serialization- Since:
- 4.0.7
- Version:
- $Revision: 16545 $ $Date: 2014-10-27 19:43:41 -0200 (Mon, 27 Oct 2014) $
-
-
Constructor Summary
Constructors Constructor Description SerializationContext(SessionConfig sessionConfig, ITransaction transaction, String rootChannelId, IDirectory directory, boolean progressEnabled, boolean includeContent)
SerializationContext(SessionConfig sessionConfig, ITransaction transaction, String rootChannelId, IDirectory directory, boolean progressEnabled, boolean includeContent, boolean forExport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
boolean
isForExport()
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
-
-
-
-
Constructor Detail
-
SerializationContext
public SerializationContext(SessionConfig sessionConfig, ITransaction transaction, String rootChannelId, IDirectory directory, boolean progressEnabled, boolean includeContent) throws PortalException
- Throws:
PortalException
-
SerializationContext
public SerializationContext(SessionConfig sessionConfig, ITransaction transaction, String rootChannelId, IDirectory directory, boolean progressEnabled, boolean includeContent, boolean forExport) throws PortalException
- Throws:
PortalException
-
-
Method Detail
-
addReferencedServiceInterface
public void addReferencedServiceInterface(String serviceId, String serviceInterfaceId)
-
getExternalDependencies
public List<Dependency> getExternalDependencies()
-
getExternalServiceInstanceDependencies
public Map<String,Dependency> getExternalServiceInstanceDependencies()
-
getServiceInstanceSerializationContext
public ServiceInstanceSerializationContext getServiceInstanceSerializationContext()
-
getShowExternalDependencyWarnings
public boolean getShowExternalDependencyWarnings()
-
setShowExternalDependencyWarnings
public void setShowExternalDependencyWarnings(boolean showExternalDependencyWarnings)
-
setTransaction
public void setTransaction(ITransaction transaction)
- Overrides:
setTransaction
in classBaseSerializationContext
-
setShallowSerialization
public void setShallowSerialization(boolean shallowSerialization)
Sets whether the serialization will serialize the structure recursively or not. SeeBaseSerializationContext.isShallowSerialization()
for more details on recursion implications.- Overrides:
setShallowSerialization
in classBaseSerializationContext
- 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
-
isForExport
public boolean isForExport()
-
-