Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.archive.ejb
Class ArchiveManagerBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.archive.ejb.ArchiveManagerBean
All Implemented Interfaces:
Serializable, ArchiveManager

public class ArchiveManagerBean
extends Object
implements ArchiveManager

Author:
Bogdan Tatar
See Also:
Serialized Form

Constructor Summary
ArchiveManagerBean()
           
 
Method Summary
 void addArchiveRecord(ArchiveRecord record)
           
 Boolean deleteArchiveRecord(long recordId)
           
 void editArchiveRecord(ArchiveRecord record)
           
 ArchiveRecord findArchiveRecordById(long archiveRecordId)
          Returns the archive record object with the specified id.
 List<ArchiveRecord> findArchiveRecords(String qlString, Map<String,Object> parameters)
          Returns the archive records matched by the specified JPA query.
 List<ArchiveRecord> getArchiveRecordsByDocUID(String docUID)
          Returns the archive records of a document by giving the doc uid.
 void remove()
           
 ArchiveRecord searchArchiveRecord()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveManagerBean

public ArchiveManagerBean()
Method Detail

getArchiveRecordsByDocUID

public List<ArchiveRecord> getArchiveRecordsByDocUID(String docUID)
Description copied from interface: ArchiveManager
Returns the archive records of a document by giving the doc uid.

Specified by:
getArchiveRecordsByDocUID in interface ArchiveManager
Parameters:
docUID - the document UID
Returns:
a list of archive records attached to the document

addArchiveRecord

public void addArchiveRecord(ArchiveRecord record)
Specified by:
addArchiveRecord in interface ArchiveManager
Parameters:
record - : the archive record info to be added

deleteArchiveRecord

public Boolean deleteArchiveRecord(long recordId)
Specified by:
deleteArchiveRecord in interface ArchiveManager

editArchiveRecord

public void editArchiveRecord(ArchiveRecord record)
Specified by:
editArchiveRecord in interface ArchiveManager
Parameters:
record - : the archive record to edit

searchArchiveRecord

public ArchiveRecord searchArchiveRecord()
Specified by:
searchArchiveRecord in interface ArchiveManager
Returns:

remove

public void remove()

findArchiveRecordById

public ArchiveRecord findArchiveRecordById(long archiveRecordId)
Description copied from interface: ArchiveManager
Returns the archive record object with the specified id.

Specified by:
findArchiveRecordById in interface ArchiveManager
Parameters:
archiveRecordId - the id of the archive record
Returns:
the archive record with the specified id

findArchiveRecords

public List<ArchiveRecord> findArchiveRecords(String qlString,
                                              Map<String,Object> parameters)
Description copied from interface: ArchiveManager
Returns the archive records matched by the specified JPA query. The parameters map provides the named parameters and values to be set on the query.

Specified by:
findArchiveRecords in interface ArchiveManager
Parameters:
qlString - the query to execute
parameters - the named parameters to be set on the query
Returns:

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.