|
|||||||||||
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 Session
public String getUserID()
getUserID
in interface Session
public Object getAttribute(String name)
getAttribute
in interface Session
public String[] getAttributeNames()
getAttributeNames
in interface Session
public Workspace getWorkspace()
getWorkspace
in interface Session
public Session impersonate(Credentials credentials) throws LoginException, RepositoryException
getRepository().login(credentials, getWorkspace().getName())
.
impersonate
in interface Session
LoginException
RepositoryException
public Node getRootNode() throws RepositoryException
getRootNode
in interface Session
RepositoryException
public Node getNodeByUUID(String uuid) throws ItemNotFoundException, RepositoryException
getNodeByUUID
in interface Session
ItemNotFoundException
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 Session
PathNotFoundException
RepositoryException
public boolean itemExists(String absPath) throws RepositoryException
getItem(absPath)
and returning
true
unless a
PathNotFoundException
is thrown.
itemExists
in interface Session
RepositoryException
public void move(String srcAbsPath, String destAbsPath) throws ItemExistsException, PathNotFoundException, VersionException, RepositoryException
move
in interface Session
ItemExistsException
PathNotFoundException
VersionException
RepositoryException
public void save() throws AccessDeniedException, ConstraintViolationException, InvalidItemStateException, VersionException, LockException, RepositoryException
save
in interface Session
AccessDeniedException
ConstraintViolationException
InvalidItemStateException
VersionException
LockException
RepositoryException
public void refresh(boolean keepChanges) throws RepositoryException
refresh
in interface Session
RepositoryException
public boolean hasPendingChanges() throws RepositoryException
hasPendingChanges
in interface Session
RepositoryException
public void checkPermission(String absPath, String actions) throws AccessControlException
checkPermission
in interface Session
AccessControlException
public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehaviour) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException
getImportContentHandler
in interface Session
PathNotFoundException
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 Session
IOException
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 Session
PathNotFoundException
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 Session
IOException
PathNotFoundException
RepositoryException
public void exportDocumentView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws InvalidSerializedDataException, PathNotFoundException, SAXException, RepositoryException
exportDocumentView
in interface Session
InvalidSerializedDataException
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 Session
InvalidSerializedDataException
IOException
PathNotFoundException
RepositoryException
public void setNamespacePrefix(String prefix, String uri) throws NamespaceException, RepositoryException
setNamespacePrefix
in interface Session
NamespaceException
RepositoryException
public String[] getNamespacePrefixes() throws RepositoryException
getNamespacePrefixes
in interface Session
RepositoryException
public String getNamespaceURI(String prefix) throws NamespaceException, RepositoryException
getNamespaceURI
in interface Session
NamespaceException
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 Session
NamespaceException
RepositoryException
public void logout()
logout
in interface Session
public void addLockToken(String lt)
addLockToken
in interface Session
public String[] getLockTokens()
getLockTokens
in interface Session
public void removeLockToken(String lt)
removeLockToken
in interface Session
public ValueFactory getValueFactory() throws UnsupportedRepositoryOperationException, RepositoryException
getValueFactory
in interface Session
UnsupportedRepositoryOperationException
RepositoryException
public boolean isLive()
true
.
isLive
in interface Session
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |