info.magnolia.content2bean
Class Content2BeanUtil

java.lang.Object
  extended by info.magnolia.content2bean.Content2BeanUtil

Deprecated. since 4.5.18 - will be dropped without replacement.

public class Content2BeanUtil
extends Object

Utility class for content to bean transformations. In case you do not have to customize the transformation, you should use one of these methods:


Nested Class Summary
static class Content2BeanUtil.DefaultClassTransformer
          Deprecated. Provide a default class.
static class Content2BeanUtil.ToMapTransformer
          Deprecated. A Content2BeanTransformer transforming all nodes to Maps.
 
Field Summary
static Content2BeanTransformerImpl TO_MAP_TRANSFORMER
          Deprecated. since 4.5 - use Content2BeanUtil.ToMapTransformer.
 
Constructor Summary
Content2BeanUtil()
          Deprecated.  
 
Method Summary
static void addCollectionPropertyMapping(Class type, String name, Class mappedType)
          Deprecated. since 4.5 - only used in tests
static Bean2ContentProcessor getBean2ContentProcessor()
          Deprecated. since 4.5 - unused, Bean2Content is not implemented yet.
static Content2BeanProcessor getContent2BeanProcessor()
          Deprecated. since 4.5, use IoC. - TODO only used locally
static Content2BeanTransformer getContent2BeanTransformer()
          Deprecated. since 4.5, use IoC.
static TypeMapping getTypeMapping()
          Deprecated. since 4.5, use IoC.
static void setNodeDatas(Content node, Map map)
          Deprecated. since 4.5 - TODO - only used locally - use Content2Bean
static void setNodeDatas(Content node, Object obj)
          Deprecated. since 4.5 - unused - use Content2Bean
static void setNodeDatas(Content node, Object bean, String[] excludes)
          Deprecated. since 4.5 - unused - use Content2Bean
static Object setProperties(Object bean, Content node)
          Deprecated. since 4.5 - unused - use Content2Bean
static Object setProperties(Object bean, Content node, boolean recursive)
          Deprecated. since 4.5 - TODO - only used locally and by ModuleManagerImpl and TreeHandlerManager
static Object setProperties(Object bean, Content node, boolean recursive, Class defaultClass)
          Deprecated. since 4.5 - TODO - only used locally - use Content2Bean
static Object setProperties(Object bean, Content node, boolean recursive, Content2BeanTransformer transformer)
          Deprecated. since 4.5 - use Content2Bean
static Object setProperties(Object bean, Content node, boolean recursive, Content2BeanTransformer transformer, ComponentProvider componentProvider)
          Deprecated. since 4.5 - use Content2Bean
static Object toBean(Content node)
          Deprecated. since 4.5 - only used in tests - use Content2Bean
static Object toBean(Content node, boolean recursive)
          Deprecated. since 4.5- only used in DelegateVoter - use Content2Bean
static Object toBean(Content node, boolean recursive, Class defaultClass)
          Deprecated. since 4.5 - TODO used in FilterManagerImpl, ParagraphManager and TemplateManager - use Content2Bean
static Object toBean(Content node, boolean recursive, ComponentProvider componentProvider)
          Deprecated. since 4.5- only used in DelegateVoter - use Content2Bean
static Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer)
          Deprecated. since 4.5 use Content2Bean TODO -- this method has a bunch of usage points
static Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer, ComponentProvider componentProvider)
          Deprecated. since 4.5 use Content2Bean TODO -- this method has a bunch of usage points
static Object toBean(Content node, Class defaultClass)
          Deprecated. since 4.5 - only used in tests - use Content2Bean
static Map toMap(Content node)
          Deprecated. since 4.5 - not used - use Content2Bean
static Map toMap(Content node, boolean recursive)
          Deprecated. since 4.5 - only used in info.magnolia.setup.for3_5.UpdateI18nConfiguration - use Content2Bean
static
<K,V> Map<K,V>
toMap(Content node, boolean recursive, Class defaultClass)
          Deprecated. since 4.5 - TODO only used in DefaultMessagesManager - use Content2Bean
static Map toPureMaps(Content node, boolean recursive)
          Deprecated. since 4.5 - TODO only used in info.magnolia.setup.for3_5.CheckAndUpdateExistingFilters - use Content2Bean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TO_MAP_TRANSFORMER

public static final Content2BeanTransformerImpl TO_MAP_TRANSFORMER
Deprecated. since 4.5 - use Content2BeanUtil.ToMapTransformer.
Transforms all nodes to a map.

Constructor Detail

Content2BeanUtil

public Content2BeanUtil()
Deprecated. 
Method Detail

getContent2BeanProcessor

public static Content2BeanProcessor getContent2BeanProcessor()
Deprecated. since 4.5, use IoC. - TODO only used locally

Get the current processor.


getBean2ContentProcessor

public static Bean2ContentProcessor getBean2ContentProcessor()
Deprecated. since 4.5 - unused, Bean2Content is not implemented yet.

Get the current processor.


getTypeMapping

public static TypeMapping getTypeMapping()
Deprecated. since 4.5, use IoC.

Get the current mapping.


getContent2BeanTransformer

