org.hippoecm.hst.pagecomposer.jaxrs.model
Class ComponentWrapper

java.lang.Object
  extended by org.hippoecm.hst.pagecomposer.jaxrs.model.ComponentWrapper

public class ComponentWrapper
extends Object

Component node wrapper that will be mapped automatically by the JAXRS (Jettison or JAXB) for generating the JSON/XML


Nested Class Summary
static interface ComponentWrapper.ParameterType
          Deprecated. From HST version 2.23.01, the type of a parameter is determined from the return type of the annotated getter method and (possibly) additional annotations in the package org.hippoecm.hst.core.parameters
static class ComponentWrapper.Property
          Deprecated. will be replaced soon
 
Constructor Summary
ComponentWrapper(javax.jcr.Node node, Locale locale, String currentMountCanonicalContentPath)
          Constructs a component node wrapper
 
Method Summary
 List<ComponentWrapper.Property> getProperties()
           
 Boolean getSuccess()
           
 void setProperties(List<ComponentWrapper.Property> properties)
           
 void setSuccess(Boolean success)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentWrapper

public ComponentWrapper(javax.jcr.Node node,
                        Locale locale,
                        String currentMountCanonicalContentPath)
                 throws javax.jcr.RepositoryException,
                        ClassNotFoundException
Constructs a component node wrapper

Parameters:
node - JcrNode for a component.
locale - the locale to get localized names, can be null
Throws:
javax.jcr.RepositoryException - Thrown if the reposiotry exception occurred during reading of the properties.
ClassNotFoundException - thrown when this class can't instantiate the component class.
Method Detail

getProperties

public List<ComponentWrapper.Property> getProperties()

setProperties

public void setProperties(List<ComponentWrapper.Property> properties)

getSuccess

public Boolean getSuccess()

setSuccess

public void setSuccess(Boolean success)


Copyright © 2008-2012 Hippo. All Rights Reserved.