public class ContentLink extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
config |
static String |
CONFIG_HOST |
static String |
CONFIG_SCHEMA |
protected NodeFinder |
finder |
protected org.exoplatform.services.security.IdentityRegistry |
identityRegistry |
protected org.exoplatform.services.jcr.RepositoryService |
jcrService |
static int |
KEY_EXPIRE_SECONDS |
static String |
LINK_CACHE_NAME |
protected static org.exoplatform.services.log.Log |
LOG |
protected org.exoplatform.services.organization.OrganizationService |
organization |
protected static Random |
RANDOM |
protected String |
restUrl |
protected org.exoplatform.services.jcr.ext.app.SessionProviderService |
sessionProviders |
| Constructor and Description |
|---|
ContentLink(org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
NodeFinder finder,
org.exoplatform.services.organization.OrganizationService organization,
org.exoplatform.services.security.IdentityRegistry identityRegistry,
org.exoplatform.services.cache.CacheService cacheService) |
ContentLink(org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
NodeFinder finder,
org.exoplatform.services.organization.OrganizationService organization,
org.exoplatform.services.security.IdentityRegistry identityRegistry,
org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
NodeContent |
consume(String userId,
String key) |
protected NodeContent |
content(String userId,
String workspace,
String path) |
String |
create(String userId,
javax.jcr.Node node) |
String |
create(String userId,
String workspace,
String nodePath) |
LinkResource |
createUrl(String userId,
javax.jcr.Node node,
String serverLink) |
LinkResource |
createUrl(String userId,
String nodePath,
String serverLink) |
protected UUID |
generateId(String workspace,
String path) |
protected javax.jcr.Node |
getNode(String userId,
String nodePath) |
protected javax.jcr.Node |
node(String userId,
String workspace,
String path) |
public static final String CONFIG_HOST
public static final String CONFIG_SCHEMA
public static final String LINK_CACHE_NAME
public static final int KEY_EXPIRE_SECONDS
protected static final org.exoplatform.services.log.Log LOG
protected static final Random RANDOM
protected final org.exoplatform.services.jcr.RepositoryService jcrService
protected final org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders
protected final NodeFinder finder
protected final org.exoplatform.services.organization.OrganizationService organization
protected final org.exoplatform.services.security.IdentityRegistry identityRegistry
protected final String restUrl
public ContentLink(org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
NodeFinder finder,
org.exoplatform.services.organization.OrganizationService organization,
org.exoplatform.services.security.IdentityRegistry identityRegistry,
org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.container.xml.InitParams params)
throws org.exoplatform.container.configuration.ConfigurationException
org.exoplatform.container.configuration.ConfigurationExceptionpublic ContentLink(org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
NodeFinder finder,
org.exoplatform.services.organization.OrganizationService organization,
org.exoplatform.services.security.IdentityRegistry identityRegistry,
org.exoplatform.services.cache.CacheService cacheService)
throws org.exoplatform.container.configuration.ConfigurationException
org.exoplatform.container.configuration.ConfigurationExceptionpublic String create(String userId, String workspace, String nodePath) throws Exception
Exceptionpublic String create(String userId, javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic LinkResource createUrl(String userId, String nodePath, String serverLink) throws Exception
Exceptionpublic LinkResource createUrl(String userId, javax.jcr.Node node, String serverLink) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic NodeContent consume(String userId, String key) throws Exception
Exceptionprotected javax.jcr.Node getNode(String userId, String nodePath) throws Exception
Exceptionprotected NodeContent content(String userId, String workspace, String path) throws Exception
Exceptionprotected javax.jcr.Node node(String userId, String workspace, String path) throws Exception
ExceptionCopyright © 2003–2016 eXo Platform SAS. All rights reserved.