| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.archive.ArchiveManager
public class ArchiveManager
This Class is responsible to manage the archive system of JCMS.
| Field Summary | |
|---|---|
static String | 
REVISION
 | 
| Fields inherited from interface com.jalios.util.JaliosConstants | 
|---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR | 
| Constructor Summary | |
|---|---|
ArchiveManager()
 | 
|
| Method Summary | |
|---|---|
static boolean | 
archivePublication(Publication pub)
Deprecated.  | 
static boolean | 
archivePublication(Publication pub,
                   Member opAuthor)
Archive a given publication.  | 
static int | 
countArchive(Workspace ws)
Count the number of Archive in the specified workspace.  | 
static ArchivedPublication | 
getArchive(String rowId)
Retrieves the Archive from its rowId.  | 
static String | 
getArchiveDirectoryPath(Publication originalPub,
                        ArchivedPublication archivePub)
Returns the path of directory in which the Archived files are stored.  | 
static ArchivedPublication | 
getArchivedPubFromArchivePath(String path)
Retrieve the ArchivedPublication associated to the given path.  | 
static ArchiveEngine | 
getArchiveEngine()
Retrieves the instance of the ArchiveEngine used internally by the ArchiveManager.  | 
static ArchivedPublication | 
getArchiveFromOriginalId(String originalId)
Retrieves the Archive corresponding to the specified original Publication id.  | 
static String | 
getArchiveSavedHtmlPath(ArchivedPublication pub,
                        String userLang)
Return the path (webapp relative, for jsp inclusion) of the file in which the original publication was saved  | 
static String | 
getArchiveSavedXmlPath(ArchivedPublication pub)
Return the path (webapp relative) of the XML file in which the content of the original publication's data was saved  | 
static Set<ArchivedPublication> | 
getArchiveSet(Member loggedMember,
              String[] rowIds)
Retrieves all the Archive identified by the specified ids.  | 
static void | 
init()
ArchiveManager initialization  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String REVISION
| Constructor Detail | 
|---|
public ArchiveManager()
| Method Detail | 
|---|
public static void init()
                 throws Exception
Exception - throws Exception when ArchiveEngine could not be loadedpublic static ArchiveEngine getArchiveEngine()
public static boolean archivePublication(Publication pub)
pub - the Publication to archive
public static boolean archivePublication(Publication pub,
                                         Member opAuthor)
pub - the Publication to archiveopAuthor - the author of the operation, can be null
public static Set<ArchivedPublication> getArchiveSet(Member loggedMember,
                                                     String[] rowIds)
loggedMember - the Member used to check read rights.rowIds - an array of archive's rowId
public static int countArchive(Workspace ws)
ws - the workspace being search (must not be null)
public static ArchivedPublication getArchive(String rowId)
rowId - the row id of the archive publication in the DB
public static ArchivedPublication getArchiveFromOriginalId(String originalId)
originalId - the id of the original publication of the archive
public static ArchivedPublication getArchivedPubFromArchivePath(String path)
path - the path, relative to the context path, of the file to check,
        for example "archives/2006/11/oj_4242/en.html".
public static String getArchiveDirectoryPath(Publication originalPub,
                                             ArchivedPublication archivePub)
/archives/{originalId} exists, in which
 case this path is used and returned.
originalPub - the original publication for which we want the archive directoryarchivePub - the archived publication for which we want the archive directory
/archives/c_5002 for legacy archives or 
          /archives/2006/11/c_5002 for new ones)
IllegalArgumentException - if both arguments are null.
public static String getArchiveSavedHtmlPath(ArchivedPublication pub,
                                             String userLang)
pub - the ArchivedPublication used to store rightuserLang - the lang in which the content is wanted if available
public static String getArchiveSavedXmlPath(ArchivedPublication pub)
pub - the ArchivedPublication from which we return the saved data
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||