public class WCMServiceImpl extends Object implements WCMService
| Constructor and Description |
|---|
WCMServiceImpl(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPortletExpirationCache()
Gets the expiration time in seconds for WCM portlets.
|
javax.jcr.Node |
getReferencedContent(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
String workspace,
String nodeIdentifier)
This method returns a jcr Node based on the given identifier.
|
boolean |
isSharedPortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
String portalName)
This method checks if the given portal is the default shared portal.
|
void |
setPortletExpirationCache(int expirationCache)
Sets the expiration time in seconds for WCM portlets.
|
public javax.jcr.Node getReferencedContent(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
String workspace,
String nodeIdentifier)
throws Exception
WCMServicegetReferencedContent in interface WCMServicesessionProvider - the session providerworkspace - the workspace namenodeIdentifier - the node identifierException - the exceptionNodepublic boolean isSharedPortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
String portalName)
throws Exception
WCMServiceisSharedPortal in interface WCMServicesessionProvider - the session providerportalName - the portal nameException - the exceptionpublic void setPortletExpirationCache(int expirationCache)
throws Exception
WCMService
If the expiration value is set to 0, caching is disabled for these
portlet; if the value is set to -1, the cache does not expire.
setPortletExpirationCache in interface WCMServiceExceptionpublic int getPortletExpirationCache()
throws Exception
WCMService
If the expiration value is set to 0, caching is disabled for these
portlet; if the value is set to -1, the cache does not expire.
getPortletExpirationCache in interface WCMServiceExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.