public static final class ISerializer.DeserializationParameters extends Object
Constructor and Description |
---|
DeserializationParameters(IExternalFileReader reader,
RID rid,
IResourceContext context,
ILogger logger,
RIDRequestList ridrequestlist,
boolean anonymize,
String anonymizedUserId,
ISerializer.ImportMode mode,
String batchID)
provides all the data needed for this container instance.
|
Modifier and Type | Method and Description |
---|---|
Result |
deserialize(RID rid,
ISerializer serializer)
Deprecated.
use
deserialize(RIDRequest) instead |
Result |
deserialize(RIDRequest request)
|
Result |
deserialize(RID rid,
RID newName,
ISerializer serializer)
Deprecated.
|
String |
getAnonymizedUserId() |
String |
getBatchID() |
IResourceContext |
getContext() |
ILogger |
getLogger() |
ISerializer.ImportMode |
getMode() |
RID |
getRid() |
boolean |
isAnonymized() |
InputStream |
retrieveRequest(String name,
ISerializer serializer) |
public DeserializationParameters(IExternalFileReader reader, RID rid, IResourceContext context, ILogger logger, RIDRequestList ridrequestlist, boolean anonymize, String anonymizedUserId, ISerializer.ImportMode mode, String batchID)
null
reader
- allows requesting to read data stored outside the caller's xmlrid
- the rid of the resource to be importedcontext
- the resource context to use. This should be a service user's contextlogger
- allows to add data into the deserialization logridrequestlist
- stores rids that need to be deserialized as wellanonymize
- flag to define anonymization behavioranonymizedUserId
- ID of the user to use, if it is an anonymized deserializationmode
- defines behavior in case of content conflictsbatchID
- If several resources are deserialized in one process, they should all be deserialized using the same batchID.public boolean isAnonymized()
public String getAnonymizedUserId()
null
.public RID getRid()
public IResourceContext getContext()
public ILogger getLogger()
public ISerializer.ImportMode getMode()
public String getBatchID()
public Result deserialize(RID rid, RID newName, ISerializer serializer)
IResource
.
Depending on the implementation of this interface, this call might be
done directly or it will be carried out after the deserialization of the
current resource has finished. The serializer must have requested the
serialization of that resource.rid
- the absolute rid of the resource to deserialize. Must not be
null
newName
- the new absolute rid of the resource. Must not be
null
serializer
- the serializer calling, must not be null
Result
instancepublic Result deserialize(RID rid, ISerializer serializer)
deserialize(RIDRequest)
insteadIResource
.
Depending on the implementation of this interface, this call might be
done directly or it will be carried out after the deserialization of the
current resource has finished. The serializer must have requested the
serialization of that resource.rid
- the absolute rid of the resource to deserialize. Must not be
null
serializer
- serializerResult
instancepublic Result deserialize(RIDRequest request)
request
- - must not be null
public InputStream retrieveRequest(String name, ISerializer serializer) throws SerializationException
name
- the name of the external file to retrieve the content from.
Must be the same name that has been returned to the caller when
it requested that external file with the method
getRequest
or addRequest
of the
interface IExternalFileRequester
serializer
- serializerSerializationException
- SerializationExceptionAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice