public class SessionImpl extends java.lang.Object implements org.apache.jackrabbit.api.JackrabbitSession
ACTION_ADD_PROPERTY, ACTION_LOCKING, ACTION_MODIFY_ACCESS_CONTROL, ACTION_MODIFY_PROPERTY, ACTION_NODE_TYPE_MANAGEMENT, ACTION_READ_ACCESS_CONTROL, ACTION_REMOVE_NODE, ACTION_REMOVE_PROPERTY, ACTION_USER_MANAGEMENT, ACTION_VERSIONINGACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY| Constructor and Description |
|---|
SessionImpl(SessionContext sessionContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockToken(java.lang.String lt) |
void |
checkPermission(java.lang.String absPath,
java.lang.String actions) |
void |
exportDocumentView(java.lang.String absPath,
org.xml.sax.ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse) |
void |
exportDocumentView(java.lang.String absPath,
java.io.OutputStream out,
boolean skipBinary,
boolean noRecurse) |
void |
exportSystemView(java.lang.String absPath,
org.xml.sax.ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse) |
void |
exportSystemView(java.lang.String absPath,
java.io.OutputStream out,
boolean skipBinary,
boolean noRecurse) |
@NotNull AccessControlManager |
getAccessControlManager() |
java.lang.Object |
getAttribute(java.lang.String name) |
java.lang.String[] |
getAttributeNames() |
@NotNull org.xml.sax.ContentHandler |
getImportContentHandler(java.lang.String parentAbsPath,
int uuidBehavior) |
Item |
getItem(java.lang.String absPath) |
@Nullable Item |
getItemOrNull(java.lang.String absPath) |
@NotNull java.lang.String[] |
getLockTokens() |
java.lang.String |
getNamespacePrefix(java.lang.String uri) |
java.lang.String[] |
getNamespacePrefixes() |
java.lang.String |
getNamespaceURI(java.lang.String prefix) |
Node |
getNode(java.lang.String absPath) |
@NotNull Node |
getNodeByIdentifier(java.lang.String id) |
@NotNull Node |
getNodeByUUID(java.lang.String uuid) |
@Nullable Node |
getNodeOrNull(java.lang.String absPath) |
@Nullable Node |
getParentOrNull(@NotNull Item item) |
@NotNull org.apache.jackrabbit.api.security.principal.PrincipalManager |
getPrincipalManager() |
Property |
getProperty(java.lang.String absPath) |
@Nullable Property |
getPropertyOrNull(java.lang.String absPath) |
@NotNull Repository |
getRepository() |
@NotNull RetentionManager |
getRetentionManager() |
@NotNull Node |
getRootNode() |
java.lang.String |
getUserID() |
@NotNull org.apache.jackrabbit.api.security.user.UserManager |
getUserManager() |
@NotNull ValueFactory |
getValueFactory() |
@NotNull Workspace |
getWorkspace() |
boolean |
hasCapability(java.lang.String methodName,
java.lang.Object target,
java.lang.Object[] arguments) |
boolean |
hasPendingChanges() |
boolean |
hasPermission(java.lang.String absPath,
java.lang.String... actions) |
boolean |
hasPermission(java.lang.String absPath,
java.lang.String actions) |
@NotNull Session |
impersonate(Credentials credentials) |
void |
importXML(java.lang.String parentAbsPath,
java.io.InputStream in,
int uuidBehavior) |
boolean |
isLive() |
boolean |
itemExists(java.lang.String absPath) |
void |
logout() |
void |
move(java.lang.String srcAbsPath,
java.lang.String destAbsPath) |
boolean |
nodeExists(java.lang.String absPath) |
boolean |
propertyExists(java.lang.String absPath) |
void |
refresh(boolean keepChanges) |
void |
removeItem(java.lang.String absPath) |
void |
removeLockToken(java.lang.String lt) |
void |
save() |
void |
setNamespacePrefix(java.lang.String prefix,
java.lang.String uri) |
java.lang.String |
toString() |
public SessionImpl(SessionContext sessionContext)
@Nullable public @Nullable Node getNodeOrNull(java.lang.String absPath) throws RepositoryException
getNodeOrNull in interface org.apache.jackrabbit.api.JackrabbitSessionRepositoryException@Nullable public @Nullable Property getPropertyOrNull(java.lang.String absPath) throws RepositoryException
getPropertyOrNull in interface org.apache.jackrabbit.api.JackrabbitSessionRepositoryException@Nullable public @Nullable Item getItemOrNull(java.lang.String absPath) throws RepositoryException
getItemOrNull in interface org.apache.jackrabbit.api.JackrabbitSessionRepositoryException@Nullable public @Nullable Node getParentOrNull(@NotNull @NotNull Item item) throws RepositoryException
getParentOrNull in interface org.apache.jackrabbit.api.JackrabbitSessionRepositoryException@NotNull public @NotNull Repository getRepository()
getRepository in interface Sessionpublic java.lang.String[] getAttributeNames()
getAttributeNames in interface Sessionpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface Session@NotNull public @NotNull Workspace getWorkspace()
getWorkspace in interface Session@NotNull public @NotNull Session impersonate(Credentials credentials) throws RepositoryException
impersonate in interface SessionRepositoryException@NotNull public @NotNull ValueFactory getValueFactory() throws RepositoryException
getValueFactory in interface SessionRepositoryException@NotNull public @NotNull Node getRootNode() throws RepositoryException
getRootNode in interface SessionRepositoryExceptionpublic Node getNode(java.lang.String absPath) throws RepositoryException
getNode in interface SessionRepositoryExceptionpublic boolean nodeExists(java.lang.String absPath)
throws RepositoryException
nodeExists in interface SessionRepositoryException@NotNull public @NotNull Node getNodeByUUID(java.lang.String uuid) throws RepositoryException
getNodeByUUID in interface SessionRepositoryException@NotNull public @NotNull Node getNodeByIdentifier(java.lang.String id) throws RepositoryException
getNodeByIdentifier in interface SessionRepositoryExceptionpublic Property getProperty(java.lang.String absPath) throws RepositoryException
getProperty in interface SessionRepositoryExceptionpublic boolean propertyExists(java.lang.String absPath)
throws RepositoryException
propertyExists in interface SessionRepositoryExceptionpublic Item getItem(java.lang.String absPath) throws RepositoryException
getItem in interface SessionRepositoryExceptionpublic boolean itemExists(java.lang.String absPath)
throws RepositoryException
itemExists in interface SessionRepositoryExceptionpublic void move(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
throws RepositoryException
move in interface SessionRepositoryExceptionpublic void removeItem(java.lang.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@NotNull
public @NotNull org.xml.sax.ContentHandler getImportContentHandler(java.lang.String parentAbsPath,
int uuidBehavior)
throws RepositoryException
getImportContentHandler in interface SessionRepositoryExceptionpublic void importXML(java.lang.String parentAbsPath,
java.io.InputStream in,
int uuidBehavior)
throws java.io.IOException,
RepositoryException
importXML in interface Sessionjava.io.IOExceptionRepositoryExceptionpublic void exportSystemView(java.lang.String absPath,
org.xml.sax.ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
throws org.xml.sax.SAXException,
RepositoryException
exportSystemView in interface Sessionorg.xml.sax.SAXExceptionRepositoryExceptionpublic void exportSystemView(java.lang.String absPath,
java.io.OutputStream out,
boolean skipBinary,
boolean noRecurse)
throws java.io.IOException,
RepositoryException
exportSystemView in interface Sessionjava.io.IOExceptionRepositoryExceptionpublic void exportDocumentView(java.lang.String absPath,
org.xml.sax.ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
throws org.xml.sax.SAXException,
RepositoryException
exportDocumentView in interface Sessionorg.xml.sax.SAXExceptionRepositoryExceptionpublic void exportDocumentView(java.lang.String absPath,
java.io.OutputStream out,
boolean skipBinary,
boolean noRecurse)
throws java.io.IOException,
RepositoryException
exportDocumentView in interface Sessionjava.io.IOExceptionRepositoryExceptionpublic void addLockToken(java.lang.String lt)
addLockToken in interface Session@NotNull public @NotNull java.lang.String[] getLockTokens()
getLockTokens in interface Sessionpublic void removeLockToken(java.lang.String lt)
removeLockToken in interface Sessionpublic boolean hasPermission(java.lang.String absPath,
java.lang.String actions)
throws RepositoryException
hasPermission in interface SessionRepositoryExceptionpublic void checkPermission(java.lang.String absPath,
java.lang.String actions)
throws RepositoryException
checkPermission in interface SessionRepositoryExceptionpublic boolean hasCapability(java.lang.String methodName,
java.lang.Object target,
java.lang.Object[] arguments)
throws RepositoryException
hasCapability in interface SessionRepositoryException@NotNull public @NotNull AccessControlManager getAccessControlManager() throws RepositoryException
getAccessControlManager in interface SessionRepositoryException@NotNull public @NotNull RetentionManager getRetentionManager() throws RepositoryException
getRetentionManager in interface SessionRepositoryExceptionSession.getRetentionManager()public void setNamespacePrefix(java.lang.String prefix,
java.lang.String uri)
throws RepositoryException
setNamespacePrefix in interface SessionRepositoryExceptionpublic java.lang.String[] getNamespacePrefixes()
throws RepositoryException
getNamespacePrefixes in interface SessionRepositoryExceptionpublic java.lang.String getNamespaceURI(java.lang.String prefix)
throws RepositoryException
getNamespaceURI in interface SessionRepositoryExceptionpublic java.lang.String getNamespacePrefix(java.lang.String uri)
throws RepositoryException
getNamespacePrefix in interface SessionRepositoryExceptionpublic boolean hasPermission(java.lang.String absPath,
java.lang.String... actions)
throws RepositoryException
hasPermission in interface org.apache.jackrabbit.api.JackrabbitSessionRepositoryException@NotNull public @NotNull org.apache.jackrabbit.api.security.principal.PrincipalManager getPrincipalManager() throws RepositoryException
getPrincipalManager in interface org.apache.jackrabbit.api.JackrabbitSessionRepositoryException@NotNull public @NotNull org.apache.jackrabbit.api.security.user.UserManager getUserManager() throws RepositoryException
getUserManager in interface org.apache.jackrabbit.api.JackrabbitSessionRepositoryExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.