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 public class ClientSession extends ClientObject implements Session
Deprecated.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
RemoteSessioninterface. This class makes a remote session locally available using the JCRSessioninterface.- See Also:
Session,RemoteSession
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteSessionremoteDeprecated.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.Creates a client adapter for the given remote session.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddLockToken(String name)Deprecated.voidcheckPermission(String path, String actions)Deprecated.voidexportDocumentView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse)Deprecated.Exports the XML document view of the specified repository location to the given output stream.voidexportDocumentView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse)Deprecated.Exports the XML document view of the specified repository location to the given XML content handler.voidexportSystemView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse)Deprecated.Exports the XML system view of the specified repository location to the given output stream.voidexportSystemView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse)Deprecated.Exports the XML system view of the specified repository location to the given XML content handler.AccessControlManagergetAccessControlManager()Deprecated.ObjectgetAttribute(String name)Deprecated.String[]getAttributeNames()Deprecated.ContentHandlergetImportContentHandler(String path, int mode)Deprecated.ItemgetItem(String path)Deprecated.String[]getLockTokens()Deprecated.StringgetNamespacePrefix(String uri)Deprecated.String[]getNamespacePrefixes()Deprecated.StringgetNamespaceURI(String prefix)Deprecated.NodegetNode(String path)Deprecated.NodegetNodeByIdentifier(String id)Deprecated.NodegetNodeByUUID(String uuid)Deprecated.PropertygetProperty(String path)Deprecated.RepositorygetRepository()Deprecated.Returns the current repository without contacting the remote session.RetentionManagergetRetentionManager()Deprecated.NodegetRootNode()Deprecated.StringgetUserID()Deprecated.ValueFactorygetValueFactory()Deprecated.Returns theSerialValueFactory.getInstance().WorkspacegetWorkspace()Deprecated.booleanhasCapability(String methodName, Object target, Object[] arguments)Deprecated.booleanhasPendingChanges()Deprecated.booleanhasPermission(String path, String actions)Deprecated.Sessionimpersonate(Credentials credentials)Deprecated.voidimportXML(String path, InputStream xml, int mode)Deprecated.booleanisLive()Deprecated.booleanitemExists(String path)Deprecated.voidlogout()Deprecated.voidmove(String from, String to)Deprecated.booleannodeExists(String path)Deprecated.booleanpropertyExists(String path)Deprecated.voidrefresh(boolean keepChanges)Deprecated.voidremoveItem(String path)Deprecated.voidremoveLockToken(String name)Deprecated.voidsave()Deprecated.voidsetNamespacePrefix(String prefix, String uri)Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
-
-
-
Field Detail
-
remote
protected final RemoteSession remote
Deprecated.The adapted remote session.
-
-
Constructor Detail
-
ClientSession
public ClientSession(Repository repository, RemoteSession remote, LocalAdapterFactory factory)
Deprecated.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.Returns the current repository without contacting the remote session.- Specified by:
getRepositoryin interfaceSession
-
getAttribute
public Object getAttribute(String name)
Deprecated.- Specified by:
getAttributein interfaceSession
-
getAttributeNames
public String[] getAttributeNames()
Deprecated.- Specified by:
getAttributeNamesin interfaceSession
-
getWorkspace
public Workspace getWorkspace()
Deprecated.- Specified by:
getWorkspacein interfaceSession
-
impersonate
public Session impersonate(Credentials credentials) throws RepositoryException
Deprecated.- Specified by:
impersonatein interfaceSession- Throws:
RepositoryException
-
getRootNode
public Node getRootNode() throws RepositoryException
Deprecated.- Specified by:
getRootNodein interfaceSession- Throws:
RepositoryException
-
getNodeByIdentifier
public Node getNodeByIdentifier(String id) throws RepositoryException
Deprecated.- Specified by:
getNodeByIdentifierin interfaceSession- Throws:
RepositoryException
-
getNodeByUUID
public Node getNodeByUUID(String uuid) throws RepositoryException
Deprecated.- Specified by:
getNodeByUUIDin interfaceSession- Throws:
RepositoryException
-
getItem
public Item getItem(String path) throws RepositoryException
Deprecated.- Specified by:
getItemin interfaceSession- Throws:
RepositoryException
-
getNode
public Node getNode(String path) throws RepositoryException
Deprecated.- Specified by:
getNodein interfaceSession- Throws:
RepositoryException
-
getProperty
public Property getProperty(String path) throws RepositoryException
Deprecated.- Specified by:
getPropertyin interfaceSession- Throws:
RepositoryException
-
itemExists
public boolean itemExists(String path) throws RepositoryException
Deprecated.- Specified by:
itemExistsin interfaceSession- Throws:
RepositoryException
-
nodeExists
public boolean nodeExists(String path) throws RepositoryException
Deprecated.- Specified by:
nodeExistsin interfaceSession- Throws:
RepositoryException
-
propertyExists
public boolean propertyExists(String path) throws RepositoryException
Deprecated.- Specified by:
propertyExistsin interfaceSession- Throws:
RepositoryException
-
removeItem
public void removeItem(String path) throws RepositoryException
Deprecated.- Specified by:
removeItemin interfaceSession- Throws:
RepositoryException
-
move
public void move(String from, String to) throws RepositoryException
Deprecated.- Specified by:
movein interfaceSession- Throws:
RepositoryException
-
save
public void save() throws RepositoryExceptionDeprecated.- Specified by:
savein interfaceSession- Throws:
RepositoryException
-
refresh
public void refresh(boolean keepChanges) throws RepositoryExceptionDeprecated.- Specified by:
refreshin interfaceSession- Throws:
RepositoryException
-
hasPendingChanges
public boolean hasPendingChanges() throws RepositoryExceptionDeprecated.- Specified by:
hasPendingChangesin interfaceSession- Throws:
RepositoryException
-
getValueFactory
public ValueFactory getValueFactory()
Deprecated.Returns theSerialValueFactory.getInstance().- Specified by:
getValueFactoryin interfaceSession
-
checkPermission
public void checkPermission(String path, String actions) throws AccessControlException, RepositoryException
Deprecated.- Specified by:
checkPermissionin interfaceSession- Throws:
AccessControlExceptionRepositoryException
-
hasPermission
public boolean hasPermission(String path, String actions) throws RepositoryException
Deprecated.- Specified by:
hasPermissionin interfaceSession- Throws:
RepositoryException
-
importXML
public void importXML(String path, InputStream xml, int mode) throws IOException, RepositoryException
Deprecated.- Specified by:
importXMLin interfaceSession- Throws:
IOExceptionRepositoryException
-
getImportContentHandler
public ContentHandler getImportContentHandler(String path, int mode) throws RepositoryException
Deprecated.- Specified by:
getImportContentHandlerin interfaceSession- Throws:
RepositoryException
-
setNamespacePrefix
public void setNamespacePrefix(String prefix, String uri) throws RepositoryException
Deprecated.- Specified by:
setNamespacePrefixin interfaceSession- Throws:
RepositoryException
-
getNamespacePrefixes
public String[] getNamespacePrefixes() throws RepositoryException
Deprecated.- Specified by:
getNamespacePrefixesin interfaceSession- Throws:
RepositoryException
-
getNamespaceURI
public String getNamespaceURI(String prefix) throws RepositoryException
Deprecated.- Specified by:
getNamespaceURIin interfaceSession- Throws:
RepositoryException
-
getNamespacePrefix
public String getNamespacePrefix(String uri) throws RepositoryException
Deprecated.- Specified by:
getNamespacePrefixin interfaceSession- Throws:
RepositoryException
-
addLockToken
public void addLockToken(String name)
Deprecated.- Specified by:
addLockTokenin interfaceSession
-
getLockTokens
public String[] getLockTokens()
Deprecated.- Specified by:
getLockTokensin interfaceSession
-
removeLockToken
public void removeLockToken(String name)
Deprecated.- Specified by:
removeLockTokenin interfaceSession
-
exportSystemView
public void exportSystemView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse) throws SAXException, RepositoryException
Deprecated.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:
exportSystemViewin interfaceSession- Throws:
SAXExceptionRepositoryException
-
exportSystemView
public void exportSystemView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse) throws IOException, RepositoryException
Deprecated.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:
exportSystemViewin interfaceSession- Throws:
IOExceptionRepositoryException
-
exportDocumentView
public void exportDocumentView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse) throws SAXException, RepositoryException
Deprecated.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:
exportDocumentViewin interfaceSession- Throws:
SAXExceptionRepositoryException
-
exportDocumentView
public void exportDocumentView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse) throws IOException, RepositoryException
Deprecated.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:
exportDocumentViewin interfaceSession- Throws:
IOExceptionRepositoryException
-
getAccessControlManager
public AccessControlManager getAccessControlManager() throws UnsupportedRepositoryOperationException, RepositoryException
Deprecated.- Specified by:
getAccessControlManagerin interfaceSession- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException
-
getRetentionManager
public RetentionManager getRetentionManager() throws RepositoryException
Deprecated.- Specified by:
getRetentionManagerin interfaceSession- Throws:
RepositoryException
-
hasCapability
public boolean hasCapability(String methodName, Object target, Object[] arguments) throws RepositoryException
Deprecated.- Specified by:
hasCapabilityin interfaceSession- Throws:
RepositoryException
-
-