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