|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.serialization.SerializationManager2
public class SerializationManager2
Manager for portal objects serialization and deserialization
Nested Class Summary | |
---|---|
class |
SerializationManager2.DeserializeChannelRunner
|
class |
SerializationManager2.SerializeChannelRunner
|
class |
SerializationManager2.WorkflowSerializationMessageConfig
|
Field Summary |
---|
Fields inherited from interface lumis.portal.serialization.ISerializationManager2 |
---|
ATTRIBUTE_DESERIALIZING, ATTRIBUTE_SERIALIZING |
Constructor Summary | |
---|---|
SerializationManager2()
|
Method Summary | ||
---|---|---|
void |
beginDeserializeChannel(DeserializationContext deserializationContext)
Deserialize a channel from a xml file asynchronously. |
|
void |
beginSerializeChannel(SerializationContext serializationContext)
Serialize a channel to a xml file asynchronously. |
|
String |
deserializeChannel(DeserializationContext deserializationContext)
Deserialize a channel from a xml file. |
|
|
deserializeObject(Class<T> objectClass,
IDirectory directory,
String filePath,
String alias,
boolean fileIsOptional)
|
|
|
deserializeObject(Class<T> objectClass,
IDirectory directory,
String filePath,
String alias,
ISerializer serializer,
boolean fileIsOptional)
Deserializes an object from a file in a directory. |
|
|
deserializeObject(Class<T> objectClass,
IDirectory directory,
String filePath,
String alias,
SerializationSettings serializationSettings,
boolean fileIsOptional)
|
|
void |
deserializePage(DeserializationContext deserializationContext,
String pageId,
boolean setupSerializationContext,
boolean checkUnresolvedDependencies)
Deserialize a page from a xml file. |
|
SerializationSettings |
getExternalDependenciesSerializationSettings()
TODO: Método movido para SerializationContext e deprecated. |
|
void |
serializeChannel(SerializationContext serializationContext)
Serialize a channel to a xml file. |
|
void |
serializeMap(Map<String,String> map,
IDirectory directory,
String filePath,
String alias)
Serializes a Map object where the name and value are of type String. |
|
void |
serializeObject(Object o,
IDirectory directory,
String filePath,
String alias)
|
|
void |
serializeObject(Object o,
IDirectory directory,
String filePath,
String alias,
ISerializer serializer)
Serializes an object to a file in a directory. |
|
void |
serializeObject(Object o,
IDirectory directory,
String filePath,
String alias,
SerializationSettings serializationSettings)
|
|
String |
serializeObjectToString(Object o,
String alias)
Serialize an object to a xml String. |
|
String |
serializeObjectToString(Object o,
String alias,
ISerializer serializer)
Serialize an object to a xml String, using a given XStream object |
|
String |
serializeObjectToString(Object o,
String alias,
SerializationSettings serializationSettings)
Serialize an object to a xml String, using custom serialization settings |
|
void |
serializePage(SerializationContext serializationContext,
String pageId,
boolean setupSerializationContext)
Serialize a page to a xml file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializationManager2()
Method Detail |
---|
public void beginSerializeChannel(SerializationContext serializationContext) throws ManagerException, PortalException
ISerializationManager2
beginSerializeChannel
in interface ISerializationManager2
serializationContext
- context object that contains all operation settings
ManagerException
PortalException
public void beginDeserializeChannel(DeserializationContext deserializationContext) throws ManagerException, PortalException
ISerializationManager2
beginDeserializeChannel
in interface ISerializationManager2
deserializationContext
- context object that contains all operation settings
ManagerException
PortalException
public void serializeChannel(SerializationContext serializationContext) throws ManagerException, PortalException
ISerializationManager2
serializeChannel
in interface ISerializationManager2
serializationContext
- context object that contains all operation settings
ManagerException
PortalException
public SerializationSettings getExternalDependenciesSerializationSettings()
getExternalDependenciesSerializationSettings
in interface ISerializationManager2
public String deserializeChannel(DeserializationContext deserializationContext) throws ManagerException, PortalException
ISerializationManager2
deserializeChannel
in interface ISerializationManager2
deserializationContext
- context object that contains all operation settings
ManagerException
PortalException
public void deserializePage(DeserializationContext deserializationContext, String pageId, boolean setupSerializationContext, boolean checkUnresolvedDependencies) throws ManagerException, PortalException
ISerializationManager2
deserializePage
in interface ISerializationManager2
deserializationContext
- context object that contains all operation settingspageId
- page to be deserializedsetupSerializationContext
- indicates if the serialization settings must be set before the operationcheckUnresolvedDependencies
- indicates when the existence of unresolved dependencies must raise a SerializationException
ManagerException
PortalException
public void serializePage(SerializationContext serializationContext, String pageId, boolean setupSerializationContext) throws ManagerException, PortalException
ISerializationManager2
serializePage
in interface ISerializationManager2
serializationContext
- context object that contains all operation settingspageId
- page to be serializedsetupSerializationContext
- indicates if the serialization settings must be set before the operation
ManagerException
PortalException
public String serializeObjectToString(Object o, String alias) throws SerializationException
ISerializationManager2
serializeObjectToString
in interface ISerializationManager2
o
- object to be serializedalias
- alias (tag name) for the object
SerializationException
public String serializeObjectToString(Object o, String alias, SerializationSettings serializationSettings) throws SerializationException
ISerializationManager2
serializeObjectToString
in interface ISerializationManager2
o
- object to be serializedalias
- alias (tag name) for the objectserializationSettings
- serialization settings for the operation
SerializationException
public String serializeObjectToString(Object o, String alias, ISerializer serializer) throws SerializationException
ISerializationManager2
serializeObjectToString
in interface ISerializationManager2
o
- object to be serializedalias
- alias (tag name) for the object.serializer
- the object serializer instance.
SerializationException
public void serializeObject(Object o, IDirectory directory, String filePath, String alias) throws SerializationException
serializeObject
in interface ISerializationManager2
SerializationException
public void serializeObject(Object o, IDirectory directory, String filePath, String alias, SerializationSettings serializationSettings) throws SerializationException
serializeObject
in interface ISerializationManager2
SerializationException
public void serializeObject(Object o, IDirectory directory, String filePath, String alias, ISerializer serializer) throws SerializationException
ISerializationManager2
serializeObject
in interface ISerializationManager2
o
- the object.directory
- the directory.filePath
- the file path in the directory.alias
- the alias for the object.serializer
- the object serializer instance.
SerializationException
public void serializeMap(Map<String,String> map, IDirectory directory, String filePath, String alias) throws SerializationException
ISerializationManager2
serializeMap
in interface ISerializationManager2
map
- the map object to be serialized.directory
- the directory objecto to be serialized to.filePath
- the file path within the directory.alias
- alias to use for the Map object.
SerializationException
public <T> T deserializeObject(Class<T> objectClass, IDirectory directory, String filePath, String alias, boolean fileIsOptional) throws SerializationException
deserializeObject
in interface ISerializationManager2
SerializationException
public <T> T deserializeObject(Class<T> objectClass, IDirectory directory, String filePath, String alias, SerializationSettings serializationSettings, boolean fileIsOptional) throws SerializationException
deserializeObject
in interface ISerializationManager2
SerializationException
public <T> T deserializeObject(Class<T> objectClass, IDirectory directory, String filePath, String alias, ISerializer serializer, boolean fileIsOptional) throws SerializationException
ISerializationManager2
deserializeObject
in interface ISerializationManager2
T
- the object type.objectClass
- the object class type.directory
- the directory.filePath
- the file path in the directory.alias
- the alias for the object.serializer
- the object serializer instance.fileIsOptional
- if true
, the file may not exist,
which causes the return to be null
.
null
if
fileIsOptional
is true and the file is not found.
SerializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |