public interface DocumentManager
Modifier and Type | Method and Description |
---|---|
void |
changeIndexingStatus(Document doc,
int status)
Utility method used to declare that:
a document must be taken into consideration by the indexer (status =
AbstractDocument.INDEX_TO_INDEX).
|
void |
checkin(long docId,
File file,
String filename,
boolean release,
Document docVO,
History transaction)
Checks in the given document
|
void |
checkin(long docId,
InputStream fileInputStream,
String filename,
boolean release,
Document docVO,
History transaction)
Checks in the given document
|
void |
checkout(long docId,
History history)
Checks out the given document
|
Document |
copyToFolder(Document doc,
Folder folder,
History transaction)
Copy a document to the specified folder.
|
Document |
create(File file,
Document docVO,
History transaction)
Creates a new Document.
|
Document |
create(InputStream content,
Document docVO,
History transaction)
Creates a new Document.
|
Document |
createShortcut(Document doc,
Folder folder,
History transaction)
Create a shortcut associated to the given doc to the specified folder.
|
void |
deleteFromIndex(Document doc)
Utility method for document removal from index and database update(flag
indexed)
|
Version |
deleteVersion(long versionId,
History transition)
Deletes a specific version.
|
void |
lock(long docId,
int status,
History transaction)
Locks the given document
|
void |
makeImmutable(long docId,
History transaction)
Marks the document, with the given docId, as immutable and save the given
document history
|
void |
moveToFolder(Document doc,
Folder folder,
History transaction)
Moves a document to the specified folder.
|
void |
reindex(long docId)
Reindexes an existing document in the full-text index.
|
void |
rename(Document doc,
String newName,
boolean title,
History transaction)
Rename an existing document title/filename.
|
void |
setStorer(Storer storer) |
void |
unlock(long docId,
History transaction)
UNChecks out the given document
|
void |
update(Document doc,
Document docVO,
History transaction)
Updates an existing document and marks it to be re-indexed
|
void checkin(long docId, InputStream fileInputStream, String filename, boolean release, Document docVO, History transaction) throws Exception
docId
- the document to be checked infileInputStream
- input stream pointing to the new document versionfilename
- new filename (can also be the old one)release
- True if this is a new release(eg: 2.0) rather than a
subversion(eg: 1.1)docVO
- The value object containing document's metadata applied
during the checkin (optional)transaction
- entry to log the event, set the user and commentException
- if an error occurs, this exception is thrownvoid checkin(long docId, File file, String filename, boolean release, Document docVO, History transaction) throws Exception
docId
- the document to be checked infile
- of the new document versionfilename
- new filename (can also be the old one)release
- True if this is a new release(eg: 2.0) rather than a
subversion(eg: 1.1)docVO
- The value object containing document's metadata applied
during the checkin (optional)transaction
- entry to log the event, set the user and commentException
- if an error occurs, this exception is thrownvoid checkout(long docId, History history) throws Exception
docId
- the document to be checked outtransaction
- entry to log the event (set the user)Exception
- if an error occurs, this exception is thrownvoid lock(long docId, int status, History transaction) throws Exception
docId
- the document to be lockedstatus
- the lock type (used to populate status attribute of the
document)transaction
- entry to log the event (set the user)Exception
- if an error occurs, this exception is thrownvoid unlock(long docId, History transaction) throws Exception
docId
- the document to be unchecked outtransaction
- entry to log the eventException
- if an error occurs, this exception is thrownDocument create(File file, Document docVO, History transaction) throws Exception
file
- The document's filedocVO
- The value object containing the document's metadatatransaction
- The trandaction metadata (remember to set the user and
the comment)Exception
Document create(InputStream content, Document docVO, History transaction) throws Exception
content
- The document's contentdocVO
- The value object containing the document's metadatatransaction
- The transaction metadata (remember to set the user and
the comment)Exception
void reindex(long docId) throws Exception
docId
- The document to be indexedException
- if an error occurs, this exception is thrownvoid rename(Document doc, String newName, boolean title, History transaction) throws Exception
doc
- The document to be renamednewName
- The new title/filename of the documenttitle
- True if the title must be renamed, False for the filenametransaction
- entry to log the event (set the user)Exception
- if an error occurs, this exception is thrownvoid update(Document doc, Document docVO, History transaction) throws Exception
doc
- The document to be updateddocVO
- value object containing the new metadatatransaction
- entry to log the event (set the user)Exception
- if an error occurs, this exception is thrownvoid deleteFromIndex(Document doc)
void changeIndexingStatus(Document doc, int status)
doc
- The document for which will be changed the indexer status.status
- The new document indexer status.void makeImmutable(long docId, History transaction) throws Exception
docId
- transaction
- entry to log the event (set the user)Exception
void moveToFolder(Document doc, Folder folder, History transaction) throws Exception
doc
- The document to movefolder
- The target foldertransaction
- entry to log the event (set the user)Exception
Document copyToFolder(Document doc, Folder folder, History transaction) throws Exception
doc
- The document to movefolder
- The target foldertransaction
- entry to log the event (set the user)Exception
Document createShortcut(Document doc, Folder folder, History transaction) throws Exception
doc
- The document for which will be created the shortcutfolder
- The target foldertransaction
- entry to log the event (set the user)Exception
Version deleteVersion(long versionId, History transition) throws Exception
versionId
- The version to deletetransaction
- entry to log the event (set the user)Exception
void setStorer(Storer storer)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.