| Modifier and Type | Interface and Description |
|---|---|
interface |
XASessionInfo
XASessionInfo extends the SessionInfo and provides
access to the XAResource of the session info. |
| Modifier and Type | Method and Description |
|---|---|
SessionInfo |
RepositoryService.impersonate(SessionInfo sessionInfo,
Credentials credentials)
Returns a
SessionInfo that will be used by other methods
on the RepositoryService. |
SessionInfo |
RepositoryService.obtain(Credentials credentials,
String workspaceName)
Returns a
SessionInfo that will be used by other methods
on the RepositoryService. |
SessionInfo |
RepositoryService.obtain(SessionInfo sessionInfo,
String workspaceName)
Returns a new
SessionInfo for the given workspace name that
will be used by other methods on the RepositoryService. |
| Modifier and Type | Method and Description |
|---|---|
void |
RepositoryService.addVersionLabel(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId,
Name label,
boolean moveLabel)
Add the given version label in the persistent layer.
|
NodeId |
RepositoryService.checkin(SessionInfo sessionInfo,
NodeId nodeId)
Performs a checkin for the
Node identified by the given
NodeId. |
void |
RepositoryService.checkout(SessionInfo sessionInfo,
NodeId nodeId)
Performs a checkout for the
Node identified by the given
NodeId. |
void |
RepositoryService.checkout(SessionInfo sessionInfo,
NodeId nodeId,
NodeId activityId)
Performs a checkout for the
Node identified by the given
NodeId and for activity identified by the specified
activityId. |
NodeId |
RepositoryService.checkpoint(SessionInfo sessionInfo,
NodeId nodeId)
Performs a checkpoint for the
Node identified by the given
NodeId. |
NodeId |
RepositoryService.checkpoint(SessionInfo sessionInfo,
NodeId nodeId,
NodeId activityId)
Performs a checkpoint for the
Node identified by the given
NodeId. |
String[] |
RepositoryService.checkQueryStatement(SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces)
Checks if the query
statement is valid according to the
specified query language and returns the bind variable
names found in the query statement. |
void |
RepositoryService.clone(SessionInfo sessionInfo,
String srcWorkspaceName,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName,
boolean removeExisting)
Clone the subtree identified by the given
srcNodeId
in workspace named srcWorkspaceName to the destination
in the workspace specified by the given SessionInfo. |
void |
RepositoryService.copy(SessionInfo sessionInfo,
String srcWorkspaceName,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName)
Clone the subtree identified by the given
srcNodeId
in workspace named srcWorkspaceName to the destination
in the workspace specified by the given SessionInfo. |
NodeId |
RepositoryService.createActivity(SessionInfo sessionInfo,
String title)
Create a new activity.
|
Batch |
RepositoryService.createBatch(SessionInfo sessionInfo,
ItemId itemId)
Indicates the start of a set of operations that cause modifications
on the underlying persistence layer.
|
NodeId |
RepositoryService.createConfiguration(SessionInfo sessionInfo,
NodeId nodeId) |
EventFilter |
RepositoryService.createEventFilter(SessionInfo sessionInfo,
int eventTypes,
Path absPath,
boolean isDeep,
String[] uuid,
Name[] nodeTypeName,
boolean noLocal)
Creates an event filter.
|
Subscription |
RepositoryService.createSubscription(SessionInfo sessionInfo,
EventFilter[] filters)
Creates a new
Subscription for events with an initial set of
EventFilters. |
void |
RepositoryService.createWorkspace(SessionInfo sessionInfo,
String name,
String srcWorkspaceName)
Create a new workspace with the specified
name. |
void |
RepositoryService.deleteWorkspace(SessionInfo sessionInfo,
String name)
Deletes the workspace with the specified
name. |
void |
RepositoryService.dispose(SessionInfo sessionInfo)
Indicates to the
RepositoryService, that the given SessionInfo
will not be used any more. |
QueryInfo |
RepositoryService.executeQuery(SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces,
long limit,
long offset,
Map<String,QValue> values)
Execute the given query statement with the specified query language.
|
Iterator<ChildInfo> |
RepositoryService.getChildInfos(SessionInfo sessionInfo,
NodeId parentId)
Returns an Iterator of
ChildInfos present on the
Node represented by the given parentId. |
EventBundle |
RepositoryService.getEvents(SessionInfo sessionInfo,
EventFilter filter,
long after)
Returns events from the
EventJournal after a given point in
time. |
ItemInfoCache |
RepositoryService.getItemInfoCache(SessionInfo sessionInfo)
Returns a
ItemInfoCache for the given SessionInfo. |
Iterator<? extends ItemInfo> |
RepositoryService.getItemInfos(SessionInfo sessionInfo,
ItemId itemId)
Method used to 'batch-read' from the persistent storage.
|
LockInfo |
RepositoryService.getLockInfo(SessionInfo sessionInfo,
NodeId nodeId)
Returns the lock information that applies to
Node identified
by the given NodeId or null. |
String |
RepositoryService.getNamespacePrefix(SessionInfo sessionInfo,
String uri)
Returns the namespace prefix for the given namespace
uri. |
String |
RepositoryService.getNamespaceURI(SessionInfo sessionInfo,
String prefix)
Returns the namespace URI for the given namespace
prefix. |
QNodeDefinition |
RepositoryService.getNodeDefinition(SessionInfo sessionInfo,
NodeId nodeId)
Returns the
QNodeDefinition for the Node
identified by the given id. |
NodeInfo |
RepositoryService.getNodeInfo(SessionInfo sessionInfo,
NodeId nodeId)
Deprecated.
|
QPropertyDefinition |
RepositoryService.getPropertyDefinition(SessionInfo sessionInfo,
PropertyId propertyId)
Returns the
QPropertyDefinition for the Property
identified by the given id. |
PropertyInfo |
RepositoryService.getPropertyInfo(SessionInfo sessionInfo,
PropertyId propertyId)
Deprecated.
|
Iterator<QNodeTypeDefinition> |
RepositoryService.getQNodeTypeDefinitions(SessionInfo sessionInfo)
Retrieve the
QNodeTypeDefinitions of all registered nodetypes. |
Iterator<QNodeTypeDefinition> |
RepositoryService.getQNodeTypeDefinitions(SessionInfo sessionInfo,
Name[] nodetypeNames)
Retrieve
QNodeTypeDefinitions for the given names. |
Iterator<PropertyId> |
RepositoryService.getReferences(SessionInfo sessionInfo,
NodeId nodeId,
Name propertyName,
boolean weakReferences)
Returns the
Ids of the properties that are referencing
the node identified by the given nodeId. |
Map<String,String> |
RepositoryService.getRegisteredNamespaces(SessionInfo sessionInfo)
Retrieve all registered namespaces.
|
String[] |
RepositoryService.getSupportedQueryLanguages(SessionInfo sessionInfo)
Returns a String array identifying all query languages supported by this
SPI implementation.
|
String[] |
RepositoryService.getWorkspaceNames(SessionInfo sessionInfo)
Return all workspace names available for the given
SessionInfo. |
SessionInfo |
RepositoryService.impersonate(SessionInfo sessionInfo,
Credentials credentials)
Returns a
SessionInfo that will be used by other methods
on the RepositoryService. |
void |
RepositoryService.importXml(SessionInfo sessionInfo,
NodeId parentId,
InputStream xmlStream,
int uuidBehaviour)
Imports the data present in the given
InputStream into the
persistent layer. |
boolean |
RepositoryService.isGranted(SessionInfo sessionInfo,
ItemId itemId,
String[] actions)
Returns true if all actions defined in the specified array are granted
to given
SessionInfo. |
LockInfo |
RepositoryService.lock(SessionInfo sessionInfo,
NodeId nodeId,
boolean deep,
boolean sessionScoped)
Create a lock on the
Node identified by the given id. |
LockInfo |
RepositoryService.lock(SessionInfo sessionInfo,
NodeId nodeId,
boolean deep,
boolean sessionScoped,
long timeoutHint,
String ownerHint)
Create a lock on the
Node identified by the given id. |
Iterator<NodeId> |
RepositoryService.merge(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName,
boolean bestEffort)
Merge the node identified by the given
NodeId and its subtree
with the corresponding node present in the workspace with the name of
srcWorkspaceName. |
Iterator<NodeId> |
RepositoryService.merge(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName,
boolean bestEffort,
boolean isShallow)
Merge the node identified by the given
NodeId and its subtree
with the corresponding node present in the workspace with the name of
srcWorkspaceName. |
Iterator<NodeId> |
RepositoryService.mergeActivity(SessionInfo sessionInfo,
NodeId activityId)
Merges the activity identified by the given
activityId into
the workspace the specified sessionInfo has been created for. |
void |
RepositoryService.move(SessionInfo sessionInfo,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName)
Moves the node identified by the given
srcNodeId (and its
entire subtree) to the new location defined by destParentNodeId
and a new name (destName). |
SessionInfo |
RepositoryService.obtain(SessionInfo sessionInfo,
String workspaceName)
Returns a new
SessionInfo for the given workspace name that
will be used by other methods on the RepositoryService. |
void |
RepositoryService.refreshLock(SessionInfo sessionInfo,
NodeId nodeId)
Explicit refresh of an existing lock.
|
void |
RepositoryService.registerNamespace(SessionInfo sessionInfo,
String prefix,
String uri)
Register a new namespace with the given prefix and uri.
|
void |
RepositoryService.registerNodeTypes(SessionInfo sessionInfo,
QNodeTypeDefinition[] nodeTypeDefinitions,
boolean allowUpdate)
Registers the node types with the specified
QNodeTypeDefinitions. |
void |
RepositoryService.removeActivity(SessionInfo sessionInfo,
NodeId activityId)
Removes the activity identified by the specified
activityId. |
void |
RepositoryService.removeVersion(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId)
Remove the version identified by the specified
versionId. |
void |
RepositoryService.removeVersionLabel(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId,
Name label)
Remove the given version label in the persistent layer.
|
void |
RepositoryService.resolveMergeConflict(SessionInfo sessionInfo,
NodeId nodeId,
NodeId[] mergeFailedIds,
NodeId[] predecessorIds)
Resolve an existing merge conflict present with the node identified by
the given
NodeId. |
void |
RepositoryService.restore(SessionInfo sessionInfo,
NodeId[] versionIds,
boolean removeExisting)
Restore multiple versions at once.
|
void |
RepositoryService.restore(SessionInfo sessionInfo,
NodeId nodeId,
NodeId versionId,
boolean removeExisting)
Restores the node identified by
nodeId to the state defined
by the version with the specified versionId. |
void |
RepositoryService.unlock(SessionInfo sessionInfo,
NodeId nodeId)
Releases the lock on the
Node identified by the given
NodeId.
Please note, that on logout all
session-scoped locks must be released by calling unlock. |
void |
RepositoryService.unregisterNamespace(SessionInfo sessionInfo,
String uri)
Unregister the namespace identified by the given uri
|
void |
RepositoryService.unregisterNodeTypes(SessionInfo sessionInfo,
Name[] nodeTypeNames)
Unregisters the node types with the specified
names. |
void |
RepositoryService.update(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName)
Updates the node identified by the given
NodeId replacing
it (an the complete subtree) with a clone of its corresponding node
present in the workspace with the given srcWorkspaceName. |
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.