public class SessionImpl extends Object implements 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_VERSIONING
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
Constructor and Description |
---|
SessionImpl(SessionContext sessionContext) |
public SessionImpl(SessionContext sessionContext)
@CheckForNull public Node getNodeOrNull(String absPath) throws RepositoryException
getNodeOrNull
in interface JackrabbitSession
RepositoryException
@CheckForNull public Property getPropertyOrNull(String absPath) throws RepositoryException
getPropertyOrNull
in interface JackrabbitSession
RepositoryException
@CheckForNull public Item getItemOrNull(String absPath) throws RepositoryException
getItemOrNull
in interface JackrabbitSession
RepositoryException
@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
public boolean hasPermission(String absPath, String... actions) throws RepositoryException
hasPermission
in interface JackrabbitSession
RepositoryException
@Nonnull public PrincipalManager getPrincipalManager() throws RepositoryException
getPrincipalManager
in interface JackrabbitSession
RepositoryException
@Nonnull public UserManager getUserManager() throws RepositoryException
getUserManager
in interface JackrabbitSession
RepositoryException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.