Package org.apache.jackrabbit.rmi.client
Class ClientSession
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientSession
-
- All Implemented Interfaces:
Session
- Direct Known Subclasses:
ClientXASession
@Deprecated(forRemoval=true) public class ClientSession extends ClientObject implements Session
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemoteSession
interface. This class makes a remote session locally available using the JCRSession
interface.- See Also:
Session
,RemoteSession
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteSession
remote
Deprecated, for removal: This API element is subject to removal in a future version.The adapted remote session.-
Fields inherited from interface javax.jcr.Session
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description ClientSession(Repository repository, RemoteSession remote, LocalAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a client adapter for the given remote session.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addLockToken(String name)
Deprecated, for removal: This API element is subject to removal in a future version.void
checkPermission(String path, String actions)
Deprecated, for removal: This API element is subject to removal in a future version.void
exportDocumentView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse)
Deprecated, for removal: This API element is subject to removal in a future version.Exports the XML document view of the specified repository location to the given output stream.void
exportDocumentView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse)
Deprecated, for removal: This API element is subject to removal in a future version.Exports the XML document view of the specified repository location to the given XML content handler.void
exportSystemView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse)
Deprecated, for removal: This API element is subject to removal in a future version.Exports the XML system view of the specified repository location to the given output stream.void
exportSystemView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse)
Deprecated, for removal: This API element is subject to removal in a future version.Exports the XML system view of the specified repository location to the given XML content handler.AccessControlManager
getAccessControlManager()
Deprecated, for removal: This API element is subject to removal in a future version.Object
getAttribute(String name)
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getAttributeNames()
Deprecated, for removal: This API element is subject to removal in a future version.ContentHandler
getImportContentHandler(String path, int mode)
Deprecated, for removal: This API element is subject to removal in a future version.Item
getItem(String path)
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getLockTokens()
Deprecated, for removal: This API element is subject to removal in a future version.String
getNamespacePrefix(String uri)
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getNamespacePrefixes()
Deprecated, for removal: This API element is subject to removal in a future version.String
getNamespaceURI(String prefix)
Deprecated, for removal: This API element is subject to removal in a future version.Node
getNode(String path)
Deprecated, for removal: This API element is subject to removal in a future version.Node
getNodeByIdentifier(String id)
Deprecated, for removal: This API element is subject to removal in a future version.Node
getNodeByUUID(String uuid)
Deprecated, for removal: This API element is subject to removal in a future version.Property
getProperty(String path)
Deprecated, for removal: This API element is subject to removal in a future version.Repository
getRepository()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the current repository without contacting the remote session.RetentionManager
getRetentionManager()
Deprecated, for removal: This API element is subject to removal in a future version.Node
getRootNode()
Deprecated, for removal: This API element is subject to removal in a future version.String
getUserID()
Deprecated, for removal: This API element is subject to removal in a future version.ValueFactory
getValueFactory()
Deprecated, for removal: This API element is subject to removal in a future version.Returns theSerialValueFactory.getInstance()
.Workspace
getWorkspace()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasCapability(String methodName, Object target, Object[] arguments)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasPendingChanges()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasPermission(String path, String actions)
Deprecated, for removal: This API element is subject to removal in a future version.Session
impersonate(Credentials credentials)
Deprecated, for removal: This API element is subject to removal in a future version.void
importXML(String path, InputStream xml, int mode)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isLive()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
itemExists(String path)
Deprecated, for removal: This API element is subject to removal in a future version.void
logout()
Deprecated, for removal: This API element is subject to removal in a future version.void
move(String from, String to)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
nodeExists(String path)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
propertyExists(String path)
Deprecated, for removal: This API element is subject to removal in a future version.void
refresh(boolean keepChanges)
Deprecated, for removal: This API element is subject to removal in a future version.void
removeItem(String path)
Deprecated, for removal: This API element is subject to removal in a future version.void
removeLockToken(String name)
Deprecated, for removal: This API element is subject to removal in a future version.void
save()
Deprecated, for removal: This API element is subject to removal in a future version.void
setNamespacePrefix(String prefix, String uri)
Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
-
-
-
Field Detail
-
remote
protected final RemoteSession remote
Deprecated, for removal: This API element is subject to removal in a future version.The adapted remote session.
-
-
Constructor Detail
-
ClientSession
public ClientSession(Repository repository, RemoteSession remote, LocalAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a client adapter for the given remote session.- Parameters:
repository
- current repositoryremote
- remote repositoryfactory
- local adapter factory
-
-
Method Detail
-
getRepository
public Repository getRepository()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the current repository without contacting the remote session.- Specified by:
getRepository
in interfaceSession
-
getUserID
public String getUserID()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getAttribute
public Object getAttribute(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttribute
in interfaceSession
-
getAttributeNames
public String[] getAttributeNames()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributeNames
in interfaceSession
-
getWorkspace
public Workspace getWorkspace()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getWorkspace
in interfaceSession
-
impersonate
public Session impersonate(Credentials credentials) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
impersonate
in interfaceSession
- Throws:
RepositoryException
-
getRootNode
public Node getRootNode() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRootNode
in interfaceSession
- Throws:
RepositoryException
-
getNodeByIdentifier
public Node getNodeByIdentifier(String id) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNodeByIdentifier
in interfaceSession
- Throws:
RepositoryException
-
getNodeByUUID
public Node getNodeByUUID(String uuid) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNodeByUUID
in interfaceSession
- Throws:
RepositoryException
-
getItem
public Item getItem(String path) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getItem
in interfaceSession
- Throws:
RepositoryException
-
getNode
public Node getNode(String path) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNode
in interfaceSession
- Throws:
RepositoryException
-
getProperty
public Property getProperty(String path) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getProperty
in interfaceSession
- Throws:
RepositoryException
-
itemExists
public boolean itemExists(String path) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
itemExists
in interfaceSession
- Throws:
RepositoryException
-
nodeExists
public boolean nodeExists(String path) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nodeExists
in interfaceSession
- Throws:
RepositoryException
-
propertyExists
public boolean propertyExists(String path) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
propertyExists
in interfaceSession
- Throws:
RepositoryException
-
removeItem
public void removeItem(String path) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeItem
in interfaceSession
- Throws:
RepositoryException
-
move
public void move(String from, String to) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
move
in interfaceSession
- Throws:
RepositoryException
-
save
public void save() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
save
in interfaceSession
- Throws:
RepositoryException
-
refresh
public void refresh(boolean keepChanges) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
refresh
in interfaceSession
- Throws:
RepositoryException
-
hasPendingChanges
public boolean hasPendingChanges() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
hasPendingChanges
in interfaceSession
- Throws:
RepositoryException
-
getValueFactory
public ValueFactory getValueFactory()
Deprecated, for removal: This API element is subject to removal in a future version.Returns theSerialValueFactory.getInstance()
.- Specified by:
getValueFactory
in interfaceSession
-
checkPermission
public void checkPermission(String path, String actions) throws AccessControlException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkPermission
in interfaceSession
- Throws:
AccessControlException
RepositoryException
-
hasPermission
public boolean hasPermission(String path, String actions) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
hasPermission
in interfaceSession
- Throws:
RepositoryException
-
importXML
public void importXML(String path, InputStream xml, int mode) throws IOException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
importXML
in interfaceSession
- Throws:
IOException
RepositoryException
-
getImportContentHandler
public ContentHandler getImportContentHandler(String path, int mode) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getImportContentHandler
in interfaceSession
- Throws:
RepositoryException
-
setNamespacePrefix
public void setNamespacePrefix(String prefix, String uri) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setNamespacePrefix
in interfaceSession
- Throws:
RepositoryException
-
getNamespacePrefixes
public String[] getNamespacePrefixes() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNamespacePrefixes
in interfaceSession
- Throws:
RepositoryException
-
getNamespaceURI
public String getNamespaceURI(String prefix) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNamespaceURI
in interfaceSession
- Throws:
RepositoryException
-
getNamespacePrefix
public String getNamespacePrefix(String uri) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNamespacePrefix
in interfaceSession
- Throws:
RepositoryException
-
logout
public void logout()
Deprecated, for removal: This API element is subject to removal in a future version.
-
addLockToken
public void addLockToken(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addLockToken
in interfaceSession
-
getLockTokens
public String[] getLockTokens()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLockTokens
in interfaceSession
-
removeLockToken
public void removeLockToken(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeLockToken
in interfaceSession
-
exportSystemView
public void exportSystemView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse) throws SAXException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.Exports the XML system view of the specified repository location to the given XML content handler. This method first requests the raw XML data from the remote session, and then uses an identity transformation to feed the data to the given XML content handler. Possible IO and transformer exceptions are thrown as SAXExceptions.- Specified by:
exportSystemView
in interfaceSession
- Throws:
SAXException
RepositoryException
-
exportSystemView
public void exportSystemView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse) throws IOException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.Exports the XML system view of the specified repository location to the given output stream. This method first requests the raw XML data from the remote session, and then writes the data to the output stream.- Specified by:
exportSystemView
in interfaceSession
- Throws:
IOException
RepositoryException
-
exportDocumentView
public void exportDocumentView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse) throws SAXException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.Exports the XML document view of the specified repository location to the given XML content handler. This method first requests the raw XML data from the remote session, and then uses an identity transformation to feed the data to the given XML content handler. Possible IO and transformer exceptions are thrown as SAXExceptions.- Specified by:
exportDocumentView
in interfaceSession
- Throws:
SAXException
RepositoryException
-
exportDocumentView
public void exportDocumentView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse) throws IOException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.Exports the XML document view of the specified repository location to the given output stream. This method first requests the raw XML data from the remote session, and then writes the data to the output stream.- Specified by:
exportDocumentView
in interfaceSession
- Throws:
IOException
RepositoryException
-
isLive
public boolean isLive()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getAccessControlManager
public AccessControlManager getAccessControlManager() throws UnsupportedRepositoryOperationException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAccessControlManager
in interfaceSession
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
-
getRetentionManager
public RetentionManager getRetentionManager() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRetentionManager
in interfaceSession
- Throws:
RepositoryException
-
hasCapability
public boolean hasCapability(String methodName, Object target, Object[] arguments) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
hasCapability
in interfaceSession
- Throws:
RepositoryException
-
-