|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.base.BaseSession
Session base class.
| Constructor Summary | |
protected |
BaseSession()
Protected constructor. |
| Method Summary | |
void |
addLockToken(String lt)
Not implemented. |
void |
checkPermission(String absPath,
String actions)
Not implemented. |
void |
exportDocumentView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
Not implemented. |
void |
exportDocumentView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
Implemented by calling exportDocView(absPath, handler, binaryAsLink, noRecurse)
with a content handler instance handler created on
top fo the given output stream using the Xerces
XMLSerializer class. |
void |
exportSystemView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
Not implemented. |
void |
exportSystemView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
Implemented by calling exportSysView(absPath, handler, binaryAsLink, noRecurse)
with a content handler instance handler created on
top fo the given output stream using the Xerces
XMLSerializer class. |
Object |
getAttribute(String name)
Not implemented. |
String[] |
getAttributeNames()
Not implemented. |
ContentHandler |
getImportContentHandler(String parentAbsPath,
int uuidBehaviour)
Not implemented. |
Item |
getItem(String absPath)
Implemented by calling getRootNode() or
getRootNode().getNode(absPath.substring(1)) depending
on the given absolute path. |
String[] |
getLockTokens()
Not implemented. |
String |
getNamespacePrefix(String uri)
Implemented by iterating over the prefix array returned by getNamespacePrefixes() and calling
getNamespaceURI(prefix) repeatedly until a match
is found for the given namespace URI. |
String[] |
getNamespacePrefixes()
Not implemented. |
String |
getNamespaceURI(String prefix)
Not implemented. |
Node |
getNodeByUUID(String uuid)
Not implemented. |
Repository |
getRepository()
Not implemented. |
Node |
getRootNode()
Not implemented. |
String |
getUserID()
Not implemented. |
ValueFactory |
getValueFactory()
Not implemented. |
Workspace |
getWorkspace()
Not implemented. |
boolean |
hasPendingChanges()
Not implemented. |
Session |
impersonate(Credentials credentials)
Implemented by calling getRepository().login(credentials, getWorkspace().getName()). |
void |
importXML(String parentAbsPath,
InputStream in,
int uuidBehaviour)
Implemented by calling transformer.transform(new StreamSource(in), new SAXResult(handler))
with an identity Transformer and a
ContentHandler instance created by calling
getImportContentHandler(parentAbsPath). |
boolean |
isLive()
Always returns true. |
boolean |
itemExists(String absPath)
Implemented by calling getItem(absPath) and returning
true unless a
PathNotFoundException is thrown. |
void |
logout()
Does nothing. |
void |
move(String srcAbsPath,
String destAbsPath)
Not implemented. |
void |
refresh(boolean keepChanges)
Not implemented. |
void |
removeLockToken(String lt)
Not implemented. |
void |
save()
Not implemented. |
void |
setNamespacePrefix(String prefix,
String uri)
Not implemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected BaseSession()
| Method Detail |
public Repository getRepository()
getRepository in interface Sessionpublic String getUserID()
getUserID in interface Sessionpublic Object getAttribute(String name)
getAttribute in interface Sessionpublic String[] getAttributeNames()
getAttributeNames in interface Sessionpublic Workspace getWorkspace()
getWorkspace in interface Session
public Session impersonate(Credentials credentials)
throws LoginException,
RepositoryException
getRepository().login(credentials, getWorkspace().getName()).
impersonate in interface SessionLoginException
RepositoryException
public Node getRootNode()
throws RepositoryException
getRootNode in interface SessionRepositoryException
public Node getNodeByUUID(String uuid)
throws ItemNotFoundException,
RepositoryException
getNodeByUUID in interface SessionItemNotFoundException
RepositoryException
public Item getItem(String absPath)
throws PathNotFoundException,
RepositoryException
getRootNode() or
getRootNode().getNode(absPath.substring(1)) depending
on the given absolute path.
getItem in interface SessionPathNotFoundException
RepositoryException
public boolean itemExists(String absPath)
throws RepositoryException
getItem(absPath) and returning
true unless a
PathNotFoundException is thrown.
itemExists in interface SessionRepositoryException
public void move(String srcAbsPath,
String destAbsPath)
throws ItemExistsException,
PathNotFoundException,
VersionException,
RepositoryException
move in interface SessionItemExistsException
PathNotFoundException
VersionException
RepositoryException
public void save()
throws AccessDeniedException,
ConstraintViolationException,
InvalidItemStateException,
VersionException,
LockException,
RepositoryException
save in interface SessionAccessDeniedException
ConstraintViolationException
InvalidItemStateException
VersionException
LockException
RepositoryException
public void refresh(boolean keepChanges)
throws RepositoryException
refresh in interface SessionRepositoryException
public boolean hasPendingChanges()
throws RepositoryException
hasPendingChanges in interface SessionRepositoryException
public void checkPermission(String absPath,
String actions)
throws AccessControlException
checkPermission in interface SessionAccessControlException
public ContentHandler getImportContentHandler(String parentAbsPath,
int uuidBehaviour)
throws PathNotFoundException,
ConstraintViolationException,
VersionException,
LockException,
RepositoryException
getImportContentHandler in interface SessionPathNotFoundException
ConstraintViolationException
VersionException
LockException
RepositoryException
public void importXML(String parentAbsPath,
InputStream in,
int uuidBehaviour)
throws IOException,
PathNotFoundException,
ItemExistsException,
ConstraintViolationException,
VersionException,
InvalidSerializedDataException,
LockException,
RepositoryException
transformer.transform(new StreamSource(in), new SAXResult(handler))
with an identity Transformer and a
ContentHandler instance created by calling
getImportContentHandler(parentAbsPath). Possible
TransformerExceptions and
TransformerConfigurationExceptions
are converted to IOExceptions.
importXML in interface SessionIOException
PathNotFoundException
ItemExistsException
ConstraintViolationException
VersionException
InvalidSerializedDataException
LockException
RepositoryException
public void exportSystemView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
throws PathNotFoundException,
SAXException,
RepositoryException
exportSystemView in interface SessionPathNotFoundException
SAXException
RepositoryException
public void exportSystemView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
throws IOException,
PathNotFoundException,
RepositoryException
exportSysView(absPath, handler, binaryAsLink, noRecurse)
with a content handler instance handler created on
top fo the given output stream using the Xerces
XMLSerializer class. Possible
SAXExceptions are converted to
IOExceptions.
exportSystemView in interface SessionIOException
PathNotFoundException
RepositoryException
public void exportDocumentView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
throws InvalidSerializedDataException,
PathNotFoundException,
SAXException,
RepositoryException
exportDocumentView in interface SessionInvalidSerializedDataException
PathNotFoundException
SAXException
RepositoryException
public void exportDocumentView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
throws InvalidSerializedDataException,
IOException,
PathNotFoundException,
RepositoryException
exportDocView(absPath, handler, binaryAsLink, noRecurse)
with a content handler instance handler created on
top fo the given output stream using the Xerces
XMLSerializer class. Possible
SAXExceptions are converted to
IOExceptions.
exportDocumentView in interface SessionInvalidSerializedDataException
IOException
PathNotFoundException
RepositoryException
public void setNamespacePrefix(String prefix,
String uri)
throws NamespaceException,
RepositoryException
setNamespacePrefix in interface SessionNamespaceException
RepositoryException
public String[] getNamespacePrefixes()
throws RepositoryException
getNamespacePrefixes in interface SessionRepositoryException
public String getNamespaceURI(String prefix)
throws NamespaceException,
RepositoryException
getNamespaceURI in interface SessionNamespaceException
RepositoryException
public String getNamespacePrefix(String uri)
throws NamespaceException,
RepositoryException
getNamespacePrefixes() and calling
getNamespaceURI(prefix) repeatedly until a match
is found for the given namespace URI.
getNamespacePrefix in interface SessionNamespaceException
RepositoryExceptionpublic void logout()
logout in interface Sessionpublic void addLockToken(String lt)
addLockToken in interface Sessionpublic String[] getLockTokens()
getLockTokens in interface Sessionpublic void removeLockToken(String lt)
removeLockToken in interface Session
public ValueFactory getValueFactory()
throws UnsupportedRepositoryOperationException,
RepositoryException
getValueFactory in interface SessionUnsupportedRepositoryOperationException
RepositoryExceptionpublic boolean isLive()
true.
isLive in interface Session
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||