Package nl.gx.webmanager.foundation
Class PersonalizationFactory
- java.lang.Object
-
- nl.gx.webmanager.foundation.SiteWorksWrapperFactory
-
- nl.gx.webmanager.foundation.PersonalizationFactory
-
- All Implemented Interfaces:
NodeFactory
,WrapperFactory
public class PersonalizationFactory extends SiteWorksWrapperFactory implements NodeFactory
Wrapper factory that wraps wm_personalization objects.
-
-
Field Summary
-
Fields inherited from interface nl.gx.webmanager.wrapper.WrapperFactory
CUSTOM_ELEMENT_CLASSDECL, CUSTOM_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description PersonalizationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getInstance(int id, Class targetClass)
Returns an instance of the specified class wrapping the specified id.Object
getInstance(String uuid, Class targetClass)
Creates an instance of the specified class, with the specified id.Object
getInstance(javax.jcr.Node node, Class targetClass)
Creates an instance of the specified class.-
Methods inherited from class nl.gx.webmanager.foundation.SiteWorksWrapperFactory
createInstance, getHttpServletRequest, getHttpServletResponse, getInstance, setHttpServletRequest, setHttpServletResponse
-
-
-
-
Method Detail
-
getInstance
public final Object getInstance(int id, Class targetClass)
Description copied from interface:WrapperFactory
Returns an instance of the specified class wrapping the specified id.- Specified by:
getInstance
in interfaceWrapperFactory
- Overrides:
getInstance
in classSiteWorksWrapperFactory
- Parameters:
id
- The identifier for the new instance.targetClass
- The type of the new instance- Returns:
- The new instance of the specified type, with the specified id.
-
getInstance
public final Object getInstance(String uuid, Class targetClass)
Description copied from interface:NodeFactory
Creates an instance of the specified class, with the specified id.- Specified by:
getInstance
in interfaceNodeFactory
- Parameters:
uuid
- The identifier for the new instance.targetClass
- The type of the new instance- Returns:
- The new instance of the specified type, with the specified id.
-
getInstance
public final Object getInstance(javax.jcr.Node node, Class targetClass)
Description copied from interface:NodeFactory
Creates an instance of the specified class.- Specified by:
getInstance
in interfaceNodeFactory
- Parameters:
node
- the node that should be given to the constructortargetClass
- The type of the new instance- Returns:
- The new instance of the specified type
-
-