public class ContentLink extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
config
The config.
|
static String |
CONFIG_HOST
The Constant CONFIG_HOST.
|
static String |
CONFIG_SCHEMA
The Constant CONFIG_SCHEMA.
|
static String |
EXO_BASE_URL
The Constant EXO_BASE_URL.
|
protected NodeFinder |
finder
The finder.
|
protected org.exoplatform.services.security.IdentityRegistry |
identityRegistry
The identity registry.
|
protected org.exoplatform.services.jcr.RepositoryService |
jcrService
The jcr service.
|
static int |
KEY_EXPIRE_SECONDS
The Constant KEY_EXPIRE_SECONDS.
|
static String |
LINK_CACHE_NAME
The Constant LINK_CACHE_NAME.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected org.exoplatform.services.organization.OrganizationService |
organization
The organization.
|
protected static Random |
RANDOM
The Constant RANDOM.
|
protected String |
restUrl
The rest url.
|
protected org.exoplatform.services.jcr.ext.app.SessionProviderService |
sessionProviders
The session providers.
|
| 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,
org.exoplatform.container.xml.InitParams params)
Instantiates a new content link.
|
| Modifier and Type | Method and Description |
|---|---|
NodeContent |
consume(String userId,
String key)
Consume.
|
protected NodeContent |
content(String userId,
String workspace,
String path)
Content.
|
String |
create(String userId,
javax.jcr.Node node)
Creates the.
|
String |
create(String userId,
String workspace,
String nodePath)
Creates the.
|
LinkResource |
createUrl(String userId,
javax.jcr.Node node,
String serverLink)
Creates the url.
|
LinkResource |
createUrl(String userId,
String nodePath,
String serverLink)
Creates the url.
|
protected UUID |
generateId(String workspace,
String path)
Generate id.
|
protected javax.jcr.Node |
getNode(String userId,
String nodePath)
Gets the node.
|
protected javax.jcr.Node |
node(String userId,
String workspace,
String path)
Node.
|
public static final String CONFIG_HOST
public static final String CONFIG_SCHEMA
public static final String LINK_CACHE_NAME
public static final String EXO_BASE_URL
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
jcrService - the jcr servicesessionProviders - the session providersfinder - the finderorganization - the organizationidentityRegistry - the identity registrycacheService - the cache serviceparams - the paramsorg.exoplatform.container.configuration.ConfigurationException - the configuration exceptionpublic String create(String userId, String workspace, String nodePath) throws Exception
userId - the user idworkspace - the workspacenodePath - the node pathException - the exceptionpublic String create(String userId, javax.jcr.Node node) throws javax.jcr.RepositoryException
userId - the user idnode - the nodejavax.jcr.RepositoryException - the repository exceptionpublic LinkResource createUrl(String userId, String nodePath, String serverLink) throws Exception
userId - the user idnodePath - the node pathserverLink - the server linkException - the exceptionpublic LinkResource createUrl(String userId, javax.jcr.Node node, String serverLink) throws javax.jcr.RepositoryException
userId - the user idnode - the nodeserverLink - the server linkjavax.jcr.RepositoryException - the repository exceptionpublic NodeContent consume(String userId, String key) throws Exception
userId - the user idkey - the keyException - the exceptionprotected javax.jcr.Node getNode(String userId, String nodePath) throws Exception
userId - the user idnodePath - the node pathException - the exceptionprotected NodeContent content(String userId, String workspace, String path) throws Exception
userId - the user idworkspace - the workspacepath - the pathException - the exceptionprotected javax.jcr.Node node(String userId, String workspace, String path) throws Exception
userId - the user idworkspace - the workspacepath - the pathException - the exceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.