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. |
org.apache.jackrabbit.api.security.principal.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() |
org.apache.jackrabbit.api.security.user.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 Session
public String[] getAttributeNames()
getAttributeNames
in interface Session
public 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 Session
RepositoryException
@Nonnull public ValueFactory getValueFactory() throws RepositoryException
getValueFactory
in interface Session
RepositoryException
@Nonnull public Node getRootNode() throws RepositoryException
getRootNode
in interface Session
RepositoryException
public Node getNode(String absPath) throws RepositoryException
getNode
in interface Session
RepositoryException
public boolean nodeExists(String absPath) throws RepositoryException
nodeExists
in interface Session
RepositoryException
@Nonnull public Node getNodeByUUID(String uuid) throws RepositoryException
getNodeByUUID
in interface Session
RepositoryException
@Nonnull public Node getNodeByIdentifier(String id) throws RepositoryException
getNodeByIdentifier
in interface Session
RepositoryException
public Property getProperty(String absPath) throws RepositoryException
getProperty
in interface Session
RepositoryException
public boolean propertyExists(String absPath) throws RepositoryException
propertyExists
in interface Session
RepositoryException
public Item getItem(String absPath) throws RepositoryException
getItem
in interface Session
RepositoryException
public boolean itemExists(String absPath) throws RepositoryException
itemExists
in interface Session
RepositoryException
public void move(String srcAbsPath, String destAbsPath) throws RepositoryException
move
in interface Session
RepositoryException
public void removeItem(String absPath) throws RepositoryException
removeItem
in interface Session
RepositoryException
public void save() throws RepositoryException
save
in interface Session
RepositoryException
public void refresh(boolean keepChanges) throws RepositoryException
refresh
in interface Session
RepositoryException
public boolean hasPendingChanges() throws RepositoryException
hasPendingChanges
in interface Session
RepositoryException
@Nonnull public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws RepositoryException
getImportContentHandler
in interface Session
RepositoryException
public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, RepositoryException
importXML
in interface Session
IOException
RepositoryException
public void exportSystemView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws SAXException, RepositoryException
exportSystemView
in interface Session
SAXException
RepositoryException
public void exportSystemView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, RepositoryException
exportSystemView
in interface Session
IOException
RepositoryException
public void exportDocumentView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws SAXException, RepositoryException
exportDocumentView
in interface Session
SAXException
RepositoryException
public void exportDocumentView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, RepositoryException
exportDocumentView
in interface Session
IOException
RepositoryException
public void addLockToken(String lt)
addLockToken
in interface Session
@Nonnull public String[] getLockTokens()
getLockTokens
in interface Session
public void removeLockToken(String lt)
removeLockToken
in interface Session
public boolean hasPermission(String absPath, String actions) throws RepositoryException
hasPermission
in interface Session
RepositoryException
public void checkPermission(String absPath, String actions) throws RepositoryException
checkPermission
in interface Session
RepositoryException
public boolean hasCapability(String methodName, Object target, Object[] arguments) throws RepositoryException
hasCapability
in interface Session
RepositoryException
@Nonnull public AccessControlManager getAccessControlManager() throws RepositoryException
getAccessControlManager
in interface Session
RepositoryException
@Nonnull public RetentionManager getRetentionManager() throws RepositoryException
getRetentionManager
in interface Session
RepositoryException
Session.getRetentionManager()
public void setNamespacePrefix(String prefix, String uri) throws RepositoryException
setNamespacePrefix
in interface Session
RepositoryException
public String[] getNamespacePrefixes() throws RepositoryException
getNamespacePrefixes
in interface Session
RepositoryException
public String getNamespaceURI(String prefix) throws RepositoryException
getNamespaceURI
in interface Session
RepositoryException
public String getNamespacePrefix(String uri) throws RepositoryException
getNamespacePrefix
in interface Session
RepositoryException
@Nonnull public org.apache.jackrabbit.api.security.principal.PrincipalManager getPrincipalManager() throws RepositoryException
getPrincipalManager
in interface org.apache.jackrabbit.api.JackrabbitSession
RepositoryException
@Nonnull public org.apache.jackrabbit.api.security.user.UserManager getUserManager() throws RepositoryException
getUserManager
in interface org.apache.jackrabbit.api.JackrabbitSession
RepositoryException
Copyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.