public class UpdateContentManagedFileInEARUtil
extends java.lang.Object
The UpdateContentManagedFilesInEARUtil
performs a series of actions. It first retrieves the list of files from the Commerce database.
The list of files includes all the files that need to be committed into the file system, and all the marked for delete files. And then it calls the
EAR Updater. For the files that need to be committed, the
EAR Updaterwill update the files into the Commerce EAR. After that, these files in the database will be marked as committed to the file system. For the files that are marked for delete, the
EAR Updaterwill delete these files in the Commerce EAR. After that, if the marked for delete files are also published, these files will be permanently deleted from the database. But if after the
EAR Updatercall, the marked for delete files has not been published yet, it will stay in the database so the later on it may get synchronized with the production database.
Behavior:
ContentManagedFileHandler
IEARUpdater
is used to update the list of content managed files into the Commerce EAR. It is also used to delete
the list of marked for delete content managed files from the Commerce EAR.IEARUpdater
ContentManagedFileHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
UpdateContentManagedFileInEARUtil(java.lang.String astrProductionServerApplicationName,
boolean aboolUpdateCurrentEAR)
Constructor for
UpdateContentManagedFileInEARUtil . |
Modifier and Type | Method and Description |
---|---|
void |
update()
The main execution of
UpdateContentManagedFileInEARUtil . |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public UpdateContentManagedFileInEARUtil(java.lang.String astrProductionServerApplicationName, boolean aboolUpdateCurrentEAR) throws ECException
UpdateContentManagedFileInEARUtil
.
The following are set with the constructor:
astrProductionServerApplicationName
- The production server application nameaboolUpdateCurrentEAR
- The option to update the current EARECException
- Any exception capturedpublic void update() throws ECException
UpdateContentManagedFileInEARUtil
. When this method is called,
it will first retrieve the list of content managed files. And then it will call the
IEARUpdater
to update or delete them in the Commerce EAR. When the operation is successful,
these files will be marked to indicated their new status, or permanently deleted.ECException
- Any ECException captured. Possible errors maybe caused by problems in the IEARUpdater
or problems in retrieving the list of content managed files.