|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi2dav.RepositoryServiceImpl
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl
public class RepositoryServiceImpl
RepositoryServiceImpl...
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
RepositoryServiceImpl(String jcrServerURI,
BatchReadConfig batchReadConfig)
|
|
RepositoryServiceImpl(String jcrServerURI,
String defaultWorkspaceName,
BatchReadConfig batchReadConfig,
int itemInfoCacheSize)
|
|
| Method Summary | |
|---|---|
void |
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 |
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. |
Batch |
createBatch(SessionInfo sessionInfo,
ItemId itemId)
Indicates the start of a set of operations that cause modifications on the underlying persistence layer. |
void |
dispose(SessionInfo sessionInfo)
Indicates to the RepositoryService, that the given SessionInfo
will not be used any more. |
Iterator<? extends ItemInfo> |
getItemInfos(SessionInfo sessionInfo,
NodeId nodeId)
Method used to 'batch-read' from the persistent storage. |
org.apache.jackrabbit.spi2davex.QValueFactoryImpl |
getQValueFactory(SessionInfo sessionInfo)
|
SessionInfo |
obtain(Credentials credentials,
String workspaceName)
If the specified workspaceName the default workspace name
is used for backwards compatibility with jackrabbit-jcr-server < 1.5.0 |
SessionInfo |
obtain(SessionInfo sessionInfo,
String workspaceName)
If the specified workspaceName the default workspace name
is used for backwards compatibility with jackrabbit-jcr-server < 1.5.0 |
void |
submit(Batch batch)
Completes the given Batch or discard all the previous modifications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryServiceImpl(String jcrServerURI,
BatchReadConfig batchReadConfig)
throws RepositoryException
RepositoryException
public RepositoryServiceImpl(String jcrServerURI,
String defaultWorkspaceName,
BatchReadConfig batchReadConfig,
int itemInfoCacheSize)
throws RepositoryException
RepositoryException| Method Detail |
|---|
public org.apache.jackrabbit.spi2davex.QValueFactoryImpl getQValueFactory(SessionInfo sessionInfo)
throws RepositoryException
RepositoryExceptionRepositoryService.getQValueFactory()
public SessionInfo obtain(Credentials credentials,
String workspaceName)
throws RepositoryException
workspaceName the default workspace name
is used for backwards compatibility with jackrabbit-jcr-server < 1.5.0
obtain in interface RepositoryServiceobtain in class RepositoryServiceImplcredentials - the credentials of the user.workspaceName - the name of the workspace the SessionInfo
should be built for. If the specified workspaceName is null
the implementation should select a default workspace.
SessionInfo if authentication was successful.
LoginException - if authentication of the user fails.
NoSuchWorkspaceException - if the specified workspaceName
is not recognized.
RepositoryException - if an error occurs.RepositoryService.obtain(Credentials, String)
public SessionInfo obtain(SessionInfo sessionInfo,
String workspaceName)
throws RepositoryException
workspaceName the default workspace name
is used for backwards compatibility with jackrabbit-jcr-server < 1.5.0
obtain in interface RepositoryServiceobtain in class RepositoryServiceImplsessionInfo - for another workspaceworkspaceName - the name of the workspace the new SessionInfo
should be built for. If the specified workspaceName is null
the implementation should select a default workspace.
SessionInfo if authentication was successful.
LoginException - if authentication of the user fails.
NoSuchWorkspaceException - if the specified workspaceName
is not recognized.
RepositoryException - if an error occurs.RepositoryService.obtain(SessionInfo, String)
public void dispose(SessionInfo sessionInfo)
throws RepositoryException
RepositoryServiceRepositoryService, that the given SessionInfo
will not be used any more.
dispose in interface RepositoryServicedispose in class RepositoryServiceImplRepositoryExceptionRepositoryService.dispose(SessionInfo)
public Iterator<? extends ItemInfo> getItemInfos(SessionInfo sessionInfo,
NodeId nodeId)
throws ItemNotFoundException,
RepositoryException
RepositoryServiceNodeInfo for the given NodeId as the first
element in the Iterator. In addition the iterator may contain
arbitrary ItemInfos.
getItemInfos in interface RepositoryServicegetItemInfos in class RepositoryServiceImplIterator of ItemInfos containing
at least a single element: the NodeInfo that represents
the Node identified by the given NodeId. If the Iterator
contains multiple elements, the first is expected to represent the Node
identified by the given NodeId.
ItemNotFoundException
RepositoryExceptionRepositoryService.getItemInfos(SessionInfo, NodeId)
public Batch createBatch(SessionInfo sessionInfo,
ItemId itemId)
throws RepositoryException
RepositoryServiceBatch must be executed at once or non must be executed upon
calling RepositoryService.submit(Batch).
createBatch in interface RepositoryServicecreateBatch in class RepositoryServiceImplitemId - Id of the Item that is a common ancestor of all
Items affected upon batch execution. This Item
might itself be modified within the scope of the Batch.
RepositoryService.submit(Batch).
RepositoryExceptionRepositoryService.createBatch(SessionInfo,ItemId)
public void submit(Batch batch)
throws RepositoryException
RepositoryServiceBatch or discard all the previous modifications.
See RepositoryService.createBatch(SessionInfo,ItemId) for additional information
regarding batch creation.
submit in interface RepositoryServicesubmit in class RepositoryServiceImplPathNotFoundException
ItemNotFoundException
NoSuchNodeTypeException
ValueFormatException
VersionException
LockException
ConstraintViolationException
AccessDeniedException
UnsupportedRepositoryOperationException
RepositoryExceptionRepositoryService.submit(Batch)
public void copy(SessionInfo sessionInfo,
String srcWorkspaceName,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName)
throws RepositoryException
RepositoryServicesrcNodeId
in workspace named srcWorkspaceName to the destination
in the workspace specified by the given SessionInfo. The
destination is composed by the given parent id and the new name
as indicated by destName.
Note, that srcWorkspaceName may be the same as the one
specified within the SessionInfo. In this case the copy
corresponds to a copy within a single workspace.
copy in interface RepositoryServicecopy in class RepositoryServiceImplNoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
UnsupportedRepositoryOperationException
RepositoryExceptionRepositoryService.copy(SessionInfo, String, NodeId, NodeId, Name)
public void clone(SessionInfo sessionInfo,
String srcWorkspaceName,
NodeId srcNodeId,
NodeId destParentNodeId,
Name destName,
boolean removeExisting)
throws RepositoryException
RepositoryServicesrcNodeId
in workspace named srcWorkspaceName to the destination
in the workspace specified by the given SessionInfo. The
destination is composed by the given parent id and the new name
as indicated by destName.
clone in interface RepositoryServiceclone in class RepositoryServiceImplNoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
UnsupportedRepositoryOperationException
RepositoryExceptionRepositoryService.clone(SessionInfo, String, NodeId, NodeId, Name, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||