public class RepositoryServiceImpl extends Object implements org.apache.jackrabbit.spi.RepositoryService, org.apache.jackrabbit.webdav.DavConstants
RepositoryServiceImpl...| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CONNECTIONS_DEFAULT
Default value for the maximum number of connections per host such as
configured with
PoolingHttpClientConnectionManager.setDefaultMaxPerRoute(int). |
creationDateFormat, DEPTH_0, DEPTH_1, DEPTH_INFINITY, DEPTH_INFINITY_S, HEADER_AUTHORIZATION, HEADER_CONTENT_LANGUAGE, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_DAV, HEADER_DEPTH, HEADER_DESTINATION, HEADER_ETAG, HEADER_IF, HEADER_LAST_MODIFIED, HEADER_LOCK_TOKEN, HEADER_OVERWRITE, HEADER_TIMEOUT, INFINITE_TIMEOUT, modificationDateFormat, NAMESPACE, OPAQUE_LOCK_TOKEN_PREFIX, PROPERTY_CREATIONDATE, PROPERTY_DISPLAYNAME, PROPERTY_GETCONTENTLANGUAGE, PROPERTY_GETCONTENTLENGTH, PROPERTY_GETCONTENTTYPE, PROPERTY_GETETAG, PROPERTY_GETLASTMODIFIED, PROPERTY_LOCKDISCOVERY, PROPERTY_RESOURCETYPE, PROPERTY_SOURCE, PROPERTY_SUPPORTEDLOCK, PROPFIND_ALL_PROP, PROPFIND_ALL_PROP_INCLUDE, PROPFIND_BY_PROPERTY, PROPFIND_PROPERTY_NAMES, TIMEOUT_INFINITE, UNDEFINED_TIME, UNDEFINED_TIMEOUT, XML_ACTIVELOCK, XML_ALLPROP, XML_COLLECTION, XML_DEPTH, XML_DST, XML_EXCLUSIVE, XML_HREF, XML_INCLUDE, XML_KEEPALIVE, XML_LINK, XML_LOCKENTRY, XML_LOCKINFO, XML_LOCKROOT, XML_LOCKSCOPE, XML_LOCKTOKEN, XML_LOCKTYPE, XML_MULTISTATUS, XML_OMIT, XML_OWNER, XML_PROP, XML_PROPERTYBEHAVIOR, XML_PROPERTYUPDATE, XML_PROPFIND, XML_PROPNAME, XML_PROPSTAT, XML_REMOVE, XML_RESPONSE, XML_RESPONSEDESCRIPTION, XML_SET, XML_SHARED, XML_SOURCE, XML_STATUS, XML_TIMEOUT, XML_WRITE| Constructor and Description |
|---|
RepositoryServiceImpl(String uri,
org.apache.jackrabbit.spi.IdFactory idFactory,
org.apache.jackrabbit.spi.NameFactory nameFactory,
org.apache.jackrabbit.spi.PathFactory pathFactory,
org.apache.jackrabbit.spi.QValueFactory qValueFactory)
Same as
RepositoryServiceImpl(String, IdFactory, NameFactory, PathFactory, QValueFactory, int, int)
using ItemInfoCacheImpl.DEFAULT_CACHE_SIZE as size for the item
cache and MAX_CONNECTIONS_DEFAULT for the maximum number of
connections on the client. |
RepositoryServiceImpl(String uri,
org.apache.jackrabbit.spi.IdFactory idFactory,
org.apache.jackrabbit.spi.NameFactory nameFactory,
org.apache.jackrabbit.spi.PathFactory pathFactory,
org.apache.jackrabbit.spi.QValueFactory qValueFactory,
int itemInfoCacheSize)
Same as
RepositoryServiceImpl(String, IdFactory, NameFactory, PathFactory, QValueFactory, int, int)
using MAX_CONNECTIONS_DEFAULT for the maximum number of
connections on the client. |
RepositoryServiceImpl(String uri,
org.apache.jackrabbit.spi.IdFactory idFactory,
org.apache.jackrabbit.spi.NameFactory nameFactory,
org.apache.jackrabbit.spi.PathFactory pathFactory,
org.apache.jackrabbit.spi.QValueFactory qValueFactory,
int itemInfoCacheSize,
int maximumHttpConnections)
Creates a new instance of this repository service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId versionHistoryId,
org.apache.jackrabbit.spi.NodeId versionId,
org.apache.jackrabbit.spi.Name label,
boolean moveLabel) |
org.apache.jackrabbit.spi.NodeId |
checkin(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
void |
checkout(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
void |
checkout(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.NodeId activityId) |
org.apache.jackrabbit.spi.NodeId |
checkpoint(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
org.apache.jackrabbit.spi.NodeId |
checkpoint(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.NodeId activityId) |
String[] |
checkQueryStatement(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces) |
protected void |
clearItemUriCache(org.apache.jackrabbit.spi.SessionInfo sessionInfo)
Clear all URI mappings.
|
void |
clone(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String srcWorkspaceName,
org.apache.jackrabbit.spi.NodeId srcNodeId,
org.apache.jackrabbit.spi.NodeId destParentNodeId,
org.apache.jackrabbit.spi.Name destName,
boolean removeExisting) |
static URI |
computeRepositoryUri(String uri)
Compute the repository URI (while dealing with trailing / and port number
defaulting)
|
void |
copy(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String srcWorkspaceName,
org.apache.jackrabbit.spi.NodeId srcNodeId,
org.apache.jackrabbit.spi.NodeId destParentNodeId,
org.apache.jackrabbit.spi.Name destName) |
org.apache.jackrabbit.spi.NodeId |
createActivity(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String title) |
org.apache.jackrabbit.spi.Batch |
createBatch(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.ItemId itemId) |
org.apache.jackrabbit.spi.NodeId |
createConfiguration(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
org.apache.jackrabbit.spi.EventFilter |
createEventFilter(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
int eventTypes,
org.apache.jackrabbit.spi.Path absPath,
boolean isDeep,
String[] uuids,
org.apache.jackrabbit.spi.Name[] nodeTypeNames,
boolean noLocal) |
org.apache.jackrabbit.spi.Subscription |
createSubscription(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.EventFilter[] filters) |
org.apache.jackrabbit.spi.Tree |
createTree(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.Batch batch,
org.apache.jackrabbit.spi.Name nodeName,
org.apache.jackrabbit.spi.Name primaryTypeName,
String uniqueId) |
void |
createWorkspace(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String name,
String srcWorkspaceName) |
void |
deleteWorkspace(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String name) |
void |
dispose(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
void |
dispose(org.apache.jackrabbit.spi.Subscription subscription) |
org.apache.jackrabbit.spi.QueryInfo |
executeQuery(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces,
long limit,
long offset,
Map<String,org.apache.jackrabbit.spi.QValue> values) |
HttpResponse |
executeRequest(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
HttpUriRequest request) |
Iterator<org.apache.jackrabbit.spi.ChildInfo> |
getChildInfos(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId parentId) |
protected HttpClient |
getClient(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
protected HttpContext |
getContext(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
org.apache.jackrabbit.spi.EventBundle |
getEvents(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.EventFilter filter,
long after) |
org.apache.jackrabbit.spi.EventBundle[] |
getEvents(org.apache.jackrabbit.spi.Subscription subscription,
long timeout) |
org.apache.jackrabbit.spi.IdFactory |
getIdFactory() |
org.apache.jackrabbit.spi.ItemInfoCache |
getItemInfoCache(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
Iterator<? extends org.apache.jackrabbit.spi.ItemInfo> |
getItemInfos(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.ItemId itemId) |
protected String |
getItemUri(org.apache.jackrabbit.spi.ItemId itemId,
org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
protected String |
getItemUri(org.apache.jackrabbit.spi.ItemId itemId,
org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String workspaceName) |
org.apache.jackrabbit.spi.LockInfo |
getLockInfo(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
org.apache.jackrabbit.spi.NameFactory |
getNameFactory() |
protected org.apache.jackrabbit.spi.commons.conversion.NamePathResolver |
getNamePathResolver(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
String |
getNamespacePrefix(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String uri) |
String |
getNamespaceURI(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String prefix) |
org.apache.jackrabbit.spi.QNodeDefinition |
getNodeDefinition(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
org.apache.jackrabbit.spi.NodeInfo |
getNodeInfo(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
org.apache.jackrabbit.spi.PathFactory |
getPathFactory() |
org.apache.jackrabbit.spi.PrivilegeDefinition[] |
getPrivilegeDefinitions(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
org.apache.jackrabbit.spi.Name[] |
getPrivilegeNames(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
org.apache.jackrabbit.spi.QPropertyDefinition |
getPropertyDefinition(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.PropertyId propertyId) |
org.apache.jackrabbit.spi.PropertyInfo |
getPropertyInfo(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.PropertyId propertyId) |
Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> |
getQNodeTypeDefinitions(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> |
getQNodeTypeDefinitions(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.Name[] nodetypeNames) |
org.apache.jackrabbit.spi.QValueFactory |
getQValueFactory() |
Iterator<org.apache.jackrabbit.spi.PropertyId> |
getReferences(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.Name propertyName,
boolean weakReferences) |
Map<String,String> |
getRegisteredNamespaces(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
Map<String,org.apache.jackrabbit.spi.QValue[]> |
getRepositoryDescriptors() |
org.apache.jackrabbit.spi.PrivilegeDefinition[] |
getSupportedPrivileges(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
String[] |
getSupportedQueryLanguages(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
String[] |
getWorkspaceNames(org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
org.apache.jackrabbit.spi.SessionInfo |
impersonate(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
Credentials credentials) |
void |
importXml(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId parentId,
InputStream xmlStream,
int uuidBehaviour) |
protected static void |
initMethod(HttpUriRequest request,
org.apache.jackrabbit.spi.SessionInfo sessionInfo) |
protected static void |
initMethod(HttpUriRequest request,
org.apache.jackrabbit.spi.SessionInfo sessionInfo,
boolean addIfHeader) |
boolean |
isGranted(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.ItemId itemId,
String[] actions) |
org.apache.jackrabbit.spi.LockInfo |
lock(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
boolean deep,
boolean sessionScoped) |
org.apache.jackrabbit.spi.LockInfo |
lock(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
boolean deep,
boolean sessionScoped,
long timeoutHint,
String ownerHint) |
Iterator<org.apache.jackrabbit.spi.NodeId> |
merge(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
String srcWorkspaceName,
boolean bestEffort) |
Iterator<org.apache.jackrabbit.spi.NodeId> |
merge(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
String srcWorkspaceName,
boolean bestEffort,
boolean isShallow) |
Iterator<org.apache.jackrabbit.spi.NodeId> |
mergeActivity(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId activityId) |
void |
move(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId srcNodeId,
org.apache.jackrabbit.spi.NodeId destParentNodeId,
org.apache.jackrabbit.spi.Name destName) |
org.apache.jackrabbit.spi.SessionInfo |
obtain(Credentials credentials,
String workspaceName) |
org.apache.jackrabbit.spi.SessionInfo |
obtain(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String workspaceName) |
void |
refreshLock(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
void |
registerNamespace(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String prefix,
String uri) |
void |
registerNodeTypes(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.QNodeTypeDefinition[] nodeTypeDefinitions,
boolean allowUpdate) |
void |
removeActivity(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId activityId) |
void |
removeVersion(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId versionHistoryId,
org.apache.jackrabbit.spi.NodeId versionId) |
void |
removeVersionLabel(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId versionHistoryId,
org.apache.jackrabbit.spi.NodeId versionId,
org.apache.jackrabbit.spi.Name label) |
void |
resolveMergeConflict(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.NodeId[] mergeFailedIds,
org.apache.jackrabbit.spi.NodeId[] predecessorIds) |
void |
restore(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId[] versionIds,
boolean removeExisting) |
void |
restore(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.NodeId versionId,
boolean removeExisting) |
void |
submit(org.apache.jackrabbit.spi.Batch batch) |
void |
unlock(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId) |
void |
unregisterNamespace(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String uri) |
void |
unregisterNodeTypes(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.Name[] nodeTypeNames) |
void |
update(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
String srcWorkspaceName) |
void |
updateEventFilters(org.apache.jackrabbit.spi.Subscription subscription,
org.apache.jackrabbit.spi.EventFilter[] filters) |
public static final int MAX_CONNECTIONS_DEFAULT
PoolingHttpClientConnectionManager.setDefaultMaxPerRoute(int).public RepositoryServiceImpl(String uri, org.apache.jackrabbit.spi.IdFactory idFactory, org.apache.jackrabbit.spi.NameFactory nameFactory, org.apache.jackrabbit.spi.PathFactory pathFactory, org.apache.jackrabbit.spi.QValueFactory qValueFactory) throws RepositoryException
RepositoryServiceImpl(String, IdFactory, NameFactory, PathFactory, QValueFactory, int, int)
using ItemInfoCacheImpl.DEFAULT_CACHE_SIZE as size for the item
cache and MAX_CONNECTIONS_DEFAULT for the maximum number of
connections on the client.uri - The server uri.idFactory - The id factory.nameFactory - The name factory.pathFactory - The path factory.qValueFactory - The value factory.RepositoryException - If an error occurs.public RepositoryServiceImpl(String uri, org.apache.jackrabbit.spi.IdFactory idFactory, org.apache.jackrabbit.spi.NameFactory nameFactory, org.apache.jackrabbit.spi.PathFactory pathFactory, org.apache.jackrabbit.spi.QValueFactory qValueFactory, int itemInfoCacheSize) throws RepositoryException
RepositoryServiceImpl(String, IdFactory, NameFactory, PathFactory, QValueFactory, int, int)
using MAX_CONNECTIONS_DEFAULT for the maximum number of
connections on the client.uri - The server uri.idFactory - The id factory.nameFactory - The name factory.pathFactory - The path factory.qValueFactory - The value factory.itemInfoCacheSize - The size of the item info cache.RepositoryException - If an error occurs.public RepositoryServiceImpl(String uri, org.apache.jackrabbit.spi.IdFactory idFactory, org.apache.jackrabbit.spi.NameFactory nameFactory, org.apache.jackrabbit.spi.PathFactory pathFactory, org.apache.jackrabbit.spi.QValueFactory qValueFactory, int itemInfoCacheSize, int maximumHttpConnections) throws RepositoryException
uri - The server uri.idFactory - The id factory.nameFactory - The name factory.pathFactory - The path factory.qValueFactory - The value factory.itemInfoCacheSize - The size of the item info cache.maximumHttpConnections - A int >0 defining the maximum number of
connections per host to be configured on
PoolingHttpClientConnectionManager.setMaxTotal(int).RepositoryException - If an error occurs.protected static void initMethod(HttpUriRequest request, org.apache.jackrabbit.spi.SessionInfo sessionInfo, boolean addIfHeader) throws RepositoryException
RepositoryExceptionprotected static void initMethod(HttpUriRequest request, org.apache.jackrabbit.spi.SessionInfo sessionInfo) throws RepositoryException
RepositoryExceptionprotected org.apache.jackrabbit.spi.commons.conversion.NamePathResolver getNamePathResolver(org.apache.jackrabbit.spi.SessionInfo sessionInfo)
throws RepositoryException
RepositoryExceptionprotected HttpClient getClient(org.apache.jackrabbit.spi.SessionInfo sessionInfo) throws RepositoryException
RepositoryExceptionprotected HttpContext getContext(org.apache.jackrabbit.spi.SessionInfo sessionInfo) throws RepositoryException
RepositoryExceptionprotected String getItemUri(org.apache.jackrabbit.spi.ItemId itemId, org.apache.jackrabbit.spi.SessionInfo sessionInfo) throws RepositoryException
RepositoryExceptionprotected String getItemUri(org.apache.jackrabbit.spi.ItemId itemId, org.apache.jackrabbit.spi.SessionInfo sessionInfo, String workspaceName) throws RepositoryException
RepositoryExceptionprotected void clearItemUriCache(org.apache.jackrabbit.spi.SessionInfo sessionInfo)
sessionInfo - public org.apache.jackrabbit.spi.IdFactory getIdFactory()
getIdFactory in interface org.apache.jackrabbit.spi.RepositoryServicepublic org.apache.jackrabbit.spi.NameFactory getNameFactory()
getNameFactory in interface org.apache.jackrabbit.spi.RepositoryServicepublic org.apache.jackrabbit.spi.PathFactory getPathFactory()
getPathFactory in interface org.apache.jackrabbit.spi.RepositoryServicepublic org.apache.jackrabbit.spi.QValueFactory getQValueFactory()
getQValueFactory in interface org.apache.jackrabbit.spi.RepositoryServicepublic org.apache.jackrabbit.spi.ItemInfoCache getItemInfoCache(org.apache.jackrabbit.spi.SessionInfo sessionInfo)
throws RepositoryException
getItemInfoCache in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Map<String,org.apache.jackrabbit.spi.QValue[]> getRepositoryDescriptors() throws RepositoryException
getRepositoryDescriptors in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.SessionInfo obtain(Credentials credentials, String workspaceName) throws RepositoryException
obtain in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.SessionInfo obtain(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String workspaceName)
throws RepositoryException
obtain in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.SessionInfo impersonate(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
Credentials credentials)
throws RepositoryException
impersonate in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void dispose(org.apache.jackrabbit.spi.SessionInfo sessionInfo)
throws RepositoryException
dispose in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic String[] getWorkspaceNames(org.apache.jackrabbit.spi.SessionInfo sessionInfo) throws RepositoryException
getWorkspaceNames in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic boolean isGranted(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.ItemId itemId,
String[] actions)
throws RepositoryException
isGranted in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.PrivilegeDefinition[] getPrivilegeDefinitions(org.apache.jackrabbit.spi.SessionInfo sessionInfo)
throws RepositoryException
getPrivilegeDefinitions in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.PrivilegeDefinition[] getSupportedPrivileges(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
getSupportedPrivileges in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.Name[] getPrivilegeNames(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
getPrivilegeNames in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.QNodeDefinition getNodeDefinition(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
getNodeDefinition in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.QPropertyDefinition getPropertyDefinition(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.PropertyId propertyId)
throws RepositoryException
getPropertyDefinition in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.NodeInfo getNodeInfo(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
getNodeInfo in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Iterator<? extends org.apache.jackrabbit.spi.ItemInfo> getItemInfos(org.apache.jackrabbit.spi.SessionInfo sessionInfo, org.apache.jackrabbit.spi.ItemId itemId) throws RepositoryException
getItemInfos in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Iterator<org.apache.jackrabbit.spi.ChildInfo> getChildInfos(org.apache.jackrabbit.spi.SessionInfo sessionInfo, org.apache.jackrabbit.spi.NodeId parentId) throws RepositoryException
getChildInfos in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Iterator<org.apache.jackrabbit.spi.PropertyId> getReferences(org.apache.jackrabbit.spi.SessionInfo sessionInfo, org.apache.jackrabbit.spi.NodeId nodeId, org.apache.jackrabbit.spi.Name propertyName, boolean weakReferences) throws RepositoryException
getReferences in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.PropertyInfo getPropertyInfo(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.PropertyId propertyId)
throws RepositoryException
getPropertyInfo in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.Batch createBatch(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.ItemId itemId)
throws RepositoryException
createBatch in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void submit(org.apache.jackrabbit.spi.Batch batch)
throws RepositoryException
submit in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.Tree createTree(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.Batch batch,
org.apache.jackrabbit.spi.Name nodeName,
org.apache.jackrabbit.spi.Name primaryTypeName,
String uniqueId)
throws RepositoryException
createTree in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void importXml(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId parentId,
InputStream xmlStream,
int uuidBehaviour)
throws RepositoryException
importXml in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void move(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId srcNodeId,
org.apache.jackrabbit.spi.NodeId destParentNodeId,
org.apache.jackrabbit.spi.Name destName)
throws RepositoryException
move in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void copy(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String srcWorkspaceName,
org.apache.jackrabbit.spi.NodeId srcNodeId,
org.apache.jackrabbit.spi.NodeId destParentNodeId,
org.apache.jackrabbit.spi.Name destName)
throws RepositoryException
copy in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void update(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
String srcWorkspaceName)
throws RepositoryException
update in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void clone(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String srcWorkspaceName,
org.apache.jackrabbit.spi.NodeId srcNodeId,
org.apache.jackrabbit.spi.NodeId destParentNodeId,
org.apache.jackrabbit.spi.Name destName,
boolean removeExisting)
throws RepositoryException
clone in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.LockInfo getLockInfo(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
getLockInfo in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.LockInfo lock(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
boolean deep,
boolean sessionScoped)
throws RepositoryException
lock in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.LockInfo lock(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
boolean deep,
boolean sessionScoped,
long timeoutHint,
String ownerHint)
throws RepositoryException
lock in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void refreshLock(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
refreshLock in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void unlock(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
unlock in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.NodeId checkin(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
checkin in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void checkout(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
checkout in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void checkout(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.NodeId activityId)
throws RepositoryException
checkout in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.NodeId checkpoint(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
checkpoint in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.NodeId checkpoint(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.NodeId activityId)
throws RepositoryException
checkpoint in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void removeVersion(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId versionHistoryId,
org.apache.jackrabbit.spi.NodeId versionId)
throws RepositoryException
removeVersion in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void restore(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.NodeId versionId,
boolean removeExisting)
throws RepositoryException
restore in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void restore(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId[] versionIds,
boolean removeExisting)
throws RepositoryException
restore in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Iterator<org.apache.jackrabbit.spi.NodeId> merge(org.apache.jackrabbit.spi.SessionInfo sessionInfo, org.apache.jackrabbit.spi.NodeId nodeId, String srcWorkspaceName, boolean bestEffort) throws RepositoryException
merge in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Iterator<org.apache.jackrabbit.spi.NodeId> merge(org.apache.jackrabbit.spi.SessionInfo sessionInfo, org.apache.jackrabbit.spi.NodeId nodeId, String srcWorkspaceName, boolean bestEffort, boolean isShallow) throws RepositoryException
merge in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void resolveMergeConflict(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.NodeId[] mergeFailedIds,
org.apache.jackrabbit.spi.NodeId[] predecessorIds)
throws RepositoryException
resolveMergeConflict in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void addVersionLabel(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId versionHistoryId,
org.apache.jackrabbit.spi.NodeId versionId,
org.apache.jackrabbit.spi.Name label,
boolean moveLabel)
throws RepositoryException
addVersionLabel in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void removeVersionLabel(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId versionHistoryId,
org.apache.jackrabbit.spi.NodeId versionId,
org.apache.jackrabbit.spi.Name label)
throws RepositoryException
removeVersionLabel in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.NodeId createActivity(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String title)
throws RepositoryException
createActivity in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void removeActivity(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId activityId)
throws RepositoryException
removeActivity in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Iterator<org.apache.jackrabbit.spi.NodeId> mergeActivity(org.apache.jackrabbit.spi.SessionInfo sessionInfo, org.apache.jackrabbit.spi.NodeId activityId) throws RepositoryException
mergeActivity in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.NodeId createConfiguration(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.NodeId nodeId)
throws RepositoryException
createConfiguration in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic String[] getSupportedQueryLanguages(org.apache.jackrabbit.spi.SessionInfo sessionInfo) throws RepositoryException
getSupportedQueryLanguages in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic String[] checkQueryStatement(org.apache.jackrabbit.spi.SessionInfo sessionInfo, String statement, String language, Map<String,String> namespaces) throws RepositoryException
checkQueryStatement in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.QueryInfo executeQuery(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces,
long limit,
long offset,
Map<String,org.apache.jackrabbit.spi.QValue> values)
throws RepositoryException
executeQuery in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.EventFilter createEventFilter(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
int eventTypes,
org.apache.jackrabbit.spi.Path absPath,
boolean isDeep,
String[] uuids,
org.apache.jackrabbit.spi.Name[] nodeTypeNames,
boolean noLocal)
throws RepositoryException
createEventFilter in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.EventBundle[] getEvents(org.apache.jackrabbit.spi.Subscription subscription,
long timeout)
throws RepositoryException
getEvents in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.EventBundle getEvents(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.EventFilter filter,
long after)
throws RepositoryException
getEvents in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic org.apache.jackrabbit.spi.Subscription createSubscription(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.EventFilter[] filters)
throws RepositoryException
createSubscription in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void updateEventFilters(org.apache.jackrabbit.spi.Subscription subscription,
org.apache.jackrabbit.spi.EventFilter[] filters)
throws RepositoryException
updateEventFilters in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void dispose(org.apache.jackrabbit.spi.Subscription subscription)
throws RepositoryException
dispose in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Map<String,String> getRegisteredNamespaces(org.apache.jackrabbit.spi.SessionInfo sessionInfo) throws RepositoryException
getRegisteredNamespaces in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic String getNamespaceURI(org.apache.jackrabbit.spi.SessionInfo sessionInfo, String prefix) throws RepositoryException
getNamespaceURI in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic String getNamespacePrefix(org.apache.jackrabbit.spi.SessionInfo sessionInfo, String uri) throws RepositoryException
getNamespacePrefix in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void registerNamespace(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String prefix,
String uri)
throws RepositoryException
registerNamespace in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void unregisterNamespace(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String uri)
throws RepositoryException
unregisterNamespace in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> getQNodeTypeDefinitions(org.apache.jackrabbit.spi.SessionInfo sessionInfo) throws RepositoryException
getQNodeTypeDefinitions in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> getQNodeTypeDefinitions(org.apache.jackrabbit.spi.SessionInfo sessionInfo, org.apache.jackrabbit.spi.Name[] nodetypeNames) throws RepositoryException
getQNodeTypeDefinitions in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void registerNodeTypes(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.QNodeTypeDefinition[] nodeTypeDefinitions,
boolean allowUpdate)
throws RepositoryException
registerNodeTypes in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void unregisterNodeTypes(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
org.apache.jackrabbit.spi.Name[] nodeTypeNames)
throws RepositoryException
unregisterNodeTypes in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void createWorkspace(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String name,
String srcWorkspaceName)
throws RepositoryException
createWorkspace in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic void deleteWorkspace(org.apache.jackrabbit.spi.SessionInfo sessionInfo,
String name)
throws RepositoryException
deleteWorkspace in interface org.apache.jackrabbit.spi.RepositoryServiceRepositoryExceptionpublic static URI computeRepositoryUri(String uri) throws URISyntaxException
URISyntaxExceptionpublic HttpResponse executeRequest(org.apache.jackrabbit.spi.SessionInfo sessionInfo, HttpUriRequest request) throws IOException, RepositoryException
IOExceptionRepositoryExceptionCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.