public static Content2BeanTransformer getContent2BeanTransformer()
Deprecated. since 4.5, use IoC.

Get the current transformer.


toBean

public static Object toBean(Content node)
                     throws Content2BeanException
Deprecated. since 4.5 - only used in tests - use Content2Bean

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

toBean

public static Object toBean(Content node,
                            Class defaultClass)
                     throws Content2BeanException
Deprecated. since 4.5 - only used in tests - use Content2Bean

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

toBean

public static Object toBean(Content node,
                            boolean recursive,
                            Class defaultClass)
                     throws Content2BeanException
Deprecated. since 4.5 - TODO used in FilterManagerImpl, ParagraphManager and TemplateManager - use Content2Bean

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

toBean

public static Object toBean(Content node,
                            boolean recursive)
                     throws Content2BeanException
Deprecated. since 4.5- only used in DelegateVoter - use Content2Bean

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

toBean

public static Object toBean(Content node,
                            boolean recursive,
                            ComponentProvider componentProvider)
                     throws Content2BeanException
Deprecated. since 4.5- only used in DelegateVoter - use Content2Bean

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

toBean

public static Object toBean(Content node,
                            boolean recursive,
                            Content2BeanTransformer transformer)
                     throws Content2BeanException
Deprecated. since 4.5 use Content2Bean TODO -- this method has a bunch of usage points

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

toBean

public static Object toBean(Content node,
                            boolean recursive,
                            Content2BeanTransformer transformer,
                            ComponentProvider componentProvider)
                     throws Content2BeanException
Deprecated. since 4.5 use Content2Bean TODO -- this method has a bunch of usage points

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

toMap

public static Map toMap(Content node)
                 throws Content2BeanException
Deprecated. since 4.5 - not used - use Content2Bean

Transforms the nodes data into a map containing the names and values.

Returns:
a flat map
Throws:
Content2BeanException

toMap

public static Map toMap(Content node,
                        boolean recursive)
                 throws Content2BeanException
Deprecated. since 4.5 - only used in info.magnolia.setup.for3_5.UpdateI18nConfiguration - use Content2Bean

Transforms the nodes data into a map containing the names and values. In case recursive is true the sub-nodes are transformed to beans using the transformer. To avoid that use toMaps() instead

Throws:
Content2BeanException

toMap

public static <K,V> Map<K,V> toMap(Content node,
                                   boolean recursive,
                                   Class defaultClass)
                      throws Content2BeanException
Deprecated. since 4.5 - TODO only used in DefaultMessagesManager - use Content2Bean

Throws:
Content2BeanException

toPureMaps

public static Map toPureMaps(Content node,
                             boolean recursive)
                      throws Content2BeanException
Deprecated. since 4.5 - TODO only used in info.magnolia.setup.for3_5.CheckAndUpdateExistingFilters - use Content2Bean

Transforms the nodes data into a map containing the names and values. In case recursive is true the sub-nodes are transformed to maps as well

Throws:
Content2BeanException

setProperties

public static Object setProperties(Object bean,
                                   Content node)
                            throws Content2BeanException
Deprecated. since 4.5 - unused - use Content2Bean

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

setProperties

public static Object setProperties(Object bean,
                                   Content node,
                                   boolean recursive)
                            throws Content2BeanException
Deprecated. since 4.5 - TODO - only used locally and by ModuleManagerImpl and TreeHandlerManager

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

setProperties

public static Object setProperties(Object bean,
                                   Content node,
                                   boolean recursive,
                                   Class defaultClass)
                            throws Content2BeanException
Deprecated. since 4.5 - TODO - only used locally - use Content2Bean

Throws:
Content2BeanException

setProperties

public static Object setProperties(Object bean,
                                   Content node,
                                   boolean recursive,
                                   Content2BeanTransformer transformer)
                            throws Content2BeanException
Deprecated. since 4.5 - use Content2Bean

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

setProperties

public static Object setProperties(Object bean,
                                   Content node,
                                   boolean recursive,
                                   Content2BeanTransformer transformer,
                                   ComponentProvider componentProvider)
                            throws Content2BeanException
Deprecated. since 4.5 - use Content2Bean

Throws:
Content2BeanException
See Also:
Content2BeanProcessor

addCollectionPropertyMapping

public static void addCollectionPropertyMapping(Class type,
                                                String name,
                                                Class mappedType)
Deprecated. since 4.5 - only used in tests

See Also:
Content2BeanProcessor

setNodeDatas

public static void setNodeDatas(Content node,
                                Object bean,
                                String[] excludes)
                         throws Content2BeanException
Deprecated. since 4.5 - unused - use Content2Bean

TODO use the Bean2ContentProcessor.

Throws:
Content2BeanException

setNodeDatas

public static void setNodeDatas(Content node,
                                Object obj)
                         throws Content2BeanException
Deprecated. since 4.5 - unused - use Content2Bean

TODO use the Bean2ContentProcessor.

Throws:
Content2BeanException

setNodeDatas

public static void setNodeDatas(Content node,
                                Map map)
                         throws Content2BeanException
Deprecated. since 4.5 - TODO - only used locally - use Content2Bean

TODO use the Bean2ContentProcessor.

Throws:
Content2BeanException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.