|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.AbstractRepositoryService
public abstract class AbstractRepositoryService
AbstractRepositoryService provides an abstract base class for
repository service implementations. This class provides default
implementations for the following methods:
| Field Summary | |
|---|---|
protected Map<String,QValue[]> |
descriptors
The repository descriptors. |
protected NamespaceMapping |
namespaces
The fixed set of namespaces known to the repository service. |
protected NodeTypeStorage |
nodeTypeDefs
The fixed set of node type definitions known to the repository service. |
protected QNodeDefinition |
rootNodeDefinition
The node definition of the root node. |
| Constructor Summary | |
|---|---|
protected |
AbstractRepositoryService()
|
|
AbstractRepositoryService(Map<String,QValue[]> descriptors,
Map<String,String> namespaces,
QNodeTypeDefinition[] nodeTypeDefs)
|
|
AbstractRepositoryService(Map<String,QValue[]> descriptors,
Map<String,String> namespaces,
Reader cnd)
|
| Method Summary | |
|---|---|
void |
addVersionLabel(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId,
Name label,
boolean moveLabel)
|
protected void |
checkCredentials(Credentials credentials,
String workspaceName)
Checks if the given credentials are valid. |
NodeId |
checkin(SessionInfo sessionInfo,
NodeId nodeId)
|
void |
checkout(SessionInfo sessionInfo,
NodeId nodeId)
|
void |
checkout(SessionInfo sessionInfo,
NodeId nodeId,
NodeId activityId)
|
NodeId |
checkpoint(SessionInfo sessionInfo,
NodeId nodeId)
|
String[] |
checkQueryStatement(SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces)
|
protected void |
checkSessionInfo(SessionInfo sessionInfo)
Checks the type of the sessionInfo instance. |
protected void |
checkWorkspace(String workspaceName)
Checks if the given workspace is available. |
void |
clone(SessionInfo sessionInfo,
String srcWorkspaceName,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName,
boolean removeExisting)
|
void |
copy(SessionInfo sessionInfo,
String srcWorkspaceName,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName)
|
NodeId |
createActivity(SessionInfo sessionInfo,
String title)
|
Batch |
createBatch(SessionInfo sessionInfo,
ItemId itemId)
|
NodeId |
createConfiguration(SessionInfo sessionInfo,
NodeId nodeId)
|
EventFilter |
createEventFilter(SessionInfo sessionInfo,
int eventTypes,
Path absPath,
boolean isDeep,
String[] uuid,
Name[] nodeTypeName,
boolean noLocal)
|
protected abstract QNodeDefinition |
createRootNodeDefinition(SessionInfo sessionInfo)
Create the root node definition. |
protected SessionInfo |
createSessionInfo(Credentials credentials,
String workspaceName)
Creates a session info instance for the given credentials and
workspaceName. |
protected SessionInfo |
createSessionInfo(SessionInfo sessionInfo,
String workspaceName)
Creates a session info instance for the given sessionInfo and
workspaceName. |
Subscription |
createSubscription(SessionInfo sessionInfo,
EventFilter[] filters)
|
void |
createWorkspace(SessionInfo sessionInfo,
String name,
String srcWorkspaceName)
|
void |
deleteWorkspace(SessionInfo sessionInfo,
String name)
|
void |
dispose(SessionInfo sessionInfo)
This default implementation does nothing. |
void |
dispose(Subscription subscription)
|
QueryInfo |
executeQuery(SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces,
long limit,
long offset,
Map<String,QValue> values)
|
EventBundle |
getEvents(SessionInfo sessionInfo,
EventFilter filter,
long after)
|
EventBundle[] |
getEvents(Subscription subscription,
long timeout)
|
IdFactory |
getIdFactory()
|
LockInfo |
getLockInfo(SessionInfo sessionInfo,
NodeId nodeId)
|
NameFactory |
getNameFactory()
|
String |
getNamespacePrefix(SessionInfo sessionInfo,
String uri)
This default implementation first calls checkSessionInfo(SessionInfo)
with the sessionInfo, then return the namespace prefix for
the given uri. |
String |
getNamespaceURI(SessionInfo sessionInfo,
String prefix)
This default implementation first calls checkSessionInfo(SessionInfo)
with the sessionInfo, then returns the namepsace URI for the
given prefix. |
QNodeDefinition |
getNodeDefinition(SessionInfo sessionInfo,
NodeId nodeId)
This default implementation first calls checkSessionInfo(SessionInfo)
with the sessionInfo, then lazily initializes rootNodeDefinition
if nodeId denotes the root node; otherwise throws a
UnsupportedRepositoryOperationException. |
PathFactory |
getPathFactory()
|
QPropertyDefinition |
getPropertyDefinition(SessionInfo sessionInfo,
PropertyId propertyId)
|
Iterator<QNodeTypeDefinition> |
getQNodeTypeDefinitions(SessionInfo sessionInfo)
This default implementation first calls checkSessionInfo(SessionInfo)
with the sessionInfo, |
Iterator<QNodeTypeDefinition> |
getQNodeTypeDefinitions(SessionInfo sessionInfo,
Name[] nodetypeNames)
This default implementation first calls checkSessionInfo(SessionInfo)
with the sessionInfo, then gathers the QNodeTypeDefinitions
with the given nodetypeNames. |
QValueFactory |
getQValueFactory()
|
Map<String,String> |
getRegisteredNamespaces(SessionInfo sessionInfo)
This default implementation first calls checkSessionInfo(SessionInfo)
with the sessionInfo, then returns the prefix to namespace
URL mapping that was provided in the constructor of this repository
service. |
Map<String,QValue[]> |
getRepositoryDescriptors()
This default implementation returns the descriptors that were passed to the constructor of this repository service. |
String[] |
getSupportedQueryLanguages(SessionInfo sessionInfo)
|
SessionInfo |
impersonate(SessionInfo sessionInfo,
Credentials credentials)
This default implementation returns the session info returned by the call to obtain(Credentials, String) with the workspaceName taken from
the passed sessionInfo. |
void |
importXml(SessionInfo sessionInfo,
NodeId parentId,
InputStream xmlStream,
int uuidBehaviour)
|
LockInfo |
lock(SessionInfo sessionInfo,
NodeId nodeId,
boolean deep,
boolean sessionScoped)
|
LockInfo |
lock(SessionInfo sessionInfo,
NodeId nodeId,
boolean deep,
boolean sessionScoped,
long timeoutHint,
String ownerHint)
|
Iterator<NodeId> |
merge(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName,
boolean bestEffort)
|
Iterator<NodeId> |
merge(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName,
boolean bestEffort,
boolean isShallow)
|
Iterator<NodeId> |
mergeActivity(SessionInfo sessionInfo,
NodeId activityId)
|
void |
move(SessionInfo sessionInfo,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName)
|
SessionInfo |
obtain(Credentials credentials,
String workspaceName)
This default implementation does: calls checkCredentials(Credentials, String)
calls checkWorkspace(String)
calls createSessionInfo(Credentials, String). |
SessionInfo |
obtain(SessionInfo sessionInfo,
String workspaceName)
This default implementation returns the session info returned by the call to createSessionInfo(SessionInfo, String). |
void |
refreshLock(SessionInfo sessionInfo,
NodeId nodeId)
|
void |
registerNamespace(SessionInfo sessionInfo,
String prefix,
String uri)
|
void |
registerNodeTypes(SessionInfo sessionInfo,
QNodeTypeDefinition[] nodeTypeDefinitions,
boolean allowUpdate)
|
void |
removeActivity(SessionInfo sessionInfo,
NodeId activityId)
|
void |
removeVersion(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId)
|
void |
removeVersionLabel(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId,
Name label)
|
void |
resolveMergeConflict(SessionInfo sessionInfo,
NodeId nodeId,
NodeId[] mergeFailedIds,
NodeId[] predecessorIds)
|
void |
restore(SessionInfo sessionInfo,
NodeId[] versionIds,
boolean removeExisting)
|
void |
restore(SessionInfo sessionInfo,
NodeId nodeId,
NodeId versionId,
boolean removeExisting)
|
void |
submit(Batch batch)
|
void |
unlock(SessionInfo sessionInfo,
NodeId nodeId)
|
void |
unregisterNamespace(SessionInfo sessionInfo,
String uri)
|
void |
unregisterNodeTypes(SessionInfo sessionInfo,
Name[] nodeTypeNames)
|
void |
update(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName)
|
void |
updateEventFilters(Subscription subscription,
EventFilter[] filters)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.spi.RepositoryService |
|---|
getChildInfos, getItemInfos, getNodeInfo, getPropertyInfo, getReferences, getWorkspaceNames, isGranted |
| Field Detail |
|---|
protected final Map<String,QValue[]> descriptors
protected final NamespaceMapping namespaces
protected final NodeTypeStorage nodeTypeDefs
protected QNodeDefinition rootNodeDefinition
| Constructor Detail |
|---|
protected AbstractRepositoryService()
throws RepositoryException
RepositoryException
public AbstractRepositoryService(Map<String,QValue[]> descriptors,
Map<String,String> namespaces,
QNodeTypeDefinition[] nodeTypeDefs)
throws RepositoryException
RepositoryException
public AbstractRepositoryService(Map<String,QValue[]> descriptors,
Map<String,String> namespaces,
Reader cnd)
throws RepositoryException
RepositoryException| Method Detail |
|---|
public IdFactory getIdFactory()
throws RepositoryException
getIdFactory in interface RepositoryServiceIdFactoryImpl.getInstance().
RepositoryException - if an error occurs.
public NameFactory getNameFactory()
throws RepositoryException
getNameFactory in interface RepositoryServiceNameFactoryImpl.getInstance().
RepositoryException - if an error occurs.
public PathFactory getPathFactory()
throws RepositoryException
getPathFactory in interface RepositoryServicePathFactoryImpl.getInstance().
RepositoryException - if an error occurs.
public QValueFactory getQValueFactory()
throws RepositoryException
getQValueFactory in interface RepositoryServiceQValueFactoryImpl.getInstance().
RepositoryException - if an error occurs.
protected abstract QNodeDefinition createRootNodeDefinition(SessionInfo sessionInfo)
throws RepositoryException
sessionInfo - the session info.
RepositoryException - if an error occurs.
protected void checkCredentials(Credentials credentials,
String workspaceName)
throws LoginException
credentials are valid. This default
implementation is empty thus allowing all credentials.
credentials - the credentials to check.workspaceName - the workspace to access.
LoginException - if the credentials are invalid.
protected void checkWorkspace(String workspaceName)
throws NoSuchWorkspaceException
workspaceName - Name of the workspace to check
NoSuchWorkspaceException - If workspaceName is not available.
protected SessionInfo createSessionInfo(Credentials credentials,
String workspaceName)
throws RepositoryException
credentials and
workspaceName. This default implementation creates a
SessionInfoImpl instance and sets the userId and
workspaceName. The user userId is null or the
userId from credentials if it is of type
SimpleCredentials.
credentials - the credentials.workspaceName - the name of the workspace to access or null
for the default workspace.
credentials and
workspaceName.
RepositoryException
protected SessionInfo createSessionInfo(SessionInfo sessionInfo,
String workspaceName)
throws RepositoryException
sessionInfo and
workspaceName. This default implementation creates a
SessionInfoImpl instance and sets the userId and
workspaceName. The user userId is set to the return value of
SessionInfo.getUserID().
sessionInfo - the sessionInfo.workspaceName - the name of the workspace to access.
credentials and
workspaceName.
RepositoryException
protected void checkSessionInfo(SessionInfo sessionInfo)
throws RepositoryException
sessionInfo instance. This default
implementation checks if sessionInfo is of type
SessionInfoImpl, otherwise throws a RepositoryException.
sessionInfo - the session info to check.
RepositoryException - if the given sessionInfo is not
of the required type for this repository
service implementation.
public Map<String,QValue[]> getRepositoryDescriptors()
throws RepositoryException
getRepositoryDescriptors in interface RepositoryServiceRepositoryException
public SessionInfo obtain(Credentials credentials,
String workspaceName)
throws LoginException,
NoSuchWorkspaceException,
RepositoryException
checkCredentials(Credentials, String)checkWorkspace(String)createSessionInfo(Credentials, String)
obtain in interface RepositoryServicecredentials - the credentials for the login.workspaceName - the name of the workspace to log in.
LoginException - if the credentials are invalid.
NoSuchWorkspaceException - if workspaceName is unknown.
RepositoryException - if another error occurs.
public SessionInfo obtain(SessionInfo sessionInfo,
String workspaceName)
throws LoginException,
NoSuchWorkspaceException,
RepositoryException
createSessionInfo(SessionInfo, String).
obtain in interface RepositoryServiceLoginException
NoSuchWorkspaceException
RepositoryException
public SessionInfo impersonate(SessionInfo sessionInfo,
Credentials credentials)
throws LoginException,
RepositoryException
obtain(Credentials, String) with the workspaceName taken from
the passed sessionInfo.
impersonate in interface RepositoryServiceLoginException
RepositoryException
public void dispose(SessionInfo sessionInfo)
throws RepositoryException
dispose in interface RepositoryServiceRepositoryException
public Iterator<QNodeTypeDefinition> getQNodeTypeDefinitions(SessionInfo sessionInfo)
throws RepositoryException
checkSessionInfo(SessionInfo)
with the sessionInfo,
getQNodeTypeDefinitions in interface RepositoryServiceRepositoryException
public Iterator<QNodeTypeDefinition> getQNodeTypeDefinitions(SessionInfo sessionInfo,
Name[] nodetypeNames)
throws RepositoryException
checkSessionInfo(SessionInfo)
with the sessionInfo, then gathers the QNodeTypeDefinitions
with the given nodetypeNames. If one of the nodetypeNames
is not a valid node type definition then a RepositoryException
is thrown.
getQNodeTypeDefinitions in interface RepositoryServiceRepositoryException
public QNodeDefinition getNodeDefinition(SessionInfo sessionInfo,
NodeId nodeId)
throws RepositoryException
checkSessionInfo(SessionInfo)
with the sessionInfo, then lazily initializes rootNodeDefinition
if nodeId denotes the root node; otherwise throws a
UnsupportedRepositoryOperationException.
getNodeDefinition in interface RepositoryServiceRepositoryException
public QPropertyDefinition getPropertyDefinition(SessionInfo sessionInfo,
PropertyId propertyId)
throws RepositoryException
getPropertyDefinition in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public void registerNodeTypes(SessionInfo sessionInfo,
QNodeTypeDefinition[] nodeTypeDefinitions,
boolean allowUpdate)
throws InvalidNodeTypeDefinitionException,
NodeTypeExistsException,
UnsupportedRepositoryOperationException,
RepositoryException
registerNodeTypes in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
InvalidNodeTypeDefinitionException
NodeTypeExistsException
RepositoryException
public void unregisterNodeTypes(SessionInfo sessionInfo,
Name[] nodeTypeNames)
throws UnsupportedRepositoryOperationException,
NoSuchNodeTypeException,
RepositoryException
unregisterNodeTypes in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
NoSuchNodeTypeException
RepositoryException
public Map<String,String> getRegisteredNamespaces(SessionInfo sessionInfo)
throws RepositoryException
checkSessionInfo(SessionInfo)
with the sessionInfo, then returns the prefix to namespace
URL mapping that was provided in the constructor of this repository
service.
getRegisteredNamespaces in interface RepositoryServiceRepositoryException
public String getNamespaceURI(SessionInfo sessionInfo,
String prefix)
throws NamespaceException,
RepositoryException
checkSessionInfo(SessionInfo)
with the sessionInfo, then returns the namepsace URI for the
given prefix.
getNamespaceURI in interface RepositoryServiceNamespaceException
RepositoryException
public String getNamespacePrefix(SessionInfo sessionInfo,
String uri)
throws NamespaceException,
RepositoryException
checkSessionInfo(SessionInfo)
with the sessionInfo, then return the namespace prefix for
the given uri.
getNamespacePrefix in interface RepositoryServiceNamespaceException
RepositoryException
public Batch createBatch(SessionInfo sessionInfo,
ItemId itemId)
throws RepositoryException
createBatch in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public void submit(Batch batch)
throws PathNotFoundException,
ItemNotFoundException,
NoSuchNodeTypeException,
ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
AccessDeniedException,
UnsupportedRepositoryOperationException,
RepositoryException
submit in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
PathNotFoundException
ItemNotFoundException
NoSuchNodeTypeException
ValueFormatException
VersionException
LockException
ConstraintViolationException
AccessDeniedException
RepositoryException
public void importXml(SessionInfo sessionInfo,
NodeId parentId,
InputStream xmlStream,
int uuidBehaviour)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
AccessDeniedException,
UnsupportedRepositoryOperationException,
RepositoryException
importXml in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
AccessDeniedException
RepositoryException
public void move(SessionInfo sessionInfo,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
AccessDeniedException,
UnsupportedRepositoryOperationException,
RepositoryException
move in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
AccessDeniedException
RepositoryException
public void copy(SessionInfo sessionInfo,
String srcWorkspaceName,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName)
throws NoSuchWorkspaceException,
ConstraintViolationException,
VersionException,
AccessDeniedException,
PathNotFoundException,
ItemExistsException,
LockException,
UnsupportedRepositoryOperationException,
RepositoryException
copy in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
public void update(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName)
throws NoSuchWorkspaceException,
AccessDeniedException,
LockException,
InvalidItemStateException,
RepositoryException
update in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
AccessDeniedException
LockException
InvalidItemStateException
RepositoryException
public void clone(SessionInfo sessionInfo,
String srcWorkspaceName,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName,
boolean removeExisting)
throws NoSuchWorkspaceException,
ConstraintViolationException,
VersionException,
AccessDeniedException,
PathNotFoundException,
ItemExistsException,
LockException,
UnsupportedRepositoryOperationException,
RepositoryException
clone in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException
public LockInfo lock(SessionInfo sessionInfo,
NodeId nodeId,
boolean deep,
boolean sessionScoped)
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
RepositoryException
lock in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
LockException
AccessDeniedException
RepositoryException
public LockInfo lock(SessionInfo sessionInfo,
NodeId nodeId,
boolean deep,
boolean sessionScoped,
long timeoutHint,
String ownerHint)
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
RepositoryException
lock in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
LockException
AccessDeniedException
RepositoryException
public LockInfo getLockInfo(SessionInfo sessionInfo,
NodeId nodeId)
throws AccessDeniedException,
RepositoryException
getLockInfo in interface RepositoryServicenull.
AccessDeniedException
RepositoryException
public void refreshLock(SessionInfo sessionInfo,
NodeId nodeId)
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
RepositoryException
refreshLock in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
LockException
AccessDeniedException
RepositoryException
public void unlock(SessionInfo sessionInfo,
NodeId nodeId)
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
RepositoryException
unlock in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
LockException
AccessDeniedException
RepositoryException
public NodeId checkin(SessionInfo sessionInfo,
NodeId nodeId)
throws VersionException,
UnsupportedRepositoryOperationException,
InvalidItemStateException,
LockException,
RepositoryException
checkin in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
VersionException
InvalidItemStateException
LockException
RepositoryException
public void checkout(SessionInfo sessionInfo,
NodeId nodeId)
throws UnsupportedRepositoryOperationException,
LockException,
RepositoryException
checkout in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
LockException
RepositoryException
public void checkout(SessionInfo sessionInfo,
NodeId nodeId,
NodeId activityId)
throws UnsupportedRepositoryOperationException,
LockException,
RepositoryException
checkout in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
LockException
RepositoryException
public NodeId checkpoint(SessionInfo sessionInfo,
NodeId nodeId)
throws UnsupportedRepositoryOperationException,
LockException,
RepositoryException
checkpoint in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
LockException
RepositoryException
public void removeVersion(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId)
throws ReferentialIntegrityException,
AccessDeniedException,
UnsupportedRepositoryOperationException,
VersionException,
RepositoryException
removeVersion in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
ReferentialIntegrityException
AccessDeniedException
VersionException
RepositoryException
public void restore(SessionInfo sessionInfo,
NodeId nodeId,
NodeId versionId,
boolean removeExisting)
throws VersionException,
PathNotFoundException,
ItemExistsException,
UnsupportedRepositoryOperationException,
LockException,
InvalidItemStateException,
RepositoryException
restore in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
VersionException
PathNotFoundException
ItemExistsException
LockException
InvalidItemStateException
RepositoryException
public void restore(SessionInfo sessionInfo,
NodeId[] versionIds,
boolean removeExisting)
throws ItemExistsException,
UnsupportedRepositoryOperationException,
VersionException,
LockException,
InvalidItemStateException,
RepositoryException
restore in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
ItemExistsException
VersionException
LockException
InvalidItemStateException
RepositoryException
public Iterator<NodeId> merge(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName,
boolean bestEffort)
throws NoSuchWorkspaceException,
AccessDeniedException,
MergeException,
LockException,
InvalidItemStateException,
RepositoryException
merge in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
AccessDeniedException
MergeException
LockException
InvalidItemStateException
RepositoryException
public Iterator<NodeId> merge(SessionInfo sessionInfo,
NodeId nodeId,
String srcWorkspaceName,
boolean bestEffort,
boolean isShallow)
throws NoSuchWorkspaceException,
AccessDeniedException,
MergeException,
LockException,
InvalidItemStateException,
RepositoryException
merge in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
AccessDeniedException
MergeException
LockException
InvalidItemStateException
RepositoryException
public void resolveMergeConflict(SessionInfo sessionInfo,
NodeId nodeId,
NodeId[] mergeFailedIds,
NodeId[] predecessorIds)
throws VersionException,
InvalidItemStateException,
UnsupportedRepositoryOperationException,
RepositoryException
resolveMergeConflict in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
VersionException
InvalidItemStateException
RepositoryException
public void addVersionLabel(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId,
Name label,
boolean moveLabel)
throws VersionException,
RepositoryException
addVersionLabel in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
VersionException
RepositoryException
public void removeVersionLabel(SessionInfo sessionInfo,
NodeId versionHistoryId,
NodeId versionId,
Name label)
throws VersionException,
RepositoryException
removeVersionLabel in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
VersionException
RepositoryException
public NodeId createActivity(SessionInfo sessionInfo,
String title)
throws UnsupportedRepositoryOperationException,
RepositoryException
createActivity in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public void removeActivity(SessionInfo sessionInfo,
NodeId activityId)
throws UnsupportedRepositoryOperationException,
RepositoryException
removeActivity in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public Iterator<NodeId> mergeActivity(SessionInfo sessionInfo,
NodeId activityId)
throws UnsupportedRepositoryOperationException,
RepositoryException
mergeActivity in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public NodeId createConfiguration(SessionInfo sessionInfo,
NodeId nodeId)
throws UnsupportedRepositoryOperationException,
RepositoryException
createConfiguration in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public EventFilter createEventFilter(SessionInfo sessionInfo,
int eventTypes,
Path absPath,
boolean isDeep,
String[] uuid,
Name[] nodeTypeName,
boolean noLocal)
throws UnsupportedRepositoryOperationException,
RepositoryException
createEventFilter in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public Subscription createSubscription(SessionInfo sessionInfo,
EventFilter[] filters)
throws UnsupportedRepositoryOperationException,
RepositoryException
createSubscription in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public void updateEventFilters(Subscription subscription,
EventFilter[] filters)
throws RepositoryException
updateEventFilters in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public EventBundle[] getEvents(Subscription subscription,
long timeout)
throws RepositoryException,
InterruptedException
getEvents in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
InterruptedException
public EventBundle getEvents(SessionInfo sessionInfo,
EventFilter filter,
long after)
throws RepositoryException,
UnsupportedRepositoryOperationException
getEvents in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public void dispose(Subscription subscription)
throws RepositoryException
dispose in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
RepositoryException
public void registerNamespace(SessionInfo sessionInfo,
String prefix,
String uri)
throws NamespaceException,
UnsupportedRepositoryOperationException,
AccessDeniedException,
RepositoryException
registerNamespace in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
NamespaceException
AccessDeniedException
RepositoryException
public void unregisterNamespace(SessionInfo sessionInfo,
String uri)
throws NamespaceException,
UnsupportedRepositoryOperationException,
AccessDeniedException,
RepositoryException
unregisterNamespace in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
NamespaceException
AccessDeniedException
RepositoryException
public void createWorkspace(SessionInfo sessionInfo,
String name,
String srcWorkspaceName)
throws AccessDeniedException,
UnsupportedRepositoryOperationException,
NoSuchWorkspaceException,
RepositoryException
createWorkspace in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
AccessDeniedException
NoSuchWorkspaceException
RepositoryException
public void deleteWorkspace(SessionInfo sessionInfo,
String name)
throws AccessDeniedException,
UnsupportedRepositoryOperationException,
NoSuchWorkspaceException,
RepositoryException
deleteWorkspace in interface RepositoryServiceUnsupportedRepositoryOperationException - always.
AccessDeniedException
NoSuchWorkspaceException
RepositoryException
public String[] getSupportedQueryLanguages(SessionInfo sessionInfo)
throws RepositoryException
getSupportedQueryLanguages in interface RepositoryServiceRepositoryException
public String[] checkQueryStatement(SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces)
throws InvalidQueryException,
RepositoryException
checkQueryStatement in interface RepositoryServiceInvalidQueryException
RepositoryException
public QueryInfo executeQuery(SessionInfo sessionInfo,
String statement,
String language,
Map<String,String> namespaces,
long limit,
long offset,
Map<String,QValue> values)
throws RepositoryException
executeQuery in interface RepositoryServiceRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||