public class SessionImpl extends Object implements JackrabbitSession
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY| Constructor and Description |
|---|
SessionImpl(SessionContext sessionContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockToken(String lt) |
void |
checkPermission(String absPath,
String actions) |
void |
exportDocumentView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse) |
void |
exportDocumentView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse) |
void |
exportSystemView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse) |
void |
exportSystemView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse) |
AccessControlManager |
getAccessControlManager() |
Object |
getAttribute(String name) |
String[] |
getAttributeNames() |
ContentHandler |
getImportContentHandler(String parentAbsPath,
int uuidBehavior) |
Item |
getItem(String absPath) |
Item |
getItemOrNull(String absPath)
Returns the node at the specified absolute path in the workspace.
|
String[] |
getLockTokens() |
String |
getNamespacePrefix(String uri) |
String[] |
getNamespacePrefixes() |
String |
getNamespaceURI(String prefix) |
Node |
getNode(String absPath) |
Node |
getNodeByIdentifier(String id) |
Node |
getNodeByUUID(String uuid) |
Node |
getNodeOrNull(String absPath)
Returns the node at the specified absolute path in the workspace or
null if no such node exists. |
PrincipalManager |
getPrincipalManager() |
Property |
getProperty(String absPath) |
Property |
getPropertyOrNull(String absPath)
Returns the property at the specified absolute path in the workspace or
null if no such node exists. |
Repository |
getRepository() |
RetentionManager |
getRetentionManager() |
Node |
getRootNode() |
String |
getUserID() |
UserManager |
getUserManager() |
ValueFactory |
getValueFactory() |
Workspace |
getWorkspace() |
boolean |
hasCapability(String methodName,
Object target,
Object[] arguments) |
boolean |
hasPendingChanges() |
boolean |
hasPermission(String absPath,
String actions) |
Session |
impersonate(Credentials credentials) |
void |
importXML(String parentAbsPath,
InputStream in,
int uuidBehavior) |
boolean |
isLive() |
boolean |
itemExists(String absPath) |
void |
logout() |
void |
move(String srcAbsPath,
String destAbsPath) |
boolean |
nodeExists(String absPath) |
boolean |
propertyExists(String absPath) |
void |
refresh(boolean keepChanges) |
void |
removeItem(String absPath) |
void |
removeLockToken(String lt) |
void |
save() |
void |
setNamespacePrefix(String prefix,
String uri) |
String |
toString() |
public SessionImpl(SessionContext sessionContext)
@CheckForNull public Node getNodeOrNull(String absPath) throws RepositoryException
null if no such node exists.absPath - An absolute path.Node or null.RepositoryException - If another error occurs.@CheckForNull public Property getPropertyOrNull(String absPath) throws RepositoryException
null if no such node exists.absPath - An absolute path.Property or null.RepositoryException - if another error occurs.@CheckForNull public Item getItemOrNull(String absPath) throws RepositoryException
null.absPath - An absolute path.Item or null.RepositoryException - if another error occurs.@Nonnull public Repository getRepository()
getRepository in interface Sessionpublic String[] getAttributeNames()
getAttributeNames in interface Sessionpublic Object getAttribute(String name)
getAttribute in interface Session@Nonnull public Workspace getWorkspace()
getWorkspace in interface Session@Nonnull public Session impersonate(Credentials credentials) throws RepositoryException
impersonate in interface SessionRepositoryException@Nonnull public ValueFactory getValueFactory() throws RepositoryException
getValueFactory in interface SessionRepositoryException@Nonnull public Node getRootNode() throws RepositoryException
getRootNode in interface SessionRepositoryExceptionpublic Node getNode(String absPath) throws RepositoryException
getNode in interface SessionRepositoryExceptionpublic boolean nodeExists(String absPath) throws RepositoryException
nodeExists in interface SessionRepositoryException@Nonnull public Node getNodeByUUID(String uuid) throws RepositoryException
getNodeByUUID in interface SessionRepositoryException@Nonnull public Node getNodeByIdentifier(String id) throws RepositoryException
getNodeByIdentifier in interface SessionRepositoryExceptionpublic Property getProperty(String absPath) throws RepositoryException
getProperty in interface SessionRepositoryExceptionpublic boolean propertyExists(String absPath) throws RepositoryException
propertyExists in interface SessionRepositoryExceptionpublic Item getItem(String absPath) throws RepositoryException
getItem in interface SessionRepositoryExceptionpublic boolean itemExists(String absPath) throws RepositoryException
itemExists in interface SessionRepositoryExceptionpublic void move(String srcAbsPath, String destAbsPath) throws RepositoryException
move in interface SessionRepositoryExceptionpublic void removeItem(String absPath) throws RepositoryException
removeItem in interface SessionRepositoryExceptionpublic void save()
throws RepositoryException
save in interface SessionRepositoryExceptionpublic void refresh(boolean keepChanges)
throws RepositoryException
refresh in interface SessionRepositoryExceptionpublic boolean hasPendingChanges()
throws RepositoryException
hasPendingChanges in interface SessionRepositoryException@Nonnull public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws RepositoryException
getImportContentHandler in interface SessionRepositoryExceptionpublic void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, RepositoryException
importXML in interface SessionIOExceptionRepositoryExceptionpublic void exportSystemView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws SAXException, RepositoryException
exportSystemView in interface SessionSAXExceptionRepositoryExceptionpublic void exportSystemView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, RepositoryException
exportSystemView in interface SessionIOExceptionRepositoryExceptionpublic void exportDocumentView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws SAXException, RepositoryException
exportDocumentView in interface SessionSAXExceptionRepositoryExceptionpublic void exportDocumentView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, RepositoryException
exportDocumentView in interface SessionIOExceptionRepositoryExceptionpublic void addLockToken(String lt)
addLockToken in interface Session@Nonnull public String[] getLockTokens()
getLockTokens in interface Sessionpublic void removeLockToken(String lt)
removeLockToken in interface Sessionpublic boolean hasPermission(String absPath, String actions) throws RepositoryException
hasPermission in interface SessionRepositoryExceptionpublic void checkPermission(String absPath, String actions) throws RepositoryException
checkPermission in interface SessionRepositoryExceptionpublic boolean hasCapability(String methodName, Object target, Object[] arguments) throws RepositoryException
hasCapability in interface SessionRepositoryException@Nonnull public AccessControlManager getAccessControlManager() throws RepositoryException
getAccessControlManager in interface SessionRepositoryException@Nonnull public RetentionManager getRetentionManager() throws RepositoryException
getRetentionManager in interface SessionRepositoryExceptionSession.getRetentionManager()public void setNamespacePrefix(String prefix, String uri) throws RepositoryException
setNamespacePrefix in interface SessionRepositoryExceptionpublic String[] getNamespacePrefixes() throws RepositoryException
getNamespacePrefixes in interface SessionRepositoryExceptionpublic String getNamespaceURI(String prefix) throws RepositoryException
getNamespaceURI in interface SessionRepositoryExceptionpublic String getNamespacePrefix(String uri) throws RepositoryException
getNamespacePrefix in interface SessionRepositoryException@Nonnull public PrincipalManager getPrincipalManager() throws RepositoryException
getPrincipalManager in interface JackrabbitSessionRepositoryException@Nonnull public UserManager getUserManager() throws RepositoryException
getUserManager in interface JackrabbitSessionRepositoryExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.