public abstract class AbstractSiteDocumentObject extends DocumentObject
| Modifier and Type | Field and Description |
|---|---|
static int |
FLASH_WELCOME_MEDIA |
static int |
IMAGE_WELCOME_MEDIA |
static int |
NO_WELCOME_MEDIA |
doc| Constructor and Description |
|---|
AbstractSiteDocumentObject() |
| Modifier and Type | Method and Description |
|---|---|
Object |
_getSearchParameters()
JAX-RS specs doesn't allow multiple REST designator on a single method so
we need to use another method to do a POST.
|
Object |
createWebPage()
Creates a new web page object.
|
javax.ws.rs.core.Response |
doDelete() |
Object |
doGet()
Executes the GET requests on the current web object
|
protected Map<String,Object> |
getArguments()
Returns the map with the arguments that will be used to generate the
default template page for the current web object.
|
protected abstract String |
getDefaultSchemaFieldThemePageValue()
Returns the default value of the theme page for the current web object.
|
protected abstract String |
getDefaultSchemaFieldThemeValue()
Returns the default value of the theme for the current web object.
|
protected abstract String |
getDocumentDeletedErrorTemplateName()
Returns the name of the template that will be used in case the
DocumentModel is in "deleted" state
|
protected abstract Map<String,Object> |
getErrorArguments()
Returns the map with the arguments that will be used to generate the
error template page.
|
protected abstract String |
getErrorTemplateName()
Returns the name of the template that will be used in case the
DocumentModel for the current web object is null.
|
Object |
getHomePagePath()
Method used to retrieve the path to the current web container.
|
javax.ws.rs.core.Response |
getLogo()
Retrieves the logo of the current web object.
|
protected DocumentModel |
getParentWebSite(CoreSession session)
Returns the parent web site of the current web object.
|
protected abstract String |
getSchemaFieldThemeName()
Returns the schema name plus field name which together keep the theme for
the current web object.
|
protected abstract String |
getSchemaFieldThemePageName()
Returns the schema name plus field name which together keep the theme
page for the current web object.
|
Object |
getSearchParameters()
Method called before a search operation is made for the context of the
current web object.
|
protected abstract String |
getSearchThemePage()
Returns the search theme page.
|
protected String |
getWebPageDocumentType()
Returns the document type of the entry.
|
protected String |
getWebSiteDocumentType()
Returns the document type of the container.
|
javax.ws.rs.core.Response |
getWelcomeMedia()
Returns the welcome media of the current web object.
|
int |
getWelcomeMediaHeight() |
int |
getWelcomeMediaIsImage() |
int |
getWelcomeMediaWidth() |
protected javax.ws.rs.core.Response |
handleAnonymousRedirectToLogout(javax.servlet.http.HttpServletRequest request) |
protected org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService |
initAuthenticationService() |
javax.ws.rs.core.Response |
remove()
Method used to delete pages in the current container
|
protected void |
setDoGetParameters()
Sets the parameters that will be needed in order to execute the GET
requests on the current web object.
|
protected void |
setForceRedirectToLogout(boolean redirectToLogout) |
protected void |
setSearchParameters()
Sets the parameters needed to perform a search.
|
Resource |
traverse(String path) |
doHead, doPost, doPut, getAdapter, getCoreSession, getDelete, getDocument, getPut, getTitle, initialize, newDocument, newDocument, newDocument, searchdisptachAdapter, isAdaptercheckGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toStringpublic static final int NO_WELCOME_MEDIA
public static final int IMAGE_WELCOME_MEDIA
public static final int FLASH_WELCOME_MEDIA
public Object doGet()
doGet in class DocumentObjectpublic javax.ws.rs.core.Response getLogo()
public javax.ws.rs.core.Response getWelcomeMedia()
public int getWelcomeMediaWidth()
public int getWelcomeMediaHeight()
public Object getSearchParameters()
public Object _getSearchParameters()
public Resource traverse(String path)
traverse in class DocumentObjectpublic Object createWebPage()
public Object getHomePagePath()
public javax.ws.rs.core.Response remove()
public javax.ws.rs.core.Response doDelete()
doDelete in class DocumentObjectprotected String getWebSiteDocumentType()
protected String getWebPageDocumentType()
protected void setSearchParameters()
protected Map<String,Object> getArguments() throws Exception
Exceptionprotected void setDoGetParameters()
protected DocumentModel getParentWebSite(CoreSession session) throws Exception
session - the nuxeo core sessionExceptionprotected abstract String getSearchThemePage()
protected abstract String getSchemaFieldThemeName()
protected abstract String getSchemaFieldThemePageName()
protected abstract String getDefaultSchemaFieldThemeValue()
protected abstract String getDefaultSchemaFieldThemePageValue()
protected abstract String getErrorTemplateName()
protected abstract String getDocumentDeletedErrorTemplateName()
protected abstract Map<String,Object> getErrorArguments()
protected javax.ws.rs.core.Response handleAnonymousRedirectToLogout(javax.servlet.http.HttpServletRequest request)
protected void setForceRedirectToLogout(boolean redirectToLogout)
protected org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService initAuthenticationService() throws ClientException
ClientExceptionCopyright © 2019 Nuxeo SA. All rights reserved.