org.hippoecm.hst.jaxrs.services.content
Class AbstractContentResource

java.lang.Object
  extended by org.hippoecm.hst.jaxrs.services.AbstractResource
      extended by org.hippoecm.hst.jaxrs.services.content.AbstractContentResource
Direct Known Subclasses:
BaseImageSetContentResource, HippoDocumentContentResource, HippoFolderContentResource

public abstract class AbstractContentResource
extends AbstractResource

AbstractContentResource

Version:
$Id$

Field Summary
 
Fields inherited from class org.hippoecm.hst.jaxrs.services.AbstractResource
BEANS_ANNOTATED_CLASSES_CONF_PARAM, HST_MOUNT_REL_PREFIX, HST_REST_RELATIONS_BASE_URI, MOUNT_ALIAS_ASSETS, MOUNT_ALIAS_GALLERY, MOUNT_ALIAS_REST, MOUNT_ALIAS_SITE
 
Constructor Summary
AbstractContentResource()
           
 
Method Summary
protected  String deleteContentResource(javax.servlet.http.HttpServletRequest servletRequest, HippoBean baseBean, String relPath)
           
protected  String getHippoHtmlContent(javax.servlet.http.HttpServletRequest servletRequest, String relPath, String targetMountAlias)
           
protected  HippoHtmlRepresentation getHippoHtmlRepresentation(javax.servlet.http.HttpServletRequest servletRequest, String relPath, String targetMountAlias)
           
protected  javax.jcr.Node getRequestContentNode(HstRequestContext requestContext)
          Deprecated. Use AbstractResource.getRequestContentBean(HstRequestContext) instead.
protected  String getRequestContentPath(HstRequestContext requestContext)
           
protected  String updateHippoHtmlContent(javax.servlet.http.HttpServletRequest servletRequest, String relPath, String htmlContent)
           
protected  HippoHtmlRepresentation updateHippoHtmlRepresentation(javax.servlet.http.HttpServletRequest servletRequest, String relPath, HippoHtmlRepresentation htmlRepresentation)
           
 
Methods inherited from class org.hippoecm.hst.jaxrs.services.AbstractResource
deleteHippoBean, getAnnotatedClasses, getAnnotatedClassesResourcePath, getChildBeanByRelPathOrPrimaryNodeType, getContentPersistenceManager, getContentRewriter, getHstQualifiedLinkRel, getHstQueryManager, getHstQueryManager, getLinkMountRelation, getMountContentBaseBean, getMountLink, getNodeLink, getObjectConverter, getPersistableSession, getPersistableSession, getPersistenceManager, getPersistenceManager, getQualifiedLinkRel, getQualifiedLinkRel, getRequestContentBean, getRequestContentBean, getRequestContext, getRestLink, getRestRelationsBaseUri, getSiteLink, isPageLinksExternal, setAnnotatedClasses, setAnnotatedClassesResourcePath, setContentRewriter, setHstQueryManagerFactory, setObjectConverter, setPageLinksExternal, setRestRelationsBaseUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContentResource

public AbstractContentResource()
Method Detail

getRequestContentPath

protected String getRequestContentPath(HstRequestContext requestContext)

getRequestContentNode

protected javax.jcr.Node getRequestContentNode(HstRequestContext requestContext)
Deprecated. Use AbstractResource.getRequestContentBean(HstRequestContext) instead.

Parameters:
requestContext -
Returns:

deleteContentResource

protected String deleteContentResource(javax.servlet.http.HttpServletRequest servletRequest,
                                       HippoBean baseBean,
                                       String relPath)
                                throws javax.jcr.RepositoryException,
                                       ObjectBeanPersistenceException
Throws:
javax.jcr.RepositoryException
ObjectBeanPersistenceException

getHippoHtmlRepresentation

protected HippoHtmlRepresentation getHippoHtmlRepresentation(javax.servlet.http.HttpServletRequest servletRequest,
                                                             String relPath,
                                                             String targetMountAlias)

updateHippoHtmlRepresentation

protected HippoHtmlRepresentation updateHippoHtmlRepresentation(javax.servlet.http.HttpServletRequest servletRequest,
                                                                String relPath,
                                                                HippoHtmlRepresentation htmlRepresentation)

getHippoHtmlContent

protected String getHippoHtmlContent(javax.servlet.http.HttpServletRequest servletRequest,
                                     String relPath,
                                     String targetMountAlias)

updateHippoHtmlContent

protected String updateHippoHtmlContent(javax.servlet.http.HttpServletRequest servletRequest,
                                        String relPath,
                                        String htmlContent)


Copyright © 2008-2012 Hippo. All Rights Reserved.