|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.attachment.webdav.impl.WebdavDocumentRepository
@Named(value="webdavRepository") public class WebdavDocumentRepository
| Constructor Summary | |
|---|---|
WebdavDocumentRepository()
|
|
| Method Summary | |
|---|---|
protected javax.jcr.Node |
addExclusiveFolder(javax.jcr.Node parent,
String name)
Adds a folder node into the repository and removes all others so that it exists only the folder named like specified. |
protected javax.jcr.Node |
addFile(javax.jcr.Node folder,
SimpleDocument attachment)
Add a file node into the repository |
protected javax.jcr.Node |
addFolder(javax.jcr.Node parent,
String name)
Add a folder node into the repository |
void |
createAttachmentNode(javax.jcr.Session session,
SimpleDocument attachment)
Create a new node for the specified attachment so that the file may be accessed through webdav. |
void |
deleteAttachmentContentNode(javax.jcr.Session session,
SimpleDocument attachment,
String language)
Delete the node associated to the specified language content attachment. |
void |
deleteAttachmentNode(javax.jcr.Session session,
SimpleDocument attachment)
Delete the node associated to the specified attachment. |
String |
getContentEditionLanguage(javax.jcr.Session session,
SimpleDocument attachment)
Gets the current content edition language of the specified attachment. |
long |
getContentEditionSize(javax.jcr.Session session,
SimpleDocument attachment)
Gets the current content edition size of the specified attachment. |
protected javax.jcr.Node |
getDocumentContentLanguageNode(javax.jcr.Session session,
SimpleDocument attachment,
String language)
Gets the webdav document content language node from the specified attachment. |
protected javax.jcr.Node |
getDocumentIdentifierNode(javax.jcr.Session session,
SimpleDocument attachment)
Gets the webdav document identifier node from the specified attachment. |
boolean |
isNodeLocked(javax.jcr.Session session,
SimpleDocument attachment)
Indicate if the node for the specified attachment is currently locked (for example by Office in the case of a webdav online edition). |
void |
moveNodeAttachment(javax.jcr.Session session,
SimpleDocument attachment,
String targetComponentInstanceId)
Move the specified attachment to the specified component instance id. |
void |
updateAttachmentBinaryContent(javax.jcr.Session session,
SimpleDocument attachment)
Update the file content of the specified attachment without modifying its metadata. |
void |
updateNodeAttachment(javax.jcr.Session session,
SimpleDocument attachment)
Update the node using the SimpleDocument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebdavDocumentRepository()
| Method Detail |
|---|
public void createAttachmentNode(javax.jcr.Session session,
SimpleDocument attachment)
throws javax.jcr.RepositoryException,
IOException
WebdavRepository
createAttachmentNode in interface WebdavRepositorysession - the JCR session.attachment - the attachment.
javax.jcr.RepositoryException
IOException
public void updateNodeAttachment(javax.jcr.Session session,
SimpleDocument attachment)
throws javax.jcr.RepositoryException,
IOException
WebdavRepositorySimpleDocument. For an attachment,
it can exist in webdav one, and only one, content language of the attachment.
updateNodeAttachment in interface WebdavRepositorysession - the JCR session.attachment - the attachment.
javax.jcr.RepositoryException
IOException
public void moveNodeAttachment(javax.jcr.Session session,
SimpleDocument attachment,
String targetComponentInstanceId)
throws javax.jcr.RepositoryException,
IOException
WebdavRepository
moveNodeAttachment in interface WebdavRepositorysession - the JCR session.attachment - the attachment to move to another component instance identifier.targetComponentInstanceId - the identifier of the target component instance.
javax.jcr.RepositoryException
IOException
protected javax.jcr.Node getDocumentIdentifierNode(javax.jcr.Session session,
SimpleDocument attachment)
throws javax.jcr.RepositoryException
session - the JCR session.attachment - the attachment from which the webdav document identifier JCR node is
searched.
javax.jcr.RepositoryException
protected javax.jcr.Node getDocumentContentLanguageNode(javax.jcr.Session session,
SimpleDocument attachment,
String language)
throws javax.jcr.RepositoryException
session - the JCR session.attachment - the attachment from which the webdav document content language JCR node is
searched.language - the aimed content language.
javax.jcr.RepositoryException
public void deleteAttachmentNode(javax.jcr.Session session,
SimpleDocument attachment)
throws javax.jcr.RepositoryException
WebdavRepositoryWebdavRepository.deleteAttachmentContentNode(Session, SimpleDocument, String) method.
deleteAttachmentNode in interface WebdavRepositorysession - the JCR session.attachment - the attachment.
javax.jcr.RepositoryException
public void deleteAttachmentContentNode(javax.jcr.Session session,
SimpleDocument attachment,
String language)
throws javax.jcr.RepositoryException
WebdavRepository
deleteAttachmentContentNode in interface WebdavRepositorysession - the JCR session.attachment - the attachment.language - the aimed language content to delete.
javax.jcr.RepositoryException
public boolean isNodeLocked(javax.jcr.Session session,
SimpleDocument attachment)
throws javax.jcr.RepositoryException
WebdavRepository
isNodeLocked in interface WebdavRepositorysession - the JCR session.attachment - the attachment.
javax.jcr.RepositoryException
public void updateAttachmentBinaryContent(javax.jcr.Session session,
SimpleDocument attachment)
throws javax.jcr.RepositoryException,
IOException
WebdavRepository
updateAttachmentBinaryContent in interface WebdavRepositorysession - the JCR session.attachment - the attachment for which the file content will be updated with the ralated
webdav content.
javax.jcr.RepositoryException
IOException
protected javax.jcr.Node addFolder(javax.jcr.Node parent,
String name)
throws javax.jcr.RepositoryException
parent - the parent nodename - the name of the new node
javax.jcr.RepositoryException
protected javax.jcr.Node addExclusiveFolder(javax.jcr.Node parent,
String name)
throws javax.jcr.RepositoryException
parent - the parent nodename - the name of the new node
javax.jcr.RepositoryException
protected javax.jcr.Node addFile(javax.jcr.Node folder,
SimpleDocument attachment)
throws javax.jcr.RepositoryException,
IOException
folder - the folder node containing the file node.attachment - the attachment for the file.
javax.jcr.RepositoryException
IOException
public String getContentEditionLanguage(javax.jcr.Session session,
SimpleDocument attachment)
throws javax.jcr.RepositoryException
WebdavRepository
getContentEditionLanguage in interface WebdavRepositorysession - the JCR session.attachment - the attachment.
javax.jcr.RepositoryException
public long getContentEditionSize(javax.jcr.Session session,
SimpleDocument attachment)
throws javax.jcr.RepositoryException
WebdavRepository
getContentEditionSize in interface WebdavRepositorysession - the JCR session.attachment - the attachment.
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||