Local adapter for the JCR-RMI
RemoteSession
interface. This class makes a remote session locally available using
the JCR Session
interface.
@Deprecated public class ClientSession extends ClientObject implements Session
Session
,
RemoteSession
Modifier and Type | Field and Description |
---|---|
protected RemoteSession |
remote
Deprecated.
The adapted remote session.
|
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
Constructor and Description |
---|
ClientSession(Repository repository,
RemoteSession remote,
LocalAdapterFactory factory)
Deprecated.
Creates a client adapter for the given remote session.
|
Modifier and Type | Method and Description |
---|---|
void |
addLockToken(String name)
Deprecated.
|
void |
checkPermission(String path,
String actions)
Deprecated.
|
void |
exportDocumentView(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.
|
void |
exportDocumentView(String path,
OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
Deprecated.
Exports the XML document view of the specified repository location
to the given output stream.
|
void |
exportSystemView(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.
|
void |
exportSystemView(String path,
OutputStream output,
boolean binaryAsLink,
boolean noRecurse)
Deprecated.
Exports the XML system view of the specified repository location
to the given output stream.
|
AccessControlManager |
getAccessControlManager()
Deprecated.
|
Object |
getAttribute(String name)
Deprecated.
|
String[] |
getAttributeNames()
Deprecated.
|
ContentHandler |
getImportContentHandler(String path,
int mode)
Deprecated.
|
Item |
getItem(String path)
Deprecated.
|
String[] |
getLockTokens()
Deprecated.
|
String |
getNamespacePrefix(String uri)
Deprecated.
|
String[] |
getNamespacePrefixes()
Deprecated.
|
String |
getNamespaceURI(String prefix)
Deprecated.
|
Node |
getNode(String path)
Deprecated.
|
Node |
getNodeByIdentifier(String id)
Deprecated.
|
Node |
getNodeByUUID(String uuid)
Deprecated.
|
Property |
getProperty(String path)
Deprecated.
|
Repository |
getRepository()
Deprecated.
Returns the current repository without contacting the remote session.
|
RetentionManager |
getRetentionManager()
Deprecated.
|
Node |
getRootNode()
Deprecated.
|
String |
getUserID()
Deprecated.
|
ValueFactory |
getValueFactory()
Deprecated.
Returns the
SerialValueFactory.getInstance() . |
Workspace |
getWorkspace()
Deprecated.
|
boolean |
hasCapability(String methodName,
Object target,
Object[] arguments)
Deprecated.
|
boolean |
hasPendingChanges()
Deprecated.
|
boolean |
hasPermission(String path,
String actions)
Deprecated.
|
Session |
impersonate(Credentials credentials)
Deprecated.
|
void |
importXML(String path,
InputStream xml,
int mode)
Deprecated.
|
boolean |
isLive()
Deprecated.
|
boolean |
itemExists(String path)
Deprecated.
|
void |
logout()
Deprecated.
|
void |
move(String from,
String to)
Deprecated.
|
boolean |
nodeExists(String path)
Deprecated.
|
boolean |
propertyExists(String path)
Deprecated.
|
void |
refresh(boolean keepChanges)
Deprecated.
|
void |
removeItem(String path)
Deprecated.
|
void |
removeLockToken(String name)
Deprecated.
|
void |
save()
Deprecated.
|
void |
setNamespacePrefix(String prefix,
String uri)
Deprecated.
|
getFactory, getItem, getNode, getNodeTypeArray
protected final RemoteSession remote
public ClientSession(Repository repository, RemoteSession remote, LocalAdapterFactory factory)
repository
- current repositoryremote
- remote repositoryfactory
- local adapter factorypublic Repository getRepository()
getRepository
in interface Session
public Object getAttribute(String name)
getAttribute
in interface Session
public String[] getAttributeNames()
getAttributeNames
in interface Session
public Workspace getWorkspace()
getWorkspace
in interface Session
public Session impersonate(Credentials credentials) throws RepositoryException
impersonate
in interface Session
RepositoryException
public Node getRootNode() throws RepositoryException
getRootNode
in interface Session
RepositoryException
public Node getNodeByIdentifier(String id) throws RepositoryException
getNodeByIdentifier
in interface Session
RepositoryException
public Node getNodeByUUID(String uuid) throws RepositoryException
getNodeByUUID
in interface Session
RepositoryException
public Item getItem(String path) throws RepositoryException
getItem
in interface Session
RepositoryException
public Node getNode(String path) throws RepositoryException
getNode
in interface Session
RepositoryException
public Property getProperty(String path) throws RepositoryException
getProperty
in interface Session
RepositoryException
public boolean itemExists(String path) throws RepositoryException
itemExists
in interface Session
RepositoryException
public boolean nodeExists(String path) throws RepositoryException
nodeExists
in interface Session
RepositoryException
public boolean propertyExists(String path) throws RepositoryException
propertyExists
in interface Session
RepositoryException
public void removeItem(String path) throws RepositoryException
removeItem
in interface Session
RepositoryException
public void move(String from, String to) throws RepositoryException
move
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
public ValueFactory getValueFactory()
SerialValueFactory.getInstance()
.
getValueFactory
in interface Session
public void checkPermission(String path, String actions) throws AccessControlException, RepositoryException
checkPermission
in interface Session
AccessControlException
RepositoryException
public boolean hasPermission(String path, String actions) throws RepositoryException
hasPermission
in interface Session
RepositoryException
public void importXML(String path, InputStream xml, int mode) throws IOException, RepositoryException
importXML
in interface Session
IOException
RepositoryException
public ContentHandler getImportContentHandler(String path, int mode) throws RepositoryException
getImportContentHandler
in interface Session
RepositoryException
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 void addLockToken(String name)
addLockToken
in interface Session
public String[] getLockTokens()
getLockTokens
in interface Session
public void removeLockToken(String name)
removeLockToken
in interface Session
public void exportSystemView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse) throws SAXException, RepositoryException
exportSystemView
in interface Session
SAXException
RepositoryException
public void exportSystemView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse) throws IOException, RepositoryException
exportSystemView
in interface Session
IOException
RepositoryException
public void exportDocumentView(String path, ContentHandler handler, boolean binaryAsLink, boolean noRecurse) throws SAXException, RepositoryException
exportDocumentView
in interface Session
SAXException
RepositoryException
public void exportDocumentView(String path, OutputStream output, boolean binaryAsLink, boolean noRecurse) throws IOException, RepositoryException
exportDocumentView
in interface Session
IOException
RepositoryException
public AccessControlManager getAccessControlManager() throws UnsupportedRepositoryOperationException, RepositoryException
getAccessControlManager
in interface Session
UnsupportedRepositoryOperationException
RepositoryException
public RetentionManager getRetentionManager() throws RepositoryException
getRetentionManager
in interface Session
RepositoryException
public boolean hasCapability(String methodName, Object target, Object[] arguments) throws RepositoryException
hasCapability
in interface Session
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.