public interface ContentManagedFileHandler
ContentManagedFileHandler
.
The implementation for ContentManagedFileHandler
is defined in the instance
configuration XML file in the ManagedFileUpdateEARConfiguration
section.ContentManagedFileHandler
is to handle:
ContentManagedFileHandler
is used by the ContentManagedFileEARUpdate
.prepareContentManagedFiles()
must be executed first to retrieves the list of promotion ready content managed files.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM internal copyright field.
|
static java.lang.String |
NAME
The name of this interface.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUpMarkForDeleteContentManagedFiles(java.lang.Short anPublished)
Clean up the list of mark for delete content managed file.
|
ContentManagedFile |
getContentManagedFile(int aIndex)
Prepares and gets the content managed file in the specified index
If the index is out of range, then a null will be returned.
|
int |
getNumOfFiles()
Returns the total number of content managed files.
|
int |
getNumOfFilesForCommit()
Returns the total number of content managed files ready for commit.
|
int |
getNumOfFilesForDelete()
Returns the total number of marked for delete content managed files.
|
void |
prepareContentManagedFiles(java.sql.Timestamp atmLastUploadTimestamp)
Prepare and retrieve the list of content managed files.
|
void |
promoteContentManagedFiles(java.lang.Short anPublished)
Update the list of content managed files in the database to indicate that these files have been promoted to the file system.
|
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
int getNumOfFiles()
int getNumOfFilesForCommit()
int getNumOfFilesForDelete()
ContentManagedFile getContentManagedFile(int aIndex) throws ECException
aIndex
- The index for the list of content managed filesECException
- Any exception captured when retrieving the content managed file. A possible error maybe when the file content is not found.void promoteContentManagedFiles(java.lang.Short anPublished) throws ECException
ContentManagedFile
.
set the published parameter to 1 if the files are also published. By default it is set to 0 for not published.anPublished
- set to 1 if the files are also published. If null then it is set to 0.ECException
- Any exception captured. Possible error may includes problems in retrieving the access bean for the managed file or updating it.void prepareContentManagedFiles(java.sql.Timestamp atmLastUploadTimestamp) throws ECException
atmLastUploadTimestamp
- The last upload timestampECException
- Any exception capturedvoid cleanUpMarkForDeleteContentManagedFiles(java.lang.Short anPublished) throws ECException
anPublished
- The published flag set by userECException
- Exception