public class NuxeoController extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
asynchronousUpdates
The asynchronous updates.
|
| Constructor and Description |
|---|
NuxeoController(org.osivia.portal.api.context.PortalControllerContext portalControllerContext)
Constructor.
|
NuxeoController(javax.portlet.PortletContext portletCtx)
Instantiates a new nuxeo controller.
|
NuxeoController(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
javax.portlet.PortletContext portletCtx)
Instantiates a new nuxeo controller.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
cmsPathToFetchPath(String cmsPath)
Convert CMS path to fetch publication infos path.
|
String |
createAttachedBlobLink(String path,
String blobIndex,
String fileName)
Creates the attached blob link.
|
String |
createAttachedFileLink(String path,
String fileIndex)
Creates the attached file link.
|
String |
createAttachedPictureLink(String path,
String index,
String fileName)
Creates the attached picture link.
|
String |
createExternalLink(org.nuxeo.ecm.automation.client.model.Document doc)
Creates the external link.
|
String |
createFileLink(org.nuxeo.ecm.automation.client.model.Document doc,
String fieldName)
Creates the file link.
|
String |
createFileLink(String path,
String fieldName,
String fileName)
Create file link URL from Nuxeo document path.
|
String |
createFileLinkOfVersion(org.nuxeo.ecm.automation.client.model.Document version,
String fieldName)
Creates the file link of a version.
|
static String |
createFolderRequest(NuxeoDocumentContext documentContext,
boolean ordered)
Gére les folders 'hiddenInNavigation'.
|
String |
createPermalink(String path)
Creates the permalink.
|
String |
createPictureLink(String path,
String content)
Creates the picture link.
|
String |
createUrlFromWebId(String webId,
Map<String,String> parameters)
Create URL from webId.
|
String |
createWebIdLink(String webid,
String content)
Fetch web url.
|
Object |
executeNuxeoCommand(INuxeoCommand command)
Execute a nuxeo command.
|
org.osivia.portal.core.cms.CMSBinaryContent |
fetchAttachedPicture(String docPath,
String pictureIndex)
Fetch attached picture .
|
org.nuxeo.ecm.automation.client.model.Document |
fetchDocument(String path)
Deprecated.
use DocumentContext
|
org.nuxeo.ecm.automation.client.model.Document |
fetchDocument(String path,
boolean reload)
Deprecated.
use DocumentContext *
|
org.osivia.portal.core.cms.CMSBinaryContent |
fetchFileContent(String docPath,
String fieldName)
Fetch file content.
|
org.osivia.portal.core.cms.CMSBinaryContent |
fetchFileContent(String docPath,
String fieldName,
boolean reload)
Fetch file content.
|
String |
fetchLiveId(String path)
Deprecated.
use DocumentContext
|
org.osivia.portal.core.cms.CMSBinaryContent |
fetchPicture(String docPath,
String content)
Fetch picture.
|
String |
formatDisplayLiveVersionList(String selectedVersion)
Format display live version list.
|
String |
formatRequestFilteringPolicyList(String selectedRequestFilteringPolicy)
Format request filtering policy list.
|
String |
formatScopeList(String selectedScope)
Format scope list (for user interface)
|
int |
getAuthType()
Gets the auth type.
|
String |
getBasePath()
Gets the base path.
|
String |
getBinaryURL(org.osivia.portal.core.cms.BinaryDescription binary)
Generic binary URL
|
long |
getCacheTimeOut()
Gets the cache time out.
|
int |
getCacheType()
Gets the cache type.
|
org.osivia.portal.core.cms.CMSServiceCtx |
getCMSCtx()
Gets the CMS ctx.
|
Map<String,org.osivia.portal.api.cms.DocumentType> |
getCMSItemTypes()
Get CMS item types.
|
org.osivia.portal.api.urls.Link |
getCMSLinkByPath(String path,
String displayContext)
Generates a link to the target path.
|
static org.osivia.portal.core.cms.ICMSService |
getCMSService()
Gets the CMS service.
|
String |
getCommentsHTMLContent()
Deprecated.
unused ?
|
String |
getComputedPath(String portletPath)
Gets the computed path.
|
String |
getContentPath()
path reel de contenu.
|
String |
getContentWebIdPath()
Gets the content web id path ( like /_id/domain-def-jss/publistatfaq.html)
if no webId is defined, returns original path
|
org.nuxeo.ecm.automation.client.model.Document |
getCurrentDoc()
Gets the current doc.
|
NuxeoDocumentContext |
getCurrentDocumentContext()
Get current document context.
|
String |
getDebugInfos()
Deprecated.
unused ?
|
String |
getDisplayContext()
Gets the display context.
|
String |
getDisplayLiveVersion()
Gets the display live version.
|
NuxeoDocumentContext |
getDocumentContext(String path)
Get document context.
|
String |
getDomainPath()
Gets the domain path.
|
String |
getForcedLivePath() |
String |
getForcePublicationInfosScope()
Gets the force publication infos scope.
|
org.osivia.portal.core.formatters.IFormatter |
getFormatter()
Gets the formatter.
|
String |
getHideMetaDatas()
Gets the hide meta datas.
|
String |
getItemNavigationPath()
path de navigation du contenu.
|
org.osivia.portal.api.urls.Link |
getLink(org.nuxeo.ecm.automation.client.model.Document doc)
Gets the link.
|
org.osivia.portal.api.urls.Link |
getLink(org.nuxeo.ecm.automation.client.model.Document doc,
String displayContext)
Gets the link.
|
org.osivia.portal.api.urls.Link |
getLink(org.nuxeo.ecm.automation.client.model.Document doc,
String displayContext,
String linkContextualization)
Generates a link to the target document.
|
org.osivia.portal.api.urls.Link |
getLinkFromNuxeoURL(String url)
Get portal link from Nuxeo or absolute URL.
|
org.osivia.portal.api.urls.Link |
getLinkFromNuxeoURL(String url,
String displayContext) |
static String |
getLivePath(String path)
Computes live path for current document
(may differs from original path in case of a proxy).
|
String |
getMenuRootPath()
Gets the menu root path.
|
org.osivia.portal.core.cms.CMSItem |
getNavigationItem()
Deprecated.
use DocumentContext
|
String |
getNavigationPath()
Gets the navigation path.
|
String |
getNavigationScope()
Gets the navigation scope.
|
INuxeoService |
getNuxeoCMSService()
Get Nuxeo CMS service instance.
|
INuxeoCommandService |
getNuxeoCommandService()
Gets the nuxeo command service.
|
INuxeoCommentsService |
getNuxeoCommentsService()
Get Nuxeo comments service instance.
|
URI |
getNuxeoPublicBaseUri()
Gets the nuxeo public base uri.
|
String |
getPageId()
Gets the page id.
|
static String |
getParentPath(String path)
Computes the parent path for a specifed path
|
String |
getParentPathToCreate()
Gets the parent path to create.
|
org.osivia.portal.api.directory.entity.DirectoryPerson |
getPerson(String uid)
Deprecated.
use the PortalGenericPortlet
|
org.osivia.portal.api.context.PortalControllerContext |
getPortalCtx()
Gets the portal ctx.
|
org.osivia.portal.api.urls.IPortalUrlFactory |
getPortalUrlFactory()
Gets the portal url factory.
|
javax.portlet.PortletContext |
getPortletCtx()
Gets the portlet ctx.
|
org.osivia.portal.core.profils.IProfilManager |
getProfilManager()
Gets the profil manager.
|
NuxeoQueryFilterContext |
getQueryFilterContextForPath(String path)
Get the query filter.
|
javax.portlet.PortletRequest |
getRequest()
Gets the request.
|
javax.portlet.PortletResponse |
getResponse()
Gets the response.
|
String |
getScope()
Gets the scope.
|
javax.servlet.http.HttpServletRequest |
getServletRequest() |
String |
getSpacePath()
Gets the space path.
|
org.osivia.portal.api.urls.Link |
getUserAvatar(String username)
Get the user avatar (acceded from portlets).
|
org.osivia.portal.core.web.IWebIdService |
getWebIdService()
WebId service used to transform urls
|
void |
handleErrors(NuxeoException e)
Display nuxeo error messages
|
void |
insertContentMenuBarItems()
Insert content menubar items.
|
boolean |
isAsynchronousCommand()
Getter for asynchronousCommand.
|
boolean |
isAsynchronousUpdates()
Checks if is asynchronous updates.
|
boolean |
isDisplayingLiveVersion()
Checks if is displaying live version.
|
boolean |
isIdOrPathInLiveState(String originalPath)
Deprecated.
use DocumentContext
|
boolean |
isPathInPageEditionState(String path)
Deprecated.
|
boolean |
isStreamingSupport() |
String |
refreshUserAvatar(String username)
Refresh the user avatar (acceded from portlets).
|
void |
setAsynchronousCommand(boolean asynchronousCommand)
Setter for asynchronousCommand.
|
void |
setAsynchronousUpdates(boolean asynchronousUpdates)
Sets the asynchronous updates.
|
void |
setAuthType(int authType)
Sets the auth type.
|
void |
setCacheTimeOut(long cacheTimeOut)
Sets the cache time out.
|
void |
setCacheType(int cacheType)
Sets the cache type.
|
void |
setCurrentDoc(org.nuxeo.ecm.automation.client.model.Document currentDoc)
Sets the current doc.
|
void |
setDisplayContext(String displayContext)
Sets the display context.
|
void |
setDisplayLiveVersion(String displayLiveVersion)
Sets the display live version.
|
void |
setDocTypeToCreate(String property)
Sets the doc type to create.
|
void |
setForcePublicationInfosScope(String forcePublicationInfosScope)
Sets the force publication infos scope.
|
void |
setHideMetaDatas(String hideMetaDatas)
Sets the hide meta datas.
|
void |
setPageMarker(String pageMarker)
Sets the page marker.
|
void |
setParentPathToCreate(String parentPathToCreate)
Sets the parent path to create.
|
void |
setScope(String scope)
Set the current scope for furthers nuxeo requests
|
void |
setServletRequest(javax.servlet.http.HttpServletRequest servletRequest) |
void |
setSpacePath(String spacePath)
Sets the space path.
|
void |
setStreamingSupport(boolean streamingSupport) |
void |
startNuxeoService()
Start nuxeo service.
|
void |
stopNuxeoService()
Stop nuxeo service.
|
String |
transformHTMLContent(String htmlContent)
Transform html content from nuxeo (note:note)
|
String |
transformNuxeoLink(String link)
Transform Nuxeo link URL
|
static String |
webIdToCmsPath(String webId)
Convert webId to CMS path.
|
static String |
webIdToFetchPath(String webId)
Convert webId to fetch publication infos path.
|
NuxeoException |
wrapNuxeoException(Exception e) |
public NuxeoController(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
javax.portlet.PortletContext portletCtx)
throws RuntimeException
request - the requestresponse - the responseportletCtx - the portlet ctxRuntimeException - the runtime exceptionpublic NuxeoController(org.osivia.portal.api.context.PortalControllerContext portalControllerContext)
portalControllerContext - portal controller contextpublic NuxeoController(javax.portlet.PortletContext portletCtx)
portletCtx - the portlet ctxpublic javax.servlet.http.HttpServletRequest getServletRequest()
public void setServletRequest(javax.servlet.http.HttpServletRequest servletRequest)
public String getDomainPath()
public String getParentPathToCreate()
public void setParentPathToCreate(String parentPathToCreate)
parentPathToCreate - the new parent path to createpublic String getMenuRootPath()
public String getForcedLivePath()
public boolean isStreamingSupport()
public void setStreamingSupport(boolean streamingSupport)
public org.osivia.portal.core.web.IWebIdService getWebIdService()
public org.nuxeo.ecm.automation.client.model.Document getCurrentDoc()
public void setCurrentDoc(org.nuxeo.ecm.automation.client.model.Document currentDoc)
currentDoc - the new current docpublic String getSpacePath()
public void setSpacePath(String spacePath)
spacePath - the new space pathpublic String getBasePath()
public String getNavigationPath()
public String getContentPath()
public String getItemNavigationPath()
public String getDisplayContext()
public void setDisplayContext(String displayContext)
displayContext - the new display contextpublic String getHideMetaDatas()
public void setHideMetaDatas(String hideMetaDatas)
hideMetaDatas - the new hide meta dataspublic void setPageMarker(String pageMarker)
pageMarker - the new page markerpublic String getDisplayLiveVersion()
public void setDisplayLiveVersion(String displayLiveVersion)
displayLiveVersion - the new display live versionpublic boolean isDisplayingLiveVersion()
public String getForcePublicationInfosScope()
public void setForcePublicationInfosScope(String forcePublicationInfosScope)
forcePublicationInfosScope - the new force publication infos scopepublic String getScope()
public int getCacheType()
public void setCacheType(int cacheType)
cacheType - the new cache typepublic boolean isAsynchronousUpdates()
public void setAsynchronousUpdates(boolean asynchronousUpdates)
asynchronousUpdates - the new asynchronous updatespublic long getCacheTimeOut()
public void setCacheTimeOut(long cacheTimeOut)
cacheTimeOut - the new cache time outpublic void setScope(String scope)
scope - the new scopeException - the exceptionpublic int getAuthType()
public void setAuthType(int authType)
authType - the new auth typepublic org.osivia.portal.api.context.PortalControllerContext getPortalCtx()
public javax.portlet.PortletRequest getRequest()
public javax.portlet.PortletResponse getResponse()
public javax.portlet.PortletContext getPortletCtx()
public NuxeoException wrapNuxeoException(Exception e)
public void setDocTypeToCreate(String property)
property - the new doc type to create@Deprecated public org.osivia.portal.core.cms.CMSItem getNavigationItem()
Exception - the exceptionpublic String getNavigationScope()
public org.osivia.portal.api.urls.IPortalUrlFactory getPortalUrlFactory()
public INuxeoCommandService getNuxeoCommandService()
Exception - the exceptionpublic org.osivia.portal.core.profils.IProfilManager getProfilManager()
Exception - the exceptionpublic org.osivia.portal.core.formatters.IFormatter getFormatter()
Exception - the exceptionpublic INuxeoService getNuxeoCMSService()
public String getPageId()
public String getComputedPath(String portletPath)
portletPath - the portlet pathpublic String transformHTMLContent(String htmlContent)
htmlContent - the html contentException - the exceptionpublic String transformNuxeoLink(String link)
link - Nuxeo link URLpublic String formatScopeList(String selectedScope)
selectedScope - the selected scopeException - the exceptionpublic String formatRequestFilteringPolicyList(String selectedRequestFilteringPolicy)
selectedRequestFilteringPolicy - the selected request filtering policyException - the exceptionpublic String formatDisplayLiveVersionList(String selectedVersion)
selectedVersion - the selected versionException - the exception@Deprecated public boolean isIdOrPathInLiveState(String originalPath)
path - the pathorg.osivia.portal.core.cms.CMSException - the CMS exceptionpublic String getBinaryURL(org.osivia.portal.core.cms.BinaryDescription binary)
path - the pathorg.osivia.portal.core.cms.CMSException - the CMS exception@Deprecated public boolean isPathInPageEditionState(String path)
path - the pathorg.osivia.portal.core.cms.CMSException - the CMS exceptionpublic String createFileLink(String path, String fieldName, String fileName)
path - Nuxeo document pathfieldName - field namefileName - file namepublic String createFileLink(org.nuxeo.ecm.automation.client.model.Document doc, String fieldName)
doc - the docfieldName - the field nameException - the exceptionpublic String createFileLinkOfVersion(org.nuxeo.ecm.automation.client.model.Document version, String fieldName)
version - fieldName - public String createExternalLink(org.nuxeo.ecm.automation.client.model.Document doc)
doc - the docpublic String createAttachedFileLink(String path, String fileIndex)
path - the pathfileIndex - the file indexpublic String createAttachedBlobLink(String path, String blobIndex, String fileName)
path - the pathblobIndex - the blob indexfileName - file namepublic String createAttachedPictureLink(String path, String index, String fileName)
path - the pathindex - the file indexfileName - file namepublic String createPictureLink(String path, String content)
path - the pathcontent - the contentpublic String createPermalink(String path)
path - the pathException - the exceptionpublic URI getNuxeoPublicBaseUri()
public void handleErrors(NuxeoException e) throws javax.portlet.PortletException
e - the eException - the exceptionjavax.portlet.PortletExceptionpublic Object executeNuxeoCommand(INuxeoCommand command)
command - the commandException - the exceptionpublic void startNuxeoService()
Exception - the exceptionpublic void stopNuxeoService()
Exception - the exceptionpublic org.osivia.portal.api.urls.Link getLink(org.nuxeo.ecm.automation.client.model.Document doc)
doc - the docException - the exceptionpublic org.osivia.portal.api.urls.Link getLink(org.nuxeo.ecm.automation.client.model.Document doc,
String displayContext)
doc - the docdisplayContext - the display contextException - the exceptionpublic org.osivia.portal.api.urls.Link getLinkFromNuxeoURL(String url)
url - Nuxeo or absolute URLpublic org.osivia.portal.api.urls.Link getLinkFromNuxeoURL(String url, String displayContext)
public org.osivia.portal.api.urls.Link getCMSLinkByPath(String path, String displayContext)
path - location of the target documentdisplayContext - associates specific behaviour to the linkException - the exceptionpublic org.osivia.portal.api.urls.Link getLink(org.nuxeo.ecm.automation.client.model.Document doc,
String displayContext,
String linkContextualization)
doc - nuxeo target documentdisplayContext - specific behaviourlinkContextualization - type of contextualisation IPortalUrlFactoryException - the exceptionpublic String getContentWebIdPath()
public void insertContentMenuBarItems()
Exception - the exceptionpublic INuxeoCommentsService getNuxeoCommentsService()
@Deprecated public String getCommentsHTMLContent() throws org.osivia.portal.core.cms.CMSException
org.osivia.portal.core.cms.CMSException - the CMS exceptionpublic Map<String,org.osivia.portal.api.cms.DocumentType> getCMSItemTypes()
@Deprecated public org.nuxeo.ecm.automation.client.model.Document fetchDocument(String path, boolean reload)
path - the pathreload - force reloading of the document (no cache)Exception - the exception@Deprecated public org.nuxeo.ecm.automation.client.model.Document fetchDocument(String path)
path - the pathException - the exception@Deprecated public String fetchLiveId(String path)
path - path to fetchException - the exceptionpublic NuxeoQueryFilterContext getQueryFilterContextForPath(String path)
path - path to fetchException - the exceptionpublic static String getParentPath(String path)
path - the pathpublic static String getLivePath(String path)
path - the pathpublic org.osivia.portal.core.cms.CMSBinaryContent fetchAttachedPicture(String docPath, String pictureIndex)
docPath - path of the documentpictureIndex - picture rangepublic org.osivia.portal.core.cms.CMSBinaryContent fetchPicture(String docPath, String content)
docPath - the doc pathcontent - the contentpublic org.osivia.portal.core.cms.CMSBinaryContent fetchFileContent(String docPath, String fieldName)
docPath - the doc pathfieldName - the field namepublic org.osivia.portal.core.cms.CMSBinaryContent fetchFileContent(String docPath, String fieldName, boolean reload)
docPath - the doc pathfieldName - the field namereload - force reload indicatorpublic String createUrlFromWebId(String webId, Map<String,String> parameters) throws org.osivia.portal.core.cms.CMSException
webId - webIdparameters - request parametersorg.osivia.portal.core.cms.CMSExceptionpublic String createWebIdLink(String webid, String content)
webid - the web idcontent - some optionspublic static org.osivia.portal.core.cms.ICMSService getCMSService()
public org.osivia.portal.core.cms.CMSServiceCtx getCMSCtx()
@Deprecated public String getDebugInfos()
public org.osivia.portal.api.urls.Link getUserAvatar(String username) throws org.osivia.portal.core.cms.CMSException
username - org.osivia.portal.core.cms.CMSExceptionpublic String refreshUserAvatar(String username)
username - org.osivia.portal.core.cms.CMSException@Deprecated public org.osivia.portal.api.directory.entity.DirectoryPerson getPerson(String uid)
uid - of the personpublic NuxeoDocumentContext getCurrentDocumentContext()
public NuxeoDocumentContext getDocumentContext(String path)
path - CMS path or webIdpublic static String webIdToFetchPath(String webId)
webId - webIdpublic static String cmsPathToFetchPath(String cmsPath)
cmsPath - CMS path (e.g. /_id/example)public static String webIdToCmsPath(String webId)
webId - webIdpublic static String createFolderRequest(NuxeoDocumentContext documentContext, boolean ordered)
documentContext - document contextordered - ordered indicatororg.osivia.portal.core.cms.CMSExceptionpublic boolean isAsynchronousCommand()
public void setAsynchronousCommand(boolean asynchronousCommand)
asynchronousCommand - the asynchronousCommand to setCopyright © 2019. All rights reserved.