public class JCRSession extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
credential |
String |
urlRepository |
| Constructor and Description |
|---|
JCRSession(String repository,
String credential) |
JCRSession(String login,
String repository,
String credential) |
| Modifier and Type | Method and Description |
|---|---|
ItemDelegate |
clone(String srcAbsPath,
String destAbsPath,
boolean removeExisting)
Clone item
|
ItemDelegate |
copy(String srcAbsPath,
String destAbsPath) |
ItemDelegate |
copyContent(String srcId,
String destId) |
ItemDelegate |
createReference(String itemId,
String destinationFolderId,
String login) |
List<SearchItemDelegate> |
executeQuery(String query,
String lang,
String login,
int limit) |
List<AccountingDelegate> |
getAccountingById(String id) |
List<ItemDelegate> |
getChildrenById(String id,
String login)
Get children by id using a GET servlet
|
ItemDelegate |
getItemById(String id)
Retrieve and ItemDelegate by id using a GET servlet
|
ItemDelegate |
getItemByPath(String path,
String login)
Retrieve an ItemDelegate object by path using a GET servlet
|
JCRLockManager |
getLockManager() |
ItemDelegate |
getParentById(String id)
Retrieve and ItemDelegate by id using a GET servlet
|
ItemDelegate |
move(String srcAbsPath,
String destAbsPath)
Moves the node at srcAbsPath (and its entire subtree) to the new location at destAbsPath.
|
void |
releaseSession()
Release session
|
void |
removeItem(String absPath) |
void |
saveAccountingItem(AccountingDelegate item) |
ItemDelegate |
saveItem(ItemDelegate item)
Save item: if it does not exist, create it, otherwise modify it
|
List<ItemDelegate> |
searchItems(String query,
String lang,
String login) |
public void releaseSession()
public List<ItemDelegate> getChildrenById(String id, String login)
user - public ItemDelegate getItemByPath(String path, String login) throws ItemNotFoundException
user - path - ItemNotFoundExceptionpublic ItemDelegate getItemById(String id) throws ItemNotFoundException
user - id - ItemNotFoundExceptionpublic ItemDelegate getParentById(String id)
user - id - public ItemDelegate saveItem(ItemDelegate item) throws Exception
item - Exceptionpublic ItemDelegate clone(String srcAbsPath, String destAbsPath, boolean removeExisting) throws org.apache.commons.httpclient.HttpException, IOException
srcAbsPath - destAbsPath - b - IOExceptionorg.apache.commons.httpclient.HttpExceptionpublic ItemDelegate move(String srcAbsPath, String destAbsPath) throws org.apache.commons.httpclient.HttpException, IOException
srcAbsPath - is an absolute path to the original locationdestAbsPath - is an absolute path to the parent node of the new location, appended with the new name desired for the moved nodeorg.apache.commons.httpclient.HttpExceptionIOExceptionpublic void removeItem(String absPath) throws IOException
IOExceptionpublic ItemDelegate copy(String srcAbsPath, String destAbsPath) throws org.apache.commons.httpclient.HttpException, IOException
org.apache.commons.httpclient.HttpExceptionIOExceptionpublic ItemDelegate copyContent(String srcId, String destId) throws org.apache.commons.httpclient.HttpException, IOException
org.apache.commons.httpclient.HttpExceptionIOExceptionpublic List<SearchItemDelegate> executeQuery(String query, String lang, String login, int limit) throws org.apache.commons.httpclient.HttpException, IOException
org.apache.commons.httpclient.HttpExceptionIOExceptionpublic List<ItemDelegate> searchItems(String query, String lang, String login) throws org.apache.commons.httpclient.HttpException, IOException
org.apache.commons.httpclient.HttpExceptionIOExceptionpublic void saveAccountingItem(AccountingDelegate item) throws RepositoryException
RepositoryExceptionpublic List<AccountingDelegate> getAccountingById(String id)
public ItemDelegate createReference(String itemId, String destinationFolderId, String login) throws org.apache.commons.httpclient.HttpException, IOException
org.apache.commons.httpclient.HttpExceptionIOExceptionpublic JCRLockManager getLockManager()
Copyright © 2016. All Rights Reserved